Class VertexAttribute
java.lang.Object
com.codename1.gpu.VertexAttribute
Describes a single attribute (position, normal, texture coordinate, color)
within a
VertexFormat. The engine derives the generated shader's vertex
inputs from the attributes present in the format, which is why a fixed set of
well known usages is used rather than free form names.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe semantic meaning of a vertex attribute. -
Constructor Summary
ConstructorsConstructorDescriptionVertexAttribute(VertexAttribute.Usage usage, int components) Creates a float backed attribute. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of float components in this attribute.getUsage()Returns the semantic usage of this attribute.
-
Constructor Details
-
VertexAttribute
Creates a float backed attribute.
Parameters
-
usage: the semantic usage of the attribute -
components: the number of float components (1 to 4)
-
-
-
Method Details
-
getUsage
Returns the semantic usage of this attribute. -
getComponents
public int getComponents()Returns the number of float components in this attribute.
-