Browse Source

reorganize shader header

main
cinnaboot 5 years ago
parent
commit
7790ba2cda
  1. 30
      src/shader.h

30
src/shader.h

@ -8,14 +8,6 @@
#include "types.h" #include "types.h"
// FIXME: won't need this enum when dynamic shader parsing is working
enum glsl_layout
{
POSITION,
NORMAL,
UV
};
struct gl_buffer struct gl_buffer
{ {
GLuint id; GLuint id;
@ -85,13 +77,6 @@ struct GLContext
shader_program* shaders; shader_program* shaders;
}; };
struct transforms
{
glm::mat4 view_xform;
glm::mat4 proj_xform;
glm::mat4 normal_xform;
};
struct GLmesh struct GLmesh
{ {
u32 num_indices; u32 num_indices;
@ -121,6 +106,21 @@ struct node;
struct entity; struct entity;
struct animation; struct animation;
struct transforms
{
glm::mat4 view_xform;
glm::mat4 proj_xform;
glm::mat4 normal_xform;
};
// FIXME: won't need this enum when dynamic shader parsing is working
enum glsl_layout
{
POSITION,
NORMAL,
UV
};
const float DEFAULT_FOV = 60.f; const float DEFAULT_FOV = 60.f;
const float NEAR_CLIP_PLANE = 5.f; const float NEAR_CLIP_PLANE = 5.f;

Loading…
Cancel
Save