接口 IVertexSource
- 所有已知实现类:
CCModel
public interface IVertexSource
Created by covers1624 on 10/10/2016.
-
方法概要
修饰符和类型方法说明<T> TgetAttribute(AttributeKey<T> attr) Gets an attribute from thisIVertexSource.default intThe number of vertices available in the model.Vertex5[]The vertices for this model.booleanhasAttribute(AttributeKey<?> attr) Returnstrueif the specified attribute is provided by thisIVertexSource.voidprepareVertex(CCRenderState ccrs) Called before the pipeline processes a vertex.
-
方法详细资料
-
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
Gets an attribute from thisIVertexSource.- 参数:
attr- The vertex attribute to get- 返回:
- The
Tfor the givenAttributeKeyornullof the Attribute does not exist.
-
hasAttribute
Returnstrueif the specified attribute is provided by thisIVertexSource.The
IVertexSourcewill either return data fromgetAttribute(AttributeKey)or set the state inprepareVertex(CCRenderState).- 返回:
trueif the attribute exists.
-
prepareVertex
Called before the pipeline processes a vertex.- 参数:
ccrs- The instance.
-