Package codechicken.lib.model.pipeline
Interface IPipelineConsumer
- All Superinterfaces:
IVertexConsumer
- All Known Implementing Classes:
QuadAlphaOverride,QuadClamper,QuadCornerKicker,QuadFaceStripper,QuadReInterpolator,QuadTinter,QuadTransformer
Anything implementing this may be used in the BakedPipeline.
-
Method Summary
Modifier and TypeMethodDescriptionvoidreset(CachedFormat format) Resets the Consumer to the new format.voidsetInputQuad(Quad quad) The quad at the start of the transformation.voidsetParent(IVertexConsumer parent) Sets the parent consumer.Methods inherited from interface codechicken.lib.model.IVertexConsumer
getVertexFormat, put, put, put, setApplyDiffuseLighting, setQuadOrientation, setQuadTint, setTexture
-
Method Details
-
setInputQuad
The quad at the start of the transformation. This is useful for obtaining the vertex data before any transformations have been applied, such as interpolation, SeeQuadReInterpolator. When overriding this make sure you call setInputQuad on your parent consumer too.- Parameters:
quad- The quad.
-
reset
Resets the Consumer to the new format. This should resize any internal arrays if needed, ready for the new vertex data.- Parameters:
format- The format to reset to.
-
setParent
Sets the parent consumer. This consumer may choose to not pipe any data, that's fine, but if it does, it MUST pipe the data to the one provided here.- Parameters:
parent- The parent.
-