Interface IVertexConsumer
- All Known Implementing Classes:
BakedQuadBuilder
,LightUtil.ItemConsumer
,QuadGatheringTransformer
,TransformerConsumer
,TRSRTransformer
,VertexBufferConsumer
,VertexLighterFlat
,VertexLighterSmoothAo
,VertexTransformer
public interface IVertexConsumer
Assumes that the data length is not less than e.getElements().size().
Also assumes that element index passed will increment from 0 to format.getElements().size() - 1.
Normal, Color and UV are assumed to be in 0-1 range.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
put
(int element, float... data) void
setApplyDiffuseLighting
(boolean diffuse) void
setQuadOrientation
(Direction orientation) void
setQuadTint
(int tint) void
setTexture
(TextureAtlasSprite texture)
-
Method Details
-
getVertexFormat
VertexFormat getVertexFormat()- Returns:
- the format that should be used for passed data.
-
setQuadTint
void setQuadTint(int tint) -
setQuadOrientation
-
setApplyDiffuseLighting
void setApplyDiffuseLighting(boolean diffuse) -
setTexture
-
put
void put(int element, float... data)
-