de.grogra.imp3d.glsl
public class OpenGLState extends java.lang.Object
GLSLFBOManager class. It stores all data shared
by the different classes of OpenGL (Proteus).| Constructor and Description |
|---|
OpenGLState() |
public static final char ALPHA_TEST
public static final char ALPHA_TEST_BIT
public static final int[] attachPoints
public boolean BGFound
public static final char BLEND
public static final char BLEND_BIT
public CachedShaderCollection csc
public static final char CULLING
public static final char CULLING_BIT
public java.lang.String currentPassName
public boolean debugDrawn
public static final int DEFAULT_MATERIAL
protected static final int DEFERRED_FBO
public DrawableContainer deferredLabelRenderable
public DrawableContainer deferredSolidRenderable
public DrawableContainer deferredToolRenderable
public DrawableContainer deferredTranspRenderable
public java.util.Vector<LightPos> defLight
public static final int DEPTH_PEELIG_MATERIAL
public static final char DEPTH_TEST
public static final char DEPTH_TEST_BIT
public int floatRT
public static final char FREE2
public static final char FREE2_BIT
public FrustumCullingTester frustumCullingTester
protected static final int HDR_FBO
public int height
public static final int INFINITY_PLANE_MATERIAL
public static final char LIGHTING
public static final char LIGHTING_BIT
public java.util.Vector<LightPos> lights
public LineSegmentizationCache lineCache
public int[] occlusionQuery
public int renderPass
public boolean resetCache
protected static final int RT_DIFF_SPEC
protected static final int RT_EMIS_FREE
protected static final int RT_FIRSTHDR
protected static final int RT_NORM_POS_SHINE
protected static final int RT_SECONDHDR
protected static final int RT_TRANSP_SPECTRANSP
protected static final int SHADOWMAP_FBO
public static final int SKY_MATERIAL
public static final int SKY_PREVIEW_MATERIAL
public static final int SKY_REFLECTION_MATERIAL
public GLSLSkyCube skyCube
public GLSLSkyCube skyDiffuseCube
public ShadowMapCollection SM_Manager
public java.util.Vector<GLSLOpenGLObject> staticObjects
public static final char STENCIL_TEST
public static final char STENCIL_TEST_BIT
public static final char TEXTURE_2D
public static final char TEXTURE_2D_BIT
public static final int TRANSP_DEPTH_ONLY_MATERIAL
public VBOManager VBO_Manager
public GLSLVolumeBuilder volume
public int width
public void cleanUp(boolean javaonly)
public void disable(char state)
public void enable(char state)
public int getActiveShader()
public FrameBufferObject getAlphaFBO()
public float getBgPowerDensity()
public Shader getBGShader()
public FrameBufferObject getCubeFBO()
public TextureRenderTarget getDeferredShadingDepthTRT()
public FrameBufferObject getDeferredShadingFBO()
public RenderBuffer getDepthRB()
public FrameBufferObject getDualDepthFBO()
public int getFaceCullingMode()
public GLSLFBOManager getFboManager()
public int getFloatRT()
public int getFloatRTLast()
public javax.media.opengl.GL getGL()
public int getGraphStamp()
public FrameBufferObject getHDRFBO()
public Matrix4d getInvViewToClip()
public Matrix4d getInvWorldToView()
public TextureRenderTarget getPeelingFarDepthTRT()
public TextureRenderTarget getPeelingNearDepthTRT()
public RenderBuffer getPeelingRB()
public FrameBufferObject getShadowFBO()
public RenderableCollection getShapeManager()
public boolean getState(char state)
public Matrix4d getViewToClip()
public Matrix4d getWorldToView()
public boolean hasGraphChanged()
public void info(java.lang.String txt)
public void initLineCache(GLDisplay disp)
public void initSize(int width,
int height)
public void invalidateCache()
public boolean isAssumeTranspMaterials()
public void loadMatrixd(Matrix4d m)
public long popClock()
public void presentDebugScreen(GLSLDisplay disp)
public long printClock(java.lang.String pre)
public void printGPUMemoryUsage(GLSLDisplay disp)
public void printPoints()
public void setActiveProgram(int program)
public void setAssumeTranspMaterials(boolean assumeTranspMaterials)
public void setDeferredShadingDepthTRT(TextureRenderTarget dsDTRT)
public void setDepthMask(boolean maskEnable)
public void setFaceCullingMode(int faceCulling)
public void setFBO(int fboNo)
public void setGL(javax.media.opengl.GL glcontext)
public void setMatrixMode(int matrixMode)
public void setPoint(Vector3f v, int i)
public void setShaderConfSwitch(int shaderConfSwitch)
public void setState(char state)
state - The State to be set. Each Bit corresponds to a certain Parameter.public void setupBGPowerDensity(float powerDensity)
public void setupBGShader(Shader shader)
public void startClock()
public void switchFloatRT()
public void testFBO()
public boolean testGLError()
public boolean testGLError(java.lang.String prefix)
public float[] toGLMatrix3f(Matrix3f mat)
mat - public double[] toGLMatrix4(Matrix4d m)
m - public void updateTransformations(GLSLDisplay disp)
public void warning(java.lang.String txt)