Package codechicken.lib.render.pipeline
Class VertexAttribute<T>
java.lang.Object
codechicken.lib.render.pipeline.VertexAttribute<T>
- Type Parameters:
T- The type for this attribute eg. int[], Vector3[]
- All Implemented Interfaces:
IVertexOperation
- Direct Known Subclasses:
ColourAttribute,LightCoordAttribute,LightingAttribute,NormalAttribute,SideAttribute
Management class for a vertex attribute such as colour, normal etc
This class should handle the loading of the attribute from an Attribute provided by
IVertexSource.getAttribute(AttributeKey) or the computation of this attribute from others-
Nested Class Summary
Nested classes/interfaces inherited from interface codechicken.lib.render.pipeline.IVertexOperation
IVertexOperation.VertexOperationRegistry -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanSet to true when the attribute is part of the pipeline. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the unique id representing this type of operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface codechicken.lib.render.pipeline.IVertexOperation
load, operate
-
Field Details
-
active
public boolean activeSet to true when the attribute is part of the pipeline. Should only be managed by CCRenderState when constructing the pipeline
-
-
Constructor Details
-
VertexAttribute
-
-
Method Details
-
operationID
public int operationID()Description copied from interface:IVertexOperationGet the unique id representing this type of operation. Duplicate operation IDs within the pipeline may have unexpected results. ID should be obtained from CCRenderState.registerOperation() and stored in a static variable- Specified by:
operationIDin interfaceIVertexOperation
-