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

public abstract class VertexAttribute<T> extends Object implements IVertexOperation
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
  • Field Details

    • active

      public boolean active
      Set to true when the attribute is part of the pipeline. Should only be managed by CCRenderState when constructing the pipeline
  • Constructor Details

  • Method Details

    • operationID

      public int operationID()
      Description copied from interface: IVertexOperation
      Get 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:
      operationID in interface IVertexOperation