Changeset View
Changeset View
Standalone View
Standalone View
intern/gawain/src/gwn_batch.c
| Show First 20 Lines • Show All 417 Lines • ▼ Show 20 Lines | void GWN_batch_program_use_end(Gwn_Batch* batch) | ||||
| } | } | ||||
| #if TRUST_NO_ONE | #if TRUST_NO_ONE | ||||
| #define GET_UNIFORM const Gwn_ShaderInput* uniform = GWN_shaderinterface_uniform(batch->interface, name); assert(uniform); | #define GET_UNIFORM const Gwn_ShaderInput* uniform = GWN_shaderinterface_uniform(batch->interface, name); assert(uniform); | ||||
| #else | #else | ||||
| #define GET_UNIFORM const Gwn_ShaderInput* uniform = GWN_shaderinterface_uniform(batch->interface, name); | #define GET_UNIFORM const Gwn_ShaderInput* uniform = GWN_shaderinterface_uniform(batch->interface, name); | ||||
| #endif | #endif | ||||
| void GWN_batch_uniform_1ui(Gwn_Batch* batch, const char* name, int value) | |||||
| { | |||||
| GET_UNIFORM | |||||
| glUniform1ui(uniform->location, value); | |||||
| } | |||||
| void GWN_batch_uniform_1i(Gwn_Batch* batch, const char* name, int value) | void GWN_batch_uniform_1i(Gwn_Batch* batch, const char* name, int value) | ||||
| { | { | ||||
| GET_UNIFORM | GET_UNIFORM | ||||
| glUniform1i(uniform->location, value); | glUniform1i(uniform->location, value); | ||||
| } | } | ||||
| void GWN_batch_uniform_1b(Gwn_Batch* batch, const char* name, bool value) | void GWN_batch_uniform_1b(Gwn_Batch* batch, const char* name, bool value) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines | |||||