public class CCRenderState
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
CCRenderState.IVertexOperation
Represents an operation to be run for each vertex that operates on and modifies the current state
|
static interface |
CCRenderState.IVertexSource |
static class |
CCRenderState.VertexAttribute<T>
Management class for a vertex attrute such as colour, normal etc
This class should handle the loading of the attrute from an array provided by IVertexSource.getAttributes or the computation of this attrute from others
|
| Modifier and Type | Field and Description |
|---|---|
static int |
alphaOverride |
static int |
baseColour |
static int |
brightness |
static int |
colour |
static CCRenderState.VertexAttribute<int[]> |
colourAttrib |
static boolean |
computeLighting |
static int |
firstVertexIndex |
static boolean |
hasBrightness |
static boolean |
hasColour |
static boolean |
hasNormal |
static int |
lastVertexIndex |
static LC |
lc |
static CCRenderState.VertexAttribute<LC[]> |
lightCoordAttrib
Uses the position of the lightmatrix to compute LC if not provided
|
static CCRenderState.VertexAttribute<int[]> |
lightingAttrib |
static LightMatrix |
lightMatrix |
static CCRenderState.IVertexSource |
model |
static Vector3 |
normal |
static CCRenderState.VertexAttribute<Vector3[]> |
normalAttrib |
static CCRenderPipeline |
pipeline |
static int |
side |
static CCRenderState.VertexAttribute<int[]> |
sideAttrib |
static boolean |
useColour |
static boolean |
useNormals |
static Vertex5 |
vert |
static int |
vertexIndex |
| Constructor and Description |
|---|
CCRenderState() |
| Modifier and Type | Method and Description |
|---|---|
static void |
arrayCopy(java.lang.Object src,
int srcPos,
java.lang.Object dst,
int destPos,
int length) |
static void |
bindModel(CCRenderState.IVertexSource model) |
static void |
changeTexture(ResourceLocation texture) |
static void |
changeTexture(java.lang.String texture) |
static <T> T |
copyOf(CCRenderState.VertexAttribute<T> attr,
T src,
int length) |
static void |
draw() |
static CCRenderState.VertexAttribute<?> |
getAttribute(int index) |
static int |
operationCount() |
static void |
pullLightmap() |
static void |
pushLightmap() |
static int |
registerOperation() |
static void |
render() |
static void |
render(CCRenderState.IVertexOperation... ops) |
static void |
reset() |
static void |
runPipeline() |
static void |
setBrightness(IBlockAccess world,
int x,
int y,
int z) |
static void |
setBrightness(int b) |
static void |
setColour(int c) |
static void |
setDynamic()
Compact helper for setting dynamic rendering context.
|
static void |
setModel(CCRenderState.IVertexSource source) |
static void |
setModel(CCRenderState.IVertexSource source,
int start,
int end) |
static void |
setNormal(double x,
double y,
double z) |
static void |
setNormal(Vector3 n) |
static void |
setPipeline(CCRenderState.IVertexOperation... ops) |
static void |
setPipeline(CCRenderState.IVertexSource model,
int start,
int end,
CCRenderState.IVertexOperation... ops) |
static void |
setVertexRange(int start,
int end) |
static void |
startDrawing() |
static void |
startDrawing(int mode) |
static void |
writeVert() |
public static CCRenderState.VertexAttribute<Vector3[]> normalAttrib
public static CCRenderState.VertexAttribute<int[]> colourAttrib
public static CCRenderState.VertexAttribute<int[]> lightingAttrib
public static CCRenderState.VertexAttribute<int[]> sideAttrib
public static CCRenderState.VertexAttribute<LC[]> lightCoordAttrib
public static CCRenderState.IVertexSource model
public static int firstVertexIndex
public static int lastVertexIndex
public static int vertexIndex
public static CCRenderPipeline pipeline
public static int baseColour
public static int alphaOverride
public static boolean useNormals
public static boolean computeLighting
public static boolean useColour
public static LightMatrix lightMatrix
public static Vertex5 vert
public static boolean hasNormal
public static Vector3 normal
public static boolean hasColour
public static int colour
public static boolean hasBrightness
public static int brightness
public static int side
public static LC lc
public static int registerOperation()
public static int operationCount()
public static CCRenderState.VertexAttribute<?> getAttribute(int index)
public static void arrayCopy(java.lang.Object src,
int srcPos,
java.lang.Object dst,
int destPos,
int length)
public static <T> T copyOf(CCRenderState.VertexAttribute<T> attr, T src, int length)
public static void reset()
public static void setPipeline(CCRenderState.IVertexOperation... ops)
public static void setPipeline(CCRenderState.IVertexSource model, int start, int end, CCRenderState.IVertexOperation... ops)
public static void bindModel(CCRenderState.IVertexSource model)
public static void setModel(CCRenderState.IVertexSource source)
public static void setModel(CCRenderState.IVertexSource source, int start, int end)
public static void setVertexRange(int start,
int end)
public static void render(CCRenderState.IVertexOperation... ops)
public static void render()
public static void runPipeline()
public static void writeVert()
public static void setNormal(double x,
double y,
double z)
public static void setNormal(Vector3 n)
public static void setColour(int c)
public static void setBrightness(int b)
public static void setBrightness(IBlockAccess world,
int x,
int y,
int z)
public static void pullLightmap()
public static void pushLightmap()
public static void setDynamic()
public static void changeTexture(java.lang.String texture)
public static void changeTexture(ResourceLocation texture)
public static void startDrawing()
public static void startDrawing(int mode)
public static void draw()