You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
379 B
23 lines
379 B
|
|
#pragma once |
|
|
|
#include <GL/glew.h> |
|
|
|
|
|
struct shader_program |
|
{ |
|
GLuint program_id; |
|
|
|
GLuint model_matrix_id; |
|
GLuint view_matrix_id; |
|
GLuint projection_matrix_id; |
|
GLuint normal_matrix_id; |
|
|
|
GLuint vertex_array_id; |
|
GLuint sampler_id; |
|
GLuint num_lights_id; |
|
}; |
|
|
|
shader_program* shaderInit(const char* vertex_code, const char* frag_code); |
|
|
|
void shaderFree(shader_program* shader);
|
|
|