GL Studio C++ Runtime API
GlsGeometryResource::TypeDesc Class Reference

Public Member Functions

void SetNumVertexAttribs (unsigned char value)
 
void SetVertexAttribComponents (unsigned char which, GLint value)
 
void SetVertexAttribType (unsigned char which, GLenum value)
 
void SetVertexAttribNormalize (unsigned char which, GLboolean value)
 
void SetVertexAttribSemantic (unsigned char which, int semanticEnum)
 

Member Function Documentation

void SetNumVertexAttribs ( unsigned char  value)
inline

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
void SetVertexAttribComponents ( unsigned char  which,
GLint  value 
)
inline

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

void SetVertexAttribNormalize ( unsigned char  which,
GLboolean  value 
)
inline

Set whether fixed-point data values should be normalized (Default is false) See documentation on glVertexAttribPointer for details

void SetVertexAttribSemantic ( unsigned char  which,
int  semanticEnum 
)
inline

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)
void SetVertexAttribType ( unsigned char  which,
GLenum  value 
)
inline

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: