所有已知实现类:
CCModel

public interface IVertexSource
Created by covers1624 on 10/10/2016.
  • 方法详细资料

    • getVertices

      Vertex5[] getVertices()
      The vertices for this model.
      返回:
      The Vertices.
    • getVertexCount

      default int getVertexCount()
      The number of vertices available in the model.

      By default, this method just returns the length of the @link #getVertices()} array.

      返回:
      The number of vertices available.
    • getAttribute

      @Nullable <T> T getAttribute(AttributeKey<T> attr)
      Gets an attribute from this IVertexSource.
      参数:
      attr - The vertex attribute to get
      返回:
      The T for the given AttributeKey or null of the Attribute does not exist.
    • hasAttribute

      boolean hasAttribute(AttributeKey<?> attr)
      Returns true if the specified attribute is provided by this IVertexSource.

      The IVertexSource will either return data from getAttribute(AttributeKey) or set the state in prepareVertex(CCRenderState).

      返回:
      true if the attribute exists.
    • prepareVertex

      void prepareVertex(CCRenderState ccrs)
      Called before the pipeline processes a vertex.
      参数:
      ccrs - The instance.