|
Aviatrix3D 2.0 Beta 2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.pipeline.graphics.BaseSortStage
org.j3d.aviatrix3d.pipeline.graphics.BaseStateSortStage
org.j3d.aviatrix3d.pipeline.graphics.StateAndTransparencyDepthSortStage
Implementation of the sort stage that does everything - state sorting and depth sorted transparency.
Field Summary |
Fields inherited from class org.j3d.aviatrix3d.pipeline.graphics.BaseStateSortStage |
clipTmp, currentAppearance, currentBlendAttr, currentClipPlanes, currentDepthAttr, currentFog, currentLights, currentLineAttr, currentMaterial, currentPointAttr, currentPolyAttr, currentShader, currentShaderArgs, currentStencilAttr, currentTextures, keepClipPlanes, keepLights, lightIdMap, lightTmp, newClipPlanes, newLights, numTextures, oldClipPlanes, oldLights, stateComparator, TEX_IDS |
Fields inherited from class org.j3d.aviatrix3d.pipeline.graphics.BaseSortStage |
commandList, instructionMap, lastGlobalId, LIST_START_SIZE, terminate |
Constructor Summary | |
StateAndTransparencyDepthSortStage()
Create an empty sorting stage that assumes just a single renderable output. |
|
StateAndTransparencyDepthSortStage(int numSurfaces)
Create an empty sorting stage that initialises the internal structures to assume that there is a minumum number of surfaces, both on and offscreen. |
|
StateAndTransparencyDepthSortStage(int numSurfaces,
int depthBits)
Create an empty sorting stage that initialises the internal structures to assume that there is a minumum number of surfaces, both on and offscreen. |
Method Summary | |
protected int |
estimateInstructionSize(MultipassRenderBucket scene)
Estimate the required size of the instruction list needed for this scene to be processed. |
protected int |
estimateInstructionSize(SceneRenderBucket scene)
Estimate the required size of the instruction list needed for this scene to be processed. |
protected int |
sort2DNodes(GraphicsCullOutputDetails[] nodes,
int numNodes,
GraphicsEnvironmentData data,
GraphicsInstructions instr,
int instrCount)
Sort a single set of nodes into the output details of a single layer of a single viewport and place in the provided GraphicsInstructions instance. |
protected int |
sortNodes(GraphicsCullOutputDetails[] nodes,
int numNodes,
GraphicsEnvironmentData data,
GraphicsInstructions instr,
int instrCount)
Sort a single set of nodes into the output details of a single layer of a single viewport and place in the provided GraphicsInstructions instance. |
Methods inherited from class org.j3d.aviatrix3d.pipeline.graphics.BaseStateSortStage |
appendClipPlanes, appendLights, appendObject, cleanupObjects, cleanupVisuals, updateBlendAttribs, updateDepthAttribs, updateFog, updateLineAttribs, updateMaterial, updatePointAttribs, updatePolyAttribs, updateShader, updateStencilAttribs, updateTextures |
Methods inherited from class org.j3d.aviatrix3d.pipeline.graphics.BaseSortStage |
halt, realloc, setSortedGeometryReceiver, sort |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StateAndTransparencyDepthSortStage()
public StateAndTransparencyDepthSortStage(int numSurfaces)
numSurfaces
- The number of surfaces to start the internal lists
sizes at.public StateAndTransparencyDepthSortStage(int numSurfaces, int depthBits)
numSurfaces
- The number of surfaces to start the internal lists
sizes at.depthBits
- The number of bits of depth precision to quantize the
depth sorting to
java.lang.IllegalArgumentException
- Depth bits is zero or negativeMethod Detail |
protected int estimateInstructionSize(SceneRenderBucket scene)
estimateInstructionSize
in class BaseSortStage
scene
- The scene bucket to use for the source
protected int estimateInstructionSize(MultipassRenderBucket scene)
estimateInstructionSize
in class BaseSortStage
scene
- The scene bucket to use for the source
protected int sortNodes(GraphicsCullOutputDetails[] nodes, int numNodes, GraphicsEnvironmentData data, GraphicsInstructions instr, int instrCount)
sortNodes
in class BaseSortStage
nodes
- The list of nodes to perform sorting onnumNodes
- The number of valid items in the nodes arrayinstr
- Instruction instant to put the details intoinstrCount
- Offset of current number of valid instructionsdata
- The environment data used during sorting
protected int sort2DNodes(GraphicsCullOutputDetails[] nodes, int numNodes, GraphicsEnvironmentData data, GraphicsInstructions instr, int instrCount)
sort2DNodes
in class BaseSortStage
nodes
- The list of nodes to perform sorting onnumNodes
- The number of valid items in the nodes arrayinstr
- Instruction instant to put the details intoinstrCount
- Offset of current number of valid instructionsdata
- The environment data used during sorting
|
Aviatrix3D 2.0 Beta 2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |