mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Use meson build system
This commit is contained in:
parent
ce886c0353
commit
fdab81e1c9
33 changed files with 157 additions and 1001 deletions
|
|
@ -1,10 +0,0 @@
|
|||
add_library(wlr-render
|
||||
matrix.c
|
||||
wlr_renderer.c
|
||||
wlr_surface.c
|
||||
gles2/shaders.c
|
||||
gles2/renderer.c
|
||||
gles2/surface.c
|
||||
gles2/pixel_format.c
|
||||
gles2/util.c
|
||||
)
|
||||
|
|
@ -123,7 +123,11 @@ static void draw_quad() {
|
|||
|
||||
static bool wlr_gles2_render_surface(struct wlr_renderer_state *state,
|
||||
struct wlr_surface *surface, const float (*matrix)[16]) {
|
||||
assert(surface && surface->valid);
|
||||
if(!surface || !surface->valid) {
|
||||
wlr_log(L_ERROR, "attempt to render invalid surface");
|
||||
return false;
|
||||
}
|
||||
|
||||
wlr_surface_bind(surface);
|
||||
GL_CALL(glUniformMatrix4fv(0, 1, GL_FALSE, *matrix));
|
||||
// TODO: source alpha from somewhere else I guess
|
||||
|
|
|
|||
10
render/meson.build
Normal file
10
render/meson.build
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
wlr_files += files(
|
||||
'matrix.c',
|
||||
'wlr_renderer.c',
|
||||
'wlr_surface.c',
|
||||
'gles2/pixel_format.c',
|
||||
'gles2/renderer.c',
|
||||
'gles2/shaders.c',
|
||||
'gles2/surface.c',
|
||||
'gles2/util.c',
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue