Gawain: immediate mode set uniforms for active program

Start simple with vec4 uniforms. Add more later.
This commit is contained in:
2016-08-07 21:30:02 -04:00
parent 11ffbfb36a
commit 8e99eec026
2 changed files with 40 additions and 0 deletions

View File

@@ -58,6 +58,9 @@ extern PER_THREAD VertexFormat immVertexFormat; // so we don't have to copy or p
void immInit(void);
void immDestroy(void);
void immBindProgram(GLuint program);
void immUnbindProgram(void);
void immBegin(GLenum primitive, unsigned vertex_ct);
void immEnd(void);
@@ -73,3 +76,6 @@ void immEndVertex(void); // and move on to the next vertex
// provide 2D or 3D attribute value and end the current vertex, similar to glVertex:
void immVertex2f(unsigned attrib_id, float x, float y);
void immVertex3f(unsigned attrib_id, float x, float y, float z);
// provide values that don't change for the entire draw call
void immUniform4f(const char* name, float x, float y, float z, float w);