diff options
Diffstat (limited to 'video/out/opengl/ra_gl.h')
-rw-r--r-- | video/out/opengl/ra_gl.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/video/out/opengl/ra_gl.h b/video/out/opengl/ra_gl.h new file mode 100644 index 0000000000..9d5cb23fb7 --- /dev/null +++ b/video/out/opengl/ra_gl.h @@ -0,0 +1,29 @@ +#pragma once + +#include "common.h" +#include "ra.h" +#include "utils.h" + +// For ra.priv +struct ra_gl { + GL *gl; +}; + +// For ra_tex.priv +struct ra_tex_gl { + GLenum target; + GLuint texture; + // These 3 fields can be 0 if unknown. + GLint internal_format; + GLenum format; + GLenum type; + struct gl_pbo_upload pbo; +}; + +// For ra_mapped_buffer.priv +struct ra_mapped_buffer_gl { + GLuint pbo; + GLsync fence; +}; + +int ra_init_gl(struct ra *ra, GL *gl); |