|
|
|
@ -5,8 +5,7 @@ |
|
|
|
#include <GL/glew.h> |
|
|
|
#include <GL/glew.h> |
|
|
|
#include <glm/glm.hpp> |
|
|
|
#include <glm/glm.hpp> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "types.h" |
|
|
|
typedef uint32_t u32; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME: won't need this enum when dynamic shader parsing is working
|
|
|
|
// FIXME: won't need this enum when dynamic shader parsing is working
|
|
|
|
@ -129,27 +128,6 @@ struct light_array |
|
|
|
point_light* lights; |
|
|
|
point_light* lights; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
struct SDLHandles |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
SDL_Window* window; |
|
|
|
|
|
|
|
SDL_GLContext sdl_gl_ctx; |
|
|
|
|
|
|
|
SDL_DisplayMode display_mode; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct RenderState |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
memory_arena* arena; |
|
|
|
|
|
|
|
model_assets* assets; |
|
|
|
|
|
|
|
texture_assets* textures; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
transforms* xforms; // NOTE: would be part of camera in libTangerine
|
|
|
|
|
|
|
|
SDLHandles* handles; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GLContext* gl_ctx; |
|
|
|
|
|
|
|
gl_mesh_array* gl_mesh_arr; |
|
|
|
|
|
|
|
light_array lights; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct node; |
|
|
|
struct node; |
|
|
|
struct entity; |
|
|
|
struct entity; |
|
|
|
struct animation; |
|
|
|
struct animation; |
|
|
|
|