GL Studio C++ Runtime API
VertexAttribIndexLookup Class Referenceabstract

#include <gls_render_effect.h>

Inheritance diagram for VertexAttribIndexLookup:
GlsRenderEffect Effect_DiffNormSpecRefl Effect_DirectXShader

Public Types

enum  AttributeSemanticEnum {
  ATTRIB_UNDEFINED = 0 , ATTRIB_POSITION = 0x80000000 , ATTRIB_NORMAL , ATTRIB_BLENDWEIGHT ,
  ATTRIB_TANGENT , ATTRIB_BINORMAL , ATTRIB_BLENDINDICES , ATTRIB_PSIZE ,
  ATTRIB_TEXCOORD0 , ATTRIB_TEXCOORD1 , ATTRIB_TEXCOORD2 , ATTRIB_TEXCOORD3 ,
  ATTRIB_TEXCOORD4 , ATTRIB_TEXCOORD5 , ATTRIB_TEXCOORD6 , ATTRIB_TEXCOORD7
}
 

Public Member Functions

virtual GLint GetVertexAttribIndexForSemantic (int semanticEnum)=0
 

Detailed Description

Abstract interface that is needed to tell the GlsGeometryResource which vertex attrib indices to use for a given rendering pass. (e.g. the attribute index to use can vary depending on the shader used).

Member Enumeration Documentation

◆ AttributeSemanticEnum

The AttributeSemanticEnum enumeration. These are the predefined semantic values from the Cg language. Users should be able to define their own in the future, but these will be it for now.

Member Function Documentation

◆ GetVertexAttribIndexForSemantic()

virtual GLint GetVertexAttribIndexForSemantic ( int  semanticEnum)
pure virtual
Returns
The attributeIndex that should be used to pass the vertex attributes or -1 if they are not needed (see glVertexAttrib)
Parameters
semanticEnumThe sematic value (see AttributeSemanticEnum)

Implemented in Effect_DiffNormSpecRefl, and Effect_DirectXShader.


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