Python Script Engine  8.3
GL Studio Editor Python Script API
TypeDesc Class Reference

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)
 

Detailed Description

Type descriptors for Geometry Resources.

Constructor & Destructor Documentation

◆ TypeDesc()

TypeDesc::TypeDesc ( )

Member Function Documentation

◆ GetNumTextureCoords()

int TypeDesc::GetNumTextureCoords ( None  )

◆ GetNumVertexAttribs()

int TypeDesc::GetNumVertexAttribs ( None  )

◆ GetTexCoordDimension()

int TypeDesc::GetTexCoordDimension ( int  which)

◆ GetVertexAttribComponents()

int TypeDesc::GetVertexAttribComponents ( int  which)

◆ GetVertexAttribNormalize()

int TypeDesc::GetVertexAttribNormalize ( int  which)

◆ GetVertexAttribSemantic()

int TypeDesc::GetVertexAttribSemantic ( int  which)

◆ GetVertexAttribType()

int TypeDesc::GetVertexAttribType ( int  which)

◆ HasColor() [1/2]

None TypeDesc::HasColor ( bool  value)

◆ HasColor() [2/2]

bool TypeDesc::HasColor ( None  )

◆ HasNormal() [1/2]

None TypeDesc::HasNormal ( bool  value)

◆ HasNormal() [2/2]

bool TypeDesc::HasNormal ( None  )

◆ HasSecondaryColor() [1/2]

None TypeDesc::HasSecondaryColor ( bool  value)

◆ HasSecondaryColor() [2/2]

bool TypeDesc::HasSecondaryColor ( None  )

◆ SetNumTextureCoords()

None TypeDesc::SetNumTextureCoords ( int  value)

◆ SetNumVertexAttribs()

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.

Parameters
valueThe new number of generic vertex attributes
See also
SetVertexAttribSizeBytes

◆ SetTexCoordDimension()

None TypeDesc::SetTexCoordDimension ( int  which,
int  value 
)

◆ SetVertexAttribComponents()

None TypeDesc::SetVertexAttribComponents ( int  which,
int  value 
)

Set the size (number of components) in the generic vertex attribute See documentation on glVertexAttribPointer for details.

◆ SetVertexAttribNormalize()

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.

◆ SetVertexAttribSemantic()

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.

Parameters
whichWhich vertex attrib to set
semanticEnumThe new sematic value (see AttributeSemanticEnum)

◆ SetVertexAttribType()

None TypeDesc::SetVertexAttribType ( int  which,
int  value 
)

Set the type of a given generic vertex attribute See documentation on glVertexAttribPointer for details.


The documentation for this class was generated from the following file: