|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface MeshLayer
Layer for handling meshes.
メソッドの概要 | |
---|---|
void |
clearVertexAttribs()
Clears all vertex attributes set with setVertexAttrib . |
void |
deleteBuffer(VertexBuffer vb)
Deletes a vertex buffer from the GPU. |
void |
drawTriangleList(VertexBuffer indexBuf,
Mesh.Mode mode,
int count,
int vertCount)
Draws the list of triangles given in the index buffer. |
void |
renderMesh(Mesh mesh,
int count)
Renders count meshes, with the geometry data supplied. |
void |
setVertexAttrib(VertexBuffer vb)
Sets the vertex attrib. |
void |
updateBufferData(VertexBuffer vb)
Uploads the vertex buffer's data onto the GPU, assiging it an ID if needed. |
メソッドの詳細 |
---|
void updateBufferData(VertexBuffer vb)
void deleteBuffer(VertexBuffer vb)
vb
- The vertex buffer to deletevoid setVertexAttrib(VertexBuffer vb)
vb
-
InvalidArgumentException
- If the given vertex buffer is an
index buffer.void drawTriangleList(VertexBuffer indexBuf, Mesh.Mode mode, int count, int vertCount)
setVertexAttrib
.
The int variable gl_VertexID can be used to access the current
vertex index inside the vertex shader.
count
- The number of instances to drawvoid clearVertexAttribs()
setVertexAttrib
.
void renderMesh(Mesh mesh, int count)
count
meshes, with the geometry data supplied.
The shader which is currently set with setShader
is
responsible for transforming the input verticies into clip space
and shading it based on the given vertex attributes.
The int variable gl_InstanceID can be used to access the current
instance of the mesh being rendered inside the vertex shader.
mesh
- count
-
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |