Use meson build system

This commit is contained in:
nyorain 2017-07-17 20:38:28 +02:00
parent ce886c0353
commit fdab81e1c9
33 changed files with 157 additions and 1001 deletions

View file

@ -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
)

View file

@ -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
View 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',
)