VertexData is a class used for specify input streams for GPU rendering pipeline, a VertexData will be composed by several streams, every stream will contain a VertexStreamAttribute and the binding VertexBuffer.
More...
|
|
unsigned int | _ID |
| | object id, ScriptSupport need public _ID
|
| |
|
int | _luaID |
| | Lua reference id.
|
| |
|
void * | _scriptObject |
| | scriptObject, support for swift
|
| |
|
bool | _rooted |
| | When true, it means that the object was already rooted.
|
| |
VertexData is a class used for specify input streams for GPU rendering pipeline, a VertexData will be composed by several streams, every stream will contain a VertexStreamAttribute and the binding VertexBuffer.
Streams will be identified by semantic. NA
◆ setStream()
Set a stream to VertexData,given that stream is identified by semantic, so if the semantic is not specified before, it will add a stream, or it will override the old one.
- Parameters
-
| buffer | The binding buffer of the stream. |
| stream | The binding vertex attribute, its member semantic will be used as the identifier. |
◆ removeStream()
| void removeStream |
( |
int |
semantic | ) |
|
Remove the given streams.
- Parameters
-
| semantic | The semantic of the stream. |
◆ getStreamAttribute() [1/2]
Get the attribute of stream, const version.
- Parameters
-
| semantic | The semantic of the stream. |
◆ getStreamAttribute() [2/2]
Get the attribute of stream.
- Parameters
-
| semantic | The semantic of the stream. |
◆ getStreamBuffer()
Get the binded buffer of the stream.
- Parameters
-
| semantic | The semantic of the stream. |
The documentation for this class was generated from the following file: