VertexComponent
enum VertexComponent
Package: dev.joid.lib.bridge.render.vertex · Module: core · Source: VertexComponent.java
The numeric type of the components of a vertex attribute.
Description
Section titled “Description”VertexAttribute gives each attribute one of these types; a backend maps it to the vertex format of its API.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
int | getSize() | Returns the size of one component, in bytes. |
Values
Section titled “Values”| Value | Summary |
|---|---|
FLOAT | A 32-bit float. |
UNSIGNED_BYTE | An unsigned 8-bit integer. |
BYTE | A signed 8-bit integer. |
Method details
Section titled “Method details”getSize
Section titled “getSize”int getSize()
Returns the size of one component, in bytes.
Value details
Section titled “Value details”FLOAT
A 32-bit float.
UNSIGNED_BYTE
Section titled “UNSIGNED_BYTE”UNSIGNED_BYTE
An unsigned 8-bit integer.
BYTE
A signed 8-bit integer.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
