sio2_material.cc File Reference

#include "sio2.h"

Include dependency graph for sio2_material.cc:


Functions

SIO2materialsio2MaterialInit (const char *_name)
SIO2materialsio2MaterialFree (SIO2material *_SIO2material)
unsigned char sio2MaterialLoad (char *_root, char *_tok, char *_val)
void sio2MaterialRender (SIO2material *_SIO2material)
void sio2MaterialReset (void)

Function Documentation

SIO2material* sio2MaterialFree ( SIO2material _SIO2material  ) 

Free a valid SIO2material pointer, and remove its handle from the global sio2 SIO2resource handle.

_SIO2material: A valid SIO2material pointer.

return a NULL SIO2material structure pointer.

References SIO2::_SIO2resource, sio2, SIO2_MATERIAL, and sio2ResourceDel().

Referenced by sio2ResourceUnload().

Here is the call graph for this function:

SIO2material* sio2MaterialInit ( const char _name  ) 

Create a new SIO2material, this new SIO2material pointer will be added to the global sio2 SIO2resource handle.

_name: The name to use to associate the SIO2material within the SIO2resource.

return a new SIO2material structure pointer.

References SIO2::_SIO2resource, SIO2material::diffuse, SIO2material::friction, SIO2material::name, SIO2material::shininess, sio2, SIO2_MATERIAL, sio2ResourceAdd(), sio2StringCpy(), SIO2material::specular, vec4::w, vec4::x, vec4::y, and vec4::z.

Referenced by sio2MaterialLoad().

Here is the call graph for this function:

unsigned char sio2MaterialLoad ( char _root,
char _tok,
char _val 
)

Function callback used by the parser to parse an SIO2material file.

_root: The root token.
_tok: The current token to parse.
_val: The value of the token.

return 1 or 0 if the token have been found.

References SIO2::_SIO2material, SIO2material::alvl, SIO2material::blend, SIO2material::diffuse, SIO2material::friction, SIO2material::restitution, SIO2material::sbname, SIO2material::sflags, SIO2material::shininess, sio2, SIO2_MAX_CHAR, sio2MaterialInit(), sio2StringCmp(), sio2StringCpy(), sio2StringScanf(), SIO2material::specular, SIO2material::tfilter, SIO2material::tflags, SIO2material::tname, vec4::w, vec4::x, vec4::y, and vec4::z.

Referenced by sio2ResourceCreateDictionary().

Here is the call graph for this function:

void sio2MaterialRender ( SIO2material _SIO2material  ) 

void sio2MaterialReset ( void   ) 

Reset all the machine state that the sio2MaterialRender function might have turn on.

References SIO2::_SIO2image, SIO2::_SIO2material, SIO2::_SIO2state, sio2, SIO2_ALPHA_TEST, SIO2_BLEND, SIO2_MATERIAL_MIX, SIO2_TEXTURE_2D0, SIO2_TEXTURE_2D1, SIO2_TEXTURE_COORD_ARRAY0, SIO2_TEXTURE_COORD_ARRAY1, sio2StateDisable(), sio2StateSetBlendMode(), and sio2StateSetColor().

Referenced by sio2EmitterRender(), and sio2VertexGroupRender().

Here is the call graph for this function:


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