![]() |
Python Script Engine
8.3
GL Studio Editor Python Script API
|
Public Member Functions | |
TypeDesc () | |
None | HasNormal (bool value) |
bool | HasNormal (None) |
None | HasColor (bool value) |
bool | HasColor (None) |
None | HasSecondaryColor (bool value) |
bool | HasSecondaryColor (None) |
None | SetNumTextureCoords (int value) |
int | GetNumTextureCoords (None) |
None | SetTexCoordDimension (int which, int value) |
int | GetTexCoordDimension (int which) |
None | SetNumVertexAttribs (int value) |
int | GetNumVertexAttribs (None) |
None | SetVertexAttribComponents (int which, int value) |
int | GetVertexAttribComponents (int which) |
None | SetVertexAttribType (int which, int value) |
int | GetVertexAttribType (int which) |
None | SetVertexAttribNormalize (int which, GLboolean value) |
int | GetVertexAttribNormalize (int which) |
None | SetVertexAttribSemantic (int which, int semanticEnum) |
int | GetVertexAttribSemantic (int which) |
Type descriptors for Geometry Resources.
TypeDesc::TypeDesc | ( | ) |
int TypeDesc::GetNumTextureCoords | ( | None | ) |
int TypeDesc::GetNumVertexAttribs | ( | None | ) |
int TypeDesc::GetTexCoordDimension | ( | int | which | ) |
int TypeDesc::GetVertexAttribComponents | ( | int | which | ) |
int TypeDesc::GetVertexAttribNormalize | ( | int | which | ) |
int TypeDesc::GetVertexAttribSemantic | ( | int | which | ) |
int TypeDesc::GetVertexAttribType | ( | int | which | ) |
None TypeDesc::HasColor | ( | bool | value | ) |
bool TypeDesc::HasColor | ( | None | ) |
None TypeDesc::HasNormal | ( | bool | value | ) |
bool TypeDesc::HasNormal | ( | None | ) |
None TypeDesc::HasSecondaryColor | ( | bool | value | ) |
bool TypeDesc::HasSecondaryColor | ( | None | ) |
None TypeDesc::SetNumTextureCoords | ( | int | value | ) |
None TypeDesc::SetNumVertexAttribs | ( | int | 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 |
None TypeDesc::SetTexCoordDimension | ( | int | which, |
int | value | ||
) |
None TypeDesc::SetVertexAttribComponents | ( | int | which, |
int | value | ||
) |
Set the size (number of components) in the generic vertex attribute See documentation on glVertexAttribPointer for details.
None TypeDesc::SetVertexAttribNormalize | ( | int | which, |
GLboolean | value | ||
) |
Set whether fixed-point data values should be normalized (Default is false) See documentation on glVertexAttribPointer for details.
None TypeDesc::SetVertexAttribSemantic | ( | int | 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) |
None TypeDesc::SetVertexAttribType | ( | int | which, |
int | value | ||
) |
Set the type of a given generic vertex attribute See documentation on glVertexAttribPointer for details.