feat: added support for external textures

This commit is contained in:
Will McKinnon 2022-11-11 21:21:51 -05:00
parent 6ca742d4f2
commit 1a9f17054d
2 changed files with 43 additions and 4 deletions

View file

@ -2,6 +2,7 @@
#define _SWAY_OPENGL_H
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <stdbool.h>
enum corner_location { ALL, TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT };
@ -35,6 +36,15 @@ struct fx_renderer {
float projection[9];
struct {
bool OES_egl_image_external;
} exts;
struct {
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glEGLImageTargetTexture2DOES;
} procs;
// Shaders
struct {
struct {