|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.renderer.lwjgl.LWJGLTextureRenderer
This class is used by LWJGL to render textures. Users should not create this class directly. Instead, allow DisplaySystem to create it for you.
DisplaySystem.createTextureRenderer(int, int, boolean,
boolean, boolean, boolean, int, int)| Field Summary |
| Fields inherited from interface com.jme.renderer.TextureRenderer |
RENDER_TEXTURE_1D, RENDER_TEXTURE_2D, RENDER_TEXTURE_CUBE_MAP, RENDER_TEXTURE_RECTANGLE |
| Constructor Summary | |
LWJGLTextureRenderer(int width,
int height,
LWJGLRenderer parentRenderer,
org.lwjgl.opengl.RenderTexture texture)
|
|
| Method Summary | |
void |
activate()
|
void |
cleanup()
Any wrapping up and cleaning up of TextureRenderer information is performed here. |
void |
deactivate()
|
ColorRGBA |
getBackgroundColor()
getBackgroundColor retrieves the clear color of the
current OpenGL context. |
Camera |
getCamera()
getCamera retrieves the camera this renderer is using. |
void |
render(Spatial spat,
Texture tex)
render renders a scene. |
void |
setBackgroundColor(ColorRGBA c)
setBackgroundColor sets the OpenGL clear color to the
color specified. |
void |
setCamera(Camera camera)
setCamera sets the camera this renderer should use. |
Texture |
setupTexture()
setupTexture generates a new Texture object for use with
TextureRenderer. |
Texture |
setupTexture(int glTextureID)
setupTexture generates a new Texture object for use with
TextureRenderer. |
void |
updateCamera()
updateCamera updates the camera in the pbuffer context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LWJGLTextureRenderer(int width,
int height,
LWJGLRenderer parentRenderer,
org.lwjgl.opengl.RenderTexture texture)
| Method Detail |
public Camera getCamera()
getCamera retrieves the camera this renderer is using.
getCamera in interface TextureRendererpublic void setCamera(Camera camera)
setCamera sets the camera this renderer should use.
setCamera in interface TextureRenderercamera - the camera this renderer should use.public void setBackgroundColor(ColorRGBA c)
setBackgroundColor sets the OpenGL clear color to the
color specified.
setBackgroundColor in interface TextureRendererc - the color to set the background color to.TextureRenderer.setBackgroundColor(com.jme.renderer.ColorRGBA)public ColorRGBA getBackgroundColor()
getBackgroundColor retrieves the clear color of the
current OpenGL context.
getBackgroundColor in interface TextureRendererRenderer.getBackgroundColor()public Texture setupTexture()
setupTexture generates a new Texture object for use with
TextureRenderer. Generates a valid gl texture id for this texture.
setupTexture in interface TextureRendererpublic Texture setupTexture(int glTextureID)
setupTexture generates a new Texture object for use with
TextureRenderer.
setupTexture in interface TextureRendererglTextureID - a valid gl texture id to use
public void render(Spatial spat,
Texture tex)
render renders a scene. As it recieves a base class of
Spatial the renderer hands off management of the scene to
spatial for it to determine when a Geometry leaf is
reached. All of this is done in the context of the underlying texture
buffer.
render in interface TextureRendererspat - the scene to render.tex - the Texture to render it to.public void activate()
public void deactivate()
public void updateCamera()
TextureRendererupdateCamera updates the camera in the pbuffer context.
updateCamera in interface TextureRendererpublic void cleanup()
TextureRenderer
cleanup in interface TextureRenderer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||