
Go to the source code of this file.
| enum SIO2_STATE_FLAGS |
Disable a specific OpenGL machine state and sync it to the SIO2state.
_SIO2state: A valid SIO2state pointer.
_mask: The flag to enable, and sync it with the current OpenGL state.
return 1 or 0 if the state have been changed.
References SIO2state::flags, SIO2_ALPHA_TEST, SIO2_BLEND, SIO2_COLOR_ARRAY, SIO2_COLOR_MATERIAL, SIO2_CULL_FACE, SIO2_DEPTH_TEST, SIO2_FOG, SIO2_LIGHTING, SIO2_NORMAL_ARRAY, SIO2_NORMALIZE, SIO2_POINT_SIZE_ARRAY, SIO2_POINT_SPRITE, SIO2_TEXTURE_2D0, SIO2_TEXTURE_2D1, SIO2_TEXTURE_COORD_ARRAY0, SIO2_TEXTURE_COORD_ARRAY1, SIO2_VERTEX_ARRAY, sio2DisableState(), sio2IsStateEnabled(), sio2StateSetActiveTexture(), and sio2StateSetClientActiveTexture().
Referenced by sio2EmitterReset(), sio2LampDisableLighting(), sio2MaterialRender(), sio2MaterialReset(), sio2MistReset(), sio2ObjectBindVBO(), and sio2ObjectReset().

Enable a specific OpenGL machine state and sync it to the SIO2state.
_SIO2state: A valid SIO2state pointer.
_mask: The flag to enable, and sync it with the current OpenGL state.
return 1 or 0 if the state have been changed.
References SIO2state::flags, SIO2_ALPHA_TEST, SIO2_BLEND, SIO2_COLOR_ARRAY, SIO2_COLOR_MATERIAL, SIO2_CULL_FACE, SIO2_DEPTH_TEST, SIO2_FOG, SIO2_LIGHTING, SIO2_NORMAL_ARRAY, SIO2_NORMALIZE, SIO2_POINT_SIZE_ARRAY, SIO2_POINT_SPRITE, SIO2_TEXTURE_2D0, SIO2_TEXTURE_2D1, SIO2_TEXTURE_COORD_ARRAY0, SIO2_TEXTURE_COORD_ARRAY1, SIO2_VERTEX_ARRAY, sio2EnableState(), sio2IsStateEnabled(), sio2StateSetActiveTexture(), and sio2StateSetClientActiveTexture().
Referenced by sio2EmitterRender(), sio2FontPrint(), sio2InitGL(), sio2LampEnableLighting(), sio2MaterialRender(), sio2MistRender(), sio2ObjectBindVBO(), and sio2WidgetRender().

| SIO2state* sio2StateInit | ( | void | ) |
Set the active texture channel.
_SIO2state: A valid SIO2state pointer.
_texture: The active texture to change to.
return 1 or 0 is the state have been changed.
References SIO2state::a_texture.
Referenced by sio2StateDisable(), and sio2StateEnable().
Change the current alpha tested value.
_SIO2state: A valid SIO2state pointer.
_mode: A valid OpenGL test mode. ex: GL_GREATER _v: The value to use for the alpha test.
return 1 or 0 if the blend mode have been changed.
References SIO2state::alpha_value.
Referenced by sio2MaterialRender().
Change the current blend mode.
_SIO2state: A valid SIO2state pointer.
_blend: The blend mode to change to.
return 1 or 0 if the blend mode have been changed.
References SIO2state::blend, SIO2_MATERIAL_ADD, SIO2_MATERIAL_COLOR, SIO2_MATERIAL_DIFFERENCE, SIO2_MATERIAL_DIVIDE, SIO2_MATERIAL_MULTIPLY, SIO2_MATERIAL_SCREEN, SIO2_MATERIAL_SUBTRACT, and SIO2_MATERIAL_VALUE.
Referenced by sio2MaterialRender(), and sio2MaterialReset().
Set the client active texture channel.
_SIO2state: A valid SIO2state pointer.
_texture: The active texture to change to.
return 1 or 0 is the state have been changed.
References SIO2state::c_texture.
Referenced by sio2StateDisable(), and sio2StateEnable().
Change the current OpenGL pencil color.
_SIO2state: A valid SIO2state pointer.
_col: The color to change it for.
return 1 or 0 if the blend mode have been changed.
References SIO2state::col, vec4::w, vec4::x, vec4::y, and vec4::z.
Referenced by sio2MaterialRender(), sio2MaterialReset(), and sio2WidgetDebug().
1.5.6