public abstract class Transformation extends ITransformation<Vector3,Transformation> implements CCRenderState.IVertexOperation
| Modifier and Type | Field and Description |
|---|---|
static int |
operationIndex |
| Constructor and Description |
|---|
Transformation() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
apply(Matrix4 mat)
Applies this transformation to a matrix as a multiplication on the right hand side.
|
abstract void |
applyN(Vector3 normal)
Applies this transformation to a normal (doesn't translate)
|
Transformation |
at(Vector3 point) |
abstract void |
glApply() |
boolean |
load()
Load any required references and add dependencies to the pipeline based on the current model (may be null)
Return false if this operation is redundant in the pipeline with the given model
|
void |
operate()
Perform the operation on the current render state
|
int |
operationID()
Get the unique id representing this type of operation.
|
TransformationList |
with(Transformation t)
Creates a TransformationList composed of this transformation followed by t
If this is a TransformationList, the transformation will be appended and this returned
|
$plus$plus, apply, inverse, isRedundant, mergepublic abstract void applyN(Vector3 normal)
normal - The normal to transformpublic abstract void apply(Matrix4 mat)
mat - The matrix to combine this transformation withpublic Transformation at(Vector3 point)
at in class ITransformation<Vector3,Transformation>point - The point to apply this transformation aroundpublic TransformationList with(Transformation t)
ITransformationwith in class ITransformation<Vector3,Transformation>public abstract void glApply()
public boolean load()
CCRenderState.IVertexOperationload in interface CCRenderState.IVertexOperationpublic void operate()
CCRenderState.IVertexOperationoperate in interface CCRenderState.IVertexOperationpublic int operationID()
CCRenderState.IVertexOperationoperationID in interface CCRenderState.IVertexOperation