summaryrefslogtreecommitdiff
path: root/src/gl.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-06-07 13:47:35 +0100
committerPhil Jones <philj56@gmail.com>2022-06-07 15:31:49 +0100
commit51bbf779ba2c9d5954e2c9470a8eae7c1ddd38a5 (patch)
treef2b52f0211f9052fefa64e23c6a0d81305391589 /src/gl.h
parent7562d7b539d8013376de2cff494231ba307f4ee1 (diff)
Switch from using (E)GL to wl_shm.
eglInitialize() is slow (~50-100ms), and uses a fair amount of memory (~100 MB). For such a small, simple program that just wants to launch as quickly as possible, wl_shm performs better.
Diffstat (limited to 'src/gl.h')
-rw-r--r--src/gl.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/gl.h b/src/gl.h
deleted file mode 100644
index 8d4b6f9..0000000
--- a/src/gl.h
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifndef GL_H
-#define GL_H
-
-#include <epoxy/gl.h>
-#include "color.h"
-#include "image.h"
-
-struct gl {
- GLuint vbo;
- GLuint vao;
- GLuint ebo;
- GLuint texture;
- GLuint shader;
-};
-
-void gl_initialise(struct gl *gl, struct image *texture);
-void gl_destroy(struct gl *gl);
-void gl_clear(struct gl *gl, struct color *color);
-void gl_draw_texture(
- struct gl *gl,
- struct image *texture,
- int32_t x,
- int32_t y,
- int32_t width,
- int32_t height);
-
-#endif /* GL_H */