small cleaning
This commit is contained in:
+23
@@ -1,3 +1,6 @@
|
||||
#include "linmath.h"
|
||||
#include <glad/gl.h>
|
||||
|
||||
#ifndef TYPES_H
|
||||
#define TYPES_H
|
||||
|
||||
@@ -5,6 +8,26 @@ struct Parameters {
|
||||
// TODO
|
||||
};
|
||||
|
||||
typedef struct Vertex {
|
||||
vec2 pos;
|
||||
} Vertex;
|
||||
|
||||
typedef struct ShaderProgram {
|
||||
GLuint program;
|
||||
|
||||
GLuint vertex_buffer;
|
||||
|
||||
GLuint vertex_shader;
|
||||
GLuint fragment_shader;
|
||||
|
||||
GLuint mvp_location;
|
||||
GLuint vpos_location;
|
||||
GLuint itime_location;
|
||||
GLuint ires_location;
|
||||
|
||||
GLuint vertex_array;
|
||||
} ShaderProgram;
|
||||
|
||||
typedef struct Parameters parameters;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user