Python Script Engine
7.2
GL Studio Editor Python Script API
|
Public Member Functions | |
TypeDesc () | |
void | HasNormal (bool value) |
bool | HasNormal (void) |
void | HasColor (bool value) |
bool | HasColor (void) |
void | HasSecondaryColor (bool value) |
bool | HasSecondaryColor (void) |
void | SetNumTextureCoords (unsigned char value) |
unsigned char | GetNumTextureCoords (void) |
void | SetTexCoordDimension (unsigned char which, unsigned char value) |
unsigned char | GetTexCoordDimension (unsigned char which) |
void | SetNumVertexAttribs (unsigned char value) |
unsigned char | GetNumVertexAttribs (void) |
void | SetVertexAttribComponents (unsigned char which, int value) |
int | GetVertexAttribComponents (unsigned char which) |
void | SetVertexAttribType (unsigned char which, unsigned int value) |
unsigned int | GetVertexAttribType (unsigned char which) |
void | SetVertexAttribNormalize (unsigned char which, GLboolean value) |
unsigned char | GetVertexAttribNormalize (unsigned char which) |
void | SetVertexAttribSemantic (unsigned char which, int semanticEnum) |
int | GetVertexAttribSemantic (unsigned char which) |
Type descriptors for Geometry Resources.
TypeDesc::TypeDesc | ( | ) |
unsigned char TypeDesc::GetNumTextureCoords | ( | void | ) |
unsigned char TypeDesc::GetNumVertexAttribs | ( | void | ) |
unsigned char TypeDesc::GetTexCoordDimension | ( | unsigned char | which | ) |
int TypeDesc::GetVertexAttribComponents | ( | unsigned char | which | ) |
unsigned char TypeDesc::GetVertexAttribNormalize | ( | unsigned char | which | ) |
int TypeDesc::GetVertexAttribSemantic | ( | unsigned char | which | ) |
unsigned int TypeDesc::GetVertexAttribType | ( | unsigned char | which | ) |
void TypeDesc::HasColor | ( | bool | value | ) |
bool TypeDesc::HasColor | ( | void | ) |
void TypeDesc::HasNormal | ( | bool | value | ) |
bool TypeDesc::HasNormal | ( | void | ) |
void TypeDesc::HasSecondaryColor | ( | bool | value | ) |
bool TypeDesc::HasSecondaryColor | ( | void | ) |
void TypeDesc::SetNumTextureCoords | ( | unsigned char | value | ) |
void TypeDesc::SetNumVertexAttribs | ( | unsigned char | value | ) |
Set the number of generic vertex attributes stored in the resource.
Generic vertex attributes are passed to OpenGL using glVertexAttribPointer. These are special attributes to be used by the vertex shader.
value | The new number of generic vertex attributes |
void TypeDesc::SetTexCoordDimension | ( | unsigned char | which, |
unsigned char | value | ||
) |
void TypeDesc::SetVertexAttribComponents | ( | unsigned char | which, |
int | value | ||
) |
Set the size (number of components) in the generic vertex attribute See documentation on glVertexAttribPointer for details.
void TypeDesc::SetVertexAttribNormalize | ( | unsigned char | which, |
GLboolean | value | ||
) |
Set whether fixed-point data values should be normalized (Default is false) See documentation on glVertexAttribPointer for details.
void TypeDesc::SetVertexAttribSemantic | ( | unsigned char | which, |
int | semanticEnum | ||
) |
Set semantic of a given generic vertex attribute The semantic value can be used to determine the "meaning" of the vertex attribute.
which | Which vertex attrib to set |
semanticEnum | The new sematic value (see AttributeSemanticEnum) |
void TypeDesc::SetVertexAttribType | ( | unsigned char | which, |
unsigned int | value | ||
) |
Set the type of a given generic vertex attribute See documentation on glVertexAttribPointer for details.