Package icyllis.arc3d.engine
Interface MeshDrawTarget
- All Known Implementing Classes:
OpFlushState
Deprecated.
Abstract interface that supports creating vertices, indices, and meshes, as well as
invoking GPU draw operations.
-
Method Summary
Modifier and TypeMethodDescriptionlong
makeIndexSpace
(Mesh mesh) Deprecated.Makes space for index data.makeIndexWriter
(Mesh mesh) Deprecated.Helper method.long
makeInstanceSpace
(Mesh mesh) Deprecated.Makes space for instance data.makeInstanceWriter
(Mesh mesh) Deprecated.Helper method.long
makeVertexSpace
(Mesh mesh) Deprecated.Makes space for vertex data.makeVertexWriter
(Mesh mesh) Deprecated.Helper method.
-
Method Details
-
makeVertexSpace
Deprecated.Makes space for vertex data. The returned pointer is the location where vertex data should be written. On return the buffer that will hold the data as well as an offset into the buffer (in 'vertexSize' units) where the data will be placed.This method requires
Mesh.getVertexSize()
andMesh.getVertexCount()
as arguments andMesh.setVertexBuffer(Buffer, int, int)
as results.- Returns:
- may NULL if failed
-
makeInstanceSpace
Deprecated.Makes space for instance data. The returned pointer is the location where instance data should be written. On return the buffer that will hold the data as well as an offset into the buffer (in 'instanceSize' units) where the data will be placed.This method requires
Mesh.getInstanceSize()
andMesh.getInstanceCount()
as arguments andMesh.setInstanceBuffer(Buffer, int, int)
as results.- Returns:
- may NULL if failed
-
makeIndexSpace
Deprecated.Makes space for index data. The returned pointer is the location where index data should be written. On return the buffer that will hold the data as well as an offset into the buffer (in 'ushort' units) where the data will be placed.This method requires
Mesh.getIndexCount()
as arguments andMesh.setIndexBuffer(Buffer, int, int)
as results.- Returns:
- may NULL if failed
-
makeVertexWriter
Deprecated.Helper method.- Returns:
- may null if failed
- See Also:
-
makeInstanceWriter
Deprecated.Helper method.- Returns:
- may null if failed
- See Also:
-
makeIndexWriter
Deprecated.Helper method.- Returns:
- may null if failed
- See Also:
-