#include <sio2_material.h>

Public Attributes | |
| char | name [SIO2_MAX_CHAR] |
| The name of the material. | |
| vec4 | diffuse |
| The diffuse color of the material. | |
| vec4 | specular |
| The specular color of the material. | |
| float | shininess |
| The shininess of the material. | |
| float | friction |
| The friction value of the material (for physic only). | |
| float | restitution |
| The restitution of the material (for physic only). | |
| float | alvl |
| The alpha level to use for the material. See GL_ALPHA_TEST. | |
| unsigned char | blend |
| The blending mode used for the the material. | |
| char | tname [SIO2_MATERIAL_MAX_CHANNEL][SIO2_MAX_CHAR] |
| The name of the textures linked to this material. | |
| unsigned int | tflags [SIO2_MATERIAL_MAX_CHANNEL] |
| The texture flags to assign for each texture of the material. | |
| float | tfilter [SIO2_MATERIAL_MAX_CHANNEL] |
| The texture filter to assign for each texture of the material. See GL_TEXTURE_LOD_BIAS_EXT. | |
| SIO2image * | _SIO2image [SIO2_MATERIAL_MAX_CHANNEL] |
| Array of SIO2image pointer linked to the material. | |
| char | sbname [SIO2_MATERIAL_MAX_SOUNDBUFFER][SIO2_MAX_CHAR] |
| The soundbuffers name for every sound linked to the material. | |
| unsigned int | sflags [SIO2_MATERIAL_MAX_SOUNDBUFFER] |
| The soundbuffer flags to use to assigned to every sounds buffers. | |
| SIO2soundbuffer * | _SIO2soundbuffer [SIO2_MATERIAL_MAX_SOUNDBUFFER] |
| Array of SIO2soundbuffer pointer linked to the material. | |
| SIO2vertexshader * | _SIO2vertexshader |
| The SIO2vertexshader callback to use when the material is rendering. | |
| char SIO2material::name[SIO2_MAX_CHAR] |
The diffuse color of the material.
Referenced by sio2MaterialInit(), sio2MaterialLoad(), and sio2MaterialRender().
The specular color of the material.
Referenced by sio2MaterialInit(), sio2MaterialLoad(), and sio2MaterialRender().
| float SIO2material::shininess |
The shininess of the material.
Referenced by sio2MaterialInit(), sio2MaterialLoad(), and sio2MaterialRender().
| float SIO2material::friction |
The friction value of the material (for physic only).
Referenced by sio2MaterialInit(), sio2MaterialLoad(), sio2PhysicAddRigidBody(), and sio2PhysicAddSoftBody().
The restitution of the material (for physic only).
Referenced by sio2MaterialLoad(), and sio2PhysicAddRigidBody().
| float SIO2material::alvl |
The alpha level to use for the material. See GL_ALPHA_TEST.
Referenced by sio2MaterialLoad(), sio2MaterialRender(), and sio2ObjectUpdateType().
| unsigned char SIO2material::blend |
The blending mode used for the the material.
Referenced by sio2MaterialLoad(), sio2MaterialRender(), and sio2ObjectUpdateType().
| char SIO2material::tname[SIO2_MATERIAL_MAX_CHANNEL][SIO2_MAX_CHAR] |
The name of the textures linked to this material.
Referenced by sio2MaterialLoad(), sio2ResourceBindImage(), and sio2ResourceGenId().
| unsigned int SIO2material::tflags[SIO2_MATERIAL_MAX_CHANNEL] |
The texture flags to assign for each texture of the material.
Referenced by sio2MaterialLoad(), and sio2ResourceGenId().
| float SIO2material::tfilter[SIO2_MATERIAL_MAX_CHANNEL] |
The texture filter to assign for each texture of the material. See GL_TEXTURE_LOD_BIAS_EXT.
Referenced by sio2MaterialLoad(), and sio2ResourceGenId().
| SIO2image* SIO2material::_SIO2image[SIO2_MATERIAL_MAX_CHANNEL] |
Array of SIO2image pointer linked to the material.
Referenced by sio2FontBuild(), sio2MaterialRender(), sio2ResourceBindImage(), and sio2ResourceGenId().
| char SIO2material::sbname[SIO2_MATERIAL_MAX_SOUNDBUFFER][SIO2_MAX_CHAR] |
The soundbuffers name for every sound linked to the material.
Referenced by sio2MaterialLoad(), sio2ObjectBindSound(), and sio2ResourceBindSoundBuffer().
| unsigned int SIO2material::sflags[SIO2_MATERIAL_MAX_SOUNDBUFFER] |
The soundbuffer flags to use to assigned to every sounds buffers.
Referenced by sio2MaterialLoad(), sio2ObjectBindSound(), and sio2ResourceGenId().
| SIO2soundbuffer* SIO2material::_SIO2soundbuffer[SIO2_MATERIAL_MAX_SOUNDBUFFER] |
Array of SIO2soundbuffer pointer linked to the material.
Referenced by sio2ObjectBindSound(), sio2ResourceBindSoundBuffer(), and sio2ResourceGenId().
| SIO2vertexshader* SIO2material::_SIO2vertexshader |
The SIO2vertexshader callback to use when the material is rendering.
Referenced by sio2VertexGroupGenId(), and sio2VertexGroupRender().
1.5.6