IDLgrSurface::GetVertexAttributeData
Syntax | Arguments | Keywords | Examples | Version History | See Also
The IDLgrSurface::GetVertexAttributeData procedure method retrieves the data associated with a named attribute variable containing per-vertex attribute data. See Attribute Variables (Object Programming). This method is useful when a shader program defined by an IDLgrShader object modifies the vertices of an object. See Advanced Rendering Using Shader Objects (Object Programming) for more information.
Syntax
Obj->[IDLgrSurface::]GetVertexAttributeData, Name, Value
Arguments
Name
Specifies a case-sensitive string name of the attribute variable to retrieve.
Note
If the Name argument specifies an attribute variable that was never defined and stored in the surface object using SetVertexAttributeData, then the variable specified in the Value parameter will be set to an undefined variable.
Value
Specifies a variable that contains the current value of the vertex data attribute variable. The variable is stored in this parameter in exactly the same format as that used when it was defined using IDLgrSurface::SetVertexAttributeData.
Keywords
None
Examples
See Vertex Shaders (Object Programming).
Version History
See Also
IDLgrSurface::SetVertexAttributeData