|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.rendering.r3d.opengl.rendering.RenderContext
public class RenderContext
The RenderContext
wraps the current GL context the view params and all other parameters necessary to
render a scene with opengl.
Constructor Summary | |
---|---|
RenderContext(ViewParams viewParams)
Construct the RenderContext with the given view parameters. |
|
RenderContext(ViewParams viewParams,
float terrainScale)
Construct the RenderContext with the given values. |
|
RenderContext(ViewParams viewParams,
float terrainScale,
int maxTextureSize,
ShaderProgram[] compositingTextureShaderPrograms)
Construct the RenderContext with the given values. |
Method Summary | |
---|---|
ShaderProgram |
getCompositingTextureShaderProgram(int numberOfTextures)
|
javax.media.opengl.GL |
getContext()
|
int |
getMaxTextureSize()
|
float |
getTerrainScale()
|
ViewParams |
getViewParams()
|
void |
setContext(javax.media.opengl.GL context)
|
void |
setMaxTextureSize(int maxTextureSize)
|
void |
setTerrainScale(float terrainScale)
|
void |
setUpdateLOD(boolean updateLOD)
|
boolean |
updateLOD()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RenderContext(ViewParams viewParams)
viewParams
- public RenderContext(ViewParams viewParams, float terrainScale)
viewParams
- terrainScale
- scaled z value of the terrain.public RenderContext(ViewParams viewParams, float terrainScale, int maxTextureSize, ShaderProgram[] compositingTextureShaderPrograms)
viewParams
- terrainScale
- scaled z value of the terrain.maxTextureSize
- compositingTextureShaderPrograms
- used for assigning and rendering multiple textures to a macro triangle.Method Detail |
---|
public final void setContext(javax.media.opengl.GL context)
context
- the current gl contextpublic final javax.media.opengl.GL getContext()
public final ViewParams getViewParams()
public final float getTerrainScale()
public final void setTerrainScale(float terrainScale)
terrainScale
- the terrainScale to set.public final int getMaxTextureSize()
public final void setMaxTextureSize(int maxTextureSize)
maxTextureSize
- the maxTextureSize to setpublic ShaderProgram getCompositingTextureShaderProgram(int numberOfTextures)
numberOfTextures
- the number of textures to be blended.
public void setUpdateLOD(boolean updateLOD)
updateLOD
- true if updating the lod should be enabled.public boolean updateLOD()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |