Changeset View
Changeset View
Standalone View
Standalone View
intern/gawain/gawain/gwn_batch.h
| Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | |||||
| void GWN_batch_program_set(Gwn_Batch*, GLuint program, const Gwn_ShaderInterface*); | void GWN_batch_program_set(Gwn_Batch*, GLuint program, const Gwn_ShaderInterface*); | ||||
| void GWN_batch_program_unset(Gwn_Batch*); | void GWN_batch_program_unset(Gwn_Batch*); | ||||
| // Entire batch draws with one shader program, but can be redrawn later with another program. | // Entire batch draws with one shader program, but can be redrawn later with another program. | ||||
| // Vertex shader's inputs must be compatible with the batch's vertex format. | // Vertex shader's inputs must be compatible with the batch's vertex format. | ||||
| void GWN_batch_program_use_begin(Gwn_Batch*); // call before Batch_Uniform (temp hack?) | void GWN_batch_program_use_begin(Gwn_Batch*); // call before Batch_Uniform (temp hack?) | ||||
| void GWN_batch_program_use_end(Gwn_Batch*); | void GWN_batch_program_use_end(Gwn_Batch*); | ||||
| void GWN_batch_uniform_1ui(Gwn_Batch*, const char* name, int value); | |||||
| void GWN_batch_uniform_1i(Gwn_Batch*, const char* name, int value); | void GWN_batch_uniform_1i(Gwn_Batch*, const char* name, int value); | ||||
| void GWN_batch_uniform_1b(Gwn_Batch*, const char* name, bool value); | void GWN_batch_uniform_1b(Gwn_Batch*, const char* name, bool value); | ||||
| void GWN_batch_uniform_1f(Gwn_Batch*, const char* name, float value); | void GWN_batch_uniform_1f(Gwn_Batch*, const char* name, float value); | ||||
| void GWN_batch_uniform_2f(Gwn_Batch*, const char* name, float x, float y); | void GWN_batch_uniform_2f(Gwn_Batch*, const char* name, float x, float y); | ||||
| void GWN_batch_uniform_3f(Gwn_Batch*, const char* name, float x, float y, float z); | void GWN_batch_uniform_3f(Gwn_Batch*, const char* name, float x, float y, float z); | ||||
| void GWN_batch_uniform_4f(Gwn_Batch*, const char* name, float x, float y, float z, float w); | void GWN_batch_uniform_4f(Gwn_Batch*, const char* name, float x, float y, float z, float w); | ||||
| void GWN_batch_uniform_2fv(Gwn_Batch*, const char* name, const float data[2]); | void GWN_batch_uniform_2fv(Gwn_Batch*, const char* name, const float data[2]); | ||||
| void GWN_batch_uniform_3fv(Gwn_Batch*, const char* name, const float data[3]); | void GWN_batch_uniform_3fv(Gwn_Batch*, const char* name, const float data[3]); | ||||
| ▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines | |||||