mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-06 13:29:45 -05:00
Add wlr_shader to wlr-render
This commit is contained in:
parent
fc1dc1b5b0
commit
211488131f
5 changed files with 167 additions and 47 deletions
28
include/render.h
Normal file
28
include/render.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#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>
|
||||
|
||||
struct wlr_texture {
|
||||
GLuint tex_id;
|
||||
uint32_t format;
|
||||
int width, height;
|
||||
};
|
||||
|
||||
struct wlr_shader {
|
||||
bool valid;
|
||||
uint32_t format;
|
||||
GLuint vert;
|
||||
GLuint program;
|
||||
struct wl_list link;
|
||||
};
|
||||
|
||||
struct wlr_renderer {
|
||||
struct wlr_shader *shader;
|
||||
// TODO: EGL stuff
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue