MLX42 1.0
MLX42
|
#include <MLX42_Int.h>
For rendering we need to store most of OpenGL's stuff such as the vertex array object, vertex buffer object & the shader program as well as hooks and the zdepth level.
Additionally we represent draw calls with a linked list queue that points to the image and the index of its instance. Again, instances only carry XYZ data, so coupled with the image it lets us know where to draw a copy of the image.
Texture contexts are kept in a struct alongside the capacity of the array of instances, since the array is realloced like a vector.
Definition at line 172 of file MLX42_Int.h.
int32_t mlx_ctx::batch_size |
Definition at line 194 of file MLX42_Int.h.
vertex_t mlx_ctx::batch_vertices[MLX_BATCH_SIZE] |
Definition at line 195 of file MLX42_Int.h.
int32_t mlx_ctx::bound_textures[16] |
Definition at line 193 of file MLX42_Int.h.
mlx_close_t mlx_ctx::close_hook |
Definition at line 190 of file MLX42_Int.h.
mlx_cursor_t mlx_ctx::cursor_hook |
Definition at line 187 of file MLX42_Int.h.
mlx_list_t* mlx_ctx::hooks |
Definition at line 181 of file MLX42_Int.h.
mlx_list_t* mlx_ctx::images |
Definition at line 182 of file MLX42_Int.h.
int32_t mlx_ctx::initialHeight |
Definition at line 179 of file MLX42_Int.h.
int32_t mlx_ctx::initialWidth |
Definition at line 178 of file MLX42_Int.h.
mlx_key_t mlx_ctx::key_hook |
Definition at line 188 of file MLX42_Int.h.
mlx_mouse_t mlx_ctx::mouse_hook |
Definition at line 186 of file MLX42_Int.h.
mlx_list_t* mlx_ctx::render_queue |
Definition at line 183 of file MLX42_Int.h.
mlx_resize_t mlx_ctx::resize_hook |
Definition at line 189 of file MLX42_Int.h.
mlx_scroll_t mlx_ctx::scroll_hook |
Definition at line 185 of file MLX42_Int.h.
GLuint mlx_ctx::shaderprogram |
Definition at line 176 of file MLX42_Int.h.
GLuint mlx_ctx::vao |
Definition at line 174 of file MLX42_Int.h.
GLuint mlx_ctx::vbo |
Definition at line 175 of file MLX42_Int.h.
int32_t mlx_ctx::zdepth |
Definition at line 192 of file MLX42_Int.h.