mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
wip intel
This commit is contained in:
@@ -1,20 +1,22 @@
|
||||
#ifndef WINDOW_TEXTURE_H
|
||||
#define WINDOW_TEXTURE_H
|
||||
|
||||
#include "gl.h"
|
||||
#include "egl.h"
|
||||
|
||||
typedef struct {
|
||||
Display *display;
|
||||
Window window;
|
||||
Pixmap pixmap;
|
||||
GLXPixmap glx_pixmap;
|
||||
unsigned int texture_id;
|
||||
unsigned int target_texture_id;
|
||||
int texture_width;
|
||||
int texture_height;
|
||||
int redirected;
|
||||
gsr_gl *gl;
|
||||
gsr_egl *egl;
|
||||
} WindowTexture;
|
||||
|
||||
/* Returns 0 on success */
|
||||
int window_texture_init(WindowTexture *window_texture, Display *display, Window window, gsr_gl *gl);
|
||||
int window_texture_init(WindowTexture *window_texture, Display *display, Window window, gsr_egl *egl);
|
||||
void window_texture_deinit(WindowTexture *self);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user