Skip to content

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.

VertexAttribute gives each attribute one of these types; a backend maps it to the vertex format of its API.

ReturnsSignatureSummary
intgetSize()Returns the size of one component, in bytes.
ValueSummary
FLOATA 32-bit float.
UNSIGNED_BYTEAn unsigned 8-bit integer.
BYTEA signed 8-bit integer.

int getSize()

Returns the size of one component, in bytes.

FLOAT

A 32-bit float.

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

Report a problem with this page