2017-06-08 17:30:38 +02:00
|
|
|
#ifndef _WLR_RENDER_INTERNAL_H
|
|
|
|
#define _WLR_RENDER_INTERNAL_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <wlr/render.h>
|
|
|
|
#include <wayland-util.h>
|
|
|
|
#include <GLES3/gl3.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2017-06-08 18:02:51 +02:00
|
|
|
struct wlr_surface {
|
|
|
|
bool valid;
|
2017-06-08 17:30:38 +02:00
|
|
|
GLuint tex_id;
|
|
|
|
uint32_t format;
|
|
|
|
int width, height;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_shader {
|
|
|
|
bool valid;
|
|
|
|
uint32_t format;
|
|
|
|
GLuint vert;
|
|
|
|
GLuint program;
|
2017-06-08 18:02:51 +02:00
|
|
|
struct wlr_shader *next;
|
2017-06-08 17:30:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_renderer {
|
|
|
|
struct wlr_shader *shader;
|
|
|
|
// TODO: EGL stuff
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|