Record Class MeshHandle
java.lang.Object
java.lang.Record
dev.engine.graphics.common.MeshHandle
public record MeshHandle(Handle<BufferResource> vertexBuffer, Handle<BufferResource> indexBuffer, Handle<VertexInputResource> vertexInput, VertexFormat format, int vertexCount, int indexCount)
extends Record
A registered mesh in the renderer. Holds GPU resources for vertex/index data.
-
Constructor Summary
ConstructorsConstructorDescriptionMeshHandle(Handle<BufferResource> vertexBuffer, Handle<BufferResource> indexBuffer, Handle<VertexInputResource> vertexInput, VertexFormat format, int vertexCount, int indexCount) Creates an instance of aMeshHandlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theindexBufferrecord component.intReturns the value of theindexCountrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevertexBufferrecord component.intReturns the value of thevertexCountrecord component.Returns the value of thevertexInputrecord component.
-
Constructor Details
-
MeshHandle
public MeshHandle(Handle<BufferResource> vertexBuffer, Handle<BufferResource> indexBuffer, Handle<VertexInputResource> vertexInput, VertexFormat format, int vertexCount, int indexCount) Creates an instance of aMeshHandlerecord class.- Parameters:
vertexBuffer- the value for thevertexBufferrecord componentindexBuffer- the value for theindexBufferrecord componentvertexInput- the value for thevertexInputrecord componentformat- the value for theformatrecord componentvertexCount- the value for thevertexCountrecord componentindexCount- the value for theindexCountrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
vertexBuffer
Returns the value of thevertexBufferrecord component.- Returns:
- the value of the
vertexBufferrecord component
-
indexBuffer
Returns the value of theindexBufferrecord component.- Returns:
- the value of the
indexBufferrecord component
-
vertexInput
Returns the value of thevertexInputrecord component.- Returns:
- the value of the
vertexInputrecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
vertexCount
public int vertexCount()Returns the value of thevertexCountrecord component.- Returns:
- the value of the
vertexCountrecord component
-
indexCount
public int indexCount()Returns the value of theindexCountrecord component.- Returns:
- the value of the
indexCountrecord component
-