javax.media.j3d
Class ShaderBin

java.lang.Object
  extended by javax.media.j3d.ShaderBin
All Implemented Interfaces:
ObjectUpdate

 class ShaderBin
extends java.lang.Object
implements ObjectUpdate


Field Summary
(package private)  java.util.ArrayList addTextureBins
          The list of TextureBins to be added for the next frame
(package private)  AttributeBin attributeBin
          The AttributeBin that this ShaderBin resides
(package private)  int componentDirty
           
(package private)  ShaderBin next
          The references to the next and previous ShaderBins in the list.
(package private)  int numEditingTextureBins
           
(package private)  boolean onUpdateList
           
(package private)  ShaderBin prev
           
(package private)  RenderBin renderBin
          The RenderBin for this object
(package private) static int SHADER_ATTRIBUTE_SET_DIRTY
           
(package private) static int SHADER_PROGRAM_DIRTY
          Node component dirty mask.
(package private)  ShaderAppearanceRetained shaderAppearance
           
(package private)  ShaderAttributeSetRetained shaderAttributeSet
           
(package private)  ShaderProgramRetained shaderProgram
           
(package private)  TextureBin textureBinList
          The list of TextureBins in this ShaderBin
 
Constructor Summary
ShaderBin(ShaderAppearanceRetained sApp, RenderBin rBin)
           
 
Method Summary
(package private)  void addTextureBin(TextureBin t, RenderBin rb, RenderAtom ra)
          Adds the given TextureBin to this AttributeBin.
(package private)  void clear()
           
(package private)  void decrActiveTextureBin()
           
(package private)  boolean equals(ShaderAppearanceRetained sApp)
          This tests if the qiven ra.shaderProgram match this shaderProgram
(package private)  void incrActiveTextureBin()
           
(package private)  void insertTextureBin(TextureBin t)
           
(package private)  void reInsertTextureBin(TextureBin tb)
          reInsert textureBin if the first texture is different from the previous bin and different from the next bin
(package private)  void removeTextureBin(TextureBin t)
          Removes the given TextureBin from this ShaderBin.
(package private)  void render(Canvas3D cv)
          Renders this ShaderBin
(package private)  void reset(ShaderAppearanceRetained sApp, RenderBin rBin)
           
(package private)  void updateAttributes(Canvas3D cv)
           
(package private)  void updateNodeComponent()
           
 void updateObject()
          The actual update function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHADER_PROGRAM_DIRTY

static final int SHADER_PROGRAM_DIRTY
Node component dirty mask.

See Also:
Constant Field Values

SHADER_ATTRIBUTE_SET_DIRTY

static final int SHADER_ATTRIBUTE_SET_DIRTY
See Also:
Constant Field Values

renderBin

RenderBin renderBin
The RenderBin for this object


attributeBin

AttributeBin attributeBin
The AttributeBin that this ShaderBin resides


next

ShaderBin next
The references to the next and previous ShaderBins in the list.


prev

ShaderBin prev

textureBinList

TextureBin textureBinList
The list of TextureBins in this ShaderBin


addTextureBins

java.util.ArrayList addTextureBins
The list of TextureBins to be added for the next frame


onUpdateList

boolean onUpdateList

numEditingTextureBins

int numEditingTextureBins

componentDirty

int componentDirty

shaderAppearance

ShaderAppearanceRetained shaderAppearance

shaderProgram

ShaderProgramRetained shaderProgram

shaderAttributeSet

ShaderAttributeSetRetained shaderAttributeSet
Constructor Detail

ShaderBin

ShaderBin(ShaderAppearanceRetained sApp,
          RenderBin rBin)
Method Detail

reset

void reset(ShaderAppearanceRetained sApp,
           RenderBin rBin)

clear

void clear()

equals

boolean equals(ShaderAppearanceRetained sApp)
This tests if the qiven ra.shaderProgram match this shaderProgram


updateObject

public void updateObject()
Description copied from interface: ObjectUpdate
The actual update function.

Specified by:
updateObject in interface ObjectUpdate

insertTextureBin

void insertTextureBin(TextureBin t)

reInsertTextureBin

void reInsertTextureBin(TextureBin tb)
reInsert textureBin if the first texture is different from the previous bin and different from the next bin


addTextureBin

void addTextureBin(TextureBin t,
                   RenderBin rb,
                   RenderAtom ra)
Adds the given TextureBin to this AttributeBin.


removeTextureBin

void removeTextureBin(TextureBin t)
Removes the given TextureBin from this ShaderBin.


render

void render(Canvas3D cv)
Renders this ShaderBin


updateAttributes

void updateAttributes(Canvas3D cv)

updateNodeComponent

void updateNodeComponent()

incrActiveTextureBin

void incrActiveTextureBin()

decrActiveTextureBin

void decrActiveTextureBin()


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.