From 275536b36657744d802866c060654e2b5cd5a5f8 Mon Sep 17 00:00:00 2001 From: sanine Date: Thu, 18 Aug 2022 22:46:40 -0500 Subject: implement working windows --- src/gl/gl.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/gl/gl.h (limited to 'src/gl/gl.h') diff --git a/src/gl/gl.h b/src/gl/gl.h new file mode 100644 index 0000000..2e27851 --- /dev/null +++ b/src/gl/gl.h @@ -0,0 +1,9 @@ +#ifndef HONEY_GL_H +#define HONEY_GL_H + +#include + +void setup_gl(lua_State *L, int honey_index); +void setup_window(lua_State *L, int honey_index); + +#endif -- cgit v1.2.1 From 65ad3a58adcfe21690f379ab894a104b3852e3e9 Mon Sep 17 00:00:00 2001 From: sanine Date: Mon, 22 Aug 2022 10:31:56 -0500 Subject: refactor: move shader functions into separate file --- src/gl/gl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gl/gl.h') diff --git a/src/gl/gl.h b/src/gl/gl.h index 2e27851..b209957 100644 --- a/src/gl/gl.h +++ b/src/gl/gl.h @@ -4,6 +4,7 @@ #include void setup_gl(lua_State *L, int honey_index); +void setup_shader(lua_State *L, int gl_index); void setup_window(lua_State *L, int honey_index); #endif -- cgit v1.2.1 From dccc9bef56d51c5cad13c2568c5a3b97f637fd6e Mon Sep 17 00:00:00 2001 From: sanine Date: Mon, 22 Aug 2022 10:45:52 -0500 Subject: refactor: move drawing code into separate file --- src/gl/gl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gl/gl.h') diff --git a/src/gl/gl.h b/src/gl/gl.h index b209957..f384c54 100644 --- a/src/gl/gl.h +++ b/src/gl/gl.h @@ -5,6 +5,8 @@ void setup_gl(lua_State *L, int honey_index); void setup_shader(lua_State *L, int gl_index); +void setup_drawing(lua_State *L, int gl_index); + void setup_window(lua_State *L, int honey_index); #endif -- cgit v1.2.1 From a2c162f12337142c054c2e1f01ad508ee56963d2 Mon Sep 17 00:00:00 2001 From: sanine Date: Mon, 22 Aug 2022 11:00:42 -0500 Subject: refactor: move data functions into separate file --- src/gl/gl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gl/gl.h') diff --git a/src/gl/gl.h b/src/gl/gl.h index f384c54..766fe63 100644 --- a/src/gl/gl.h +++ b/src/gl/gl.h @@ -6,6 +6,7 @@ void setup_gl(lua_State *L, int honey_index); void setup_shader(lua_State *L, int gl_index); void setup_drawing(lua_State *L, int gl_index); +void setup_data(lua_State *L, int gl_index); void setup_window(lua_State *L, int honey_index); -- cgit v1.2.1 From 1f47b685f35455afcc7441389cdc60018f66d159 Mon Sep 17 00:00:00 2001 From: sanine Date: Mon, 22 Aug 2022 15:55:44 -0500 Subject: add textures --- src/gl/gl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gl/gl.h') diff --git a/src/gl/gl.h b/src/gl/gl.h index 766fe63..8aa1ef7 100644 --- a/src/gl/gl.h +++ b/src/gl/gl.h @@ -7,6 +7,7 @@ void setup_gl(lua_State *L, int honey_index); void setup_shader(lua_State *L, int gl_index); void setup_drawing(lua_State *L, int gl_index); void setup_data(lua_State *L, int gl_index); +void setup_texture(lua_State *L, int gl_index); void setup_window(lua_State *L, int honey_index); -- cgit v1.2.1