sio2_state.cc File Reference

#include "sio2.h"

Include dependency graph for sio2_state.cc:


Functions

SIO2statesio2StateInit (void)
SIO2statesio2StateFree (SIO2state *_SIO2state)
unsigned char sio2StateEnable (SIO2state *_SIO2state, unsigned int _mask)
unsigned char sio2StateDisable (SIO2state *_SIO2state, unsigned int _mask)
unsigned char sio2StateSetActiveTexture (SIO2state *_SIO2state, int _texture)
unsigned char sio2StateSetClientActiveTexture (SIO2state *_SIO2state, int _texture)
unsigned char sio2StateSetBlendMode (SIO2state *_SIO2state, unsigned char _blend)
unsigned char sio2StateSetAlphaFunc (SIO2state *_SIO2state, int _mode, float _v)
unsigned char sio2StateSetColor (SIO2state *_SIO2state, vec4 *_col)

Function Documentation

unsigned char sio2StateDisable ( SIO2state _SIO2state,
unsigned int  _mask 
)

unsigned char sio2StateEnable ( SIO2state _SIO2state,
unsigned int  _mask 
)

SIO2state* sio2StateFree ( SIO2state _SIO2state  ) 

Free a valid SIO2state.

_SIO2state: A valid SIO2state handle.

return a NULL SIO2state pointer.

SIO2state* sio2StateInit ( void   ) 

Initialize a plain SIO2state, using the default value that SIO2 is using.

return a new SIO2state handle.

unsigned char sio2StateSetActiveTexture ( SIO2state _SIO2state,
int  _texture 
)

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().

unsigned char sio2StateSetAlphaFunc ( SIO2state _SIO2state,
int  _mode,
float  _v 
)

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().

unsigned char sio2StateSetBlendMode ( SIO2state _SIO2state,
unsigned char  _blend 
)

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().

unsigned char sio2StateSetClientActiveTexture ( SIO2state _SIO2state,
int  _texture 
)

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().

unsigned char sio2StateSetColor ( SIO2state _SIO2state,
vec4 _col 
)

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().


Generated on Thu Mar 4 15:41:50 2010 for SIO2 Engine by  doxygen 1.5.6