Top Description Fields Constructors Methods
org.lwjgl.test.opengl.pbuffers

pack-priv abstract Class TextureRenderer

extends Object
Class Inheritance
Known Direct Subclasses
org.lwjgl.test.opengl.pbuffers.UniqueRenderer, org.lwjgl.test.opengl.pbuffers.UniqueRendererRTT
Imports
org.lwjgl.LWJGLException, org.lwjgl.opengl.Pbuffer

Implementations of this class should create a pbuffer and implement "render-to-texture" accordingly.

Field Summary

Modifier and TypeField and Description
protected final int
protected Pbuffer
private final int
protected final int

Constructor Summary

AccessConstructor and Description
protected
TextureRenderer(final int width, final int height, final int texID)

Method Summary

Modifier and TypeMethod and Description
pack-priv final void
destroy()

Clean-up resources held by the renderer

pack-priv void
enable()

This will be called before rendering to the renderer.

protected abstract Pbuffer
init(int width, int height, int texID)

Create and initialize the pbuffer.

pack-priv abstract void
updateTexture()

Implementations should update the texture contents here.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

heightback to summary
protected final int height
pbufferback to summary
protected Pbuffer pbuffer
texIDback to summary
private final int texID
widthback to summary
protected final int width

Constructor Detail

TextureRendererback to summary
protected TextureRenderer(final int width, final int height, final int texID)

Method Detail

destroyback to summary
pack-priv final void destroy()

Clean-up resources held by the renderer

enableback to summary
pack-priv void enable()

This will be called before rendering to the renderer. Implementations should setup the pbuffer context as necessary.

initback to summary
protected abstract Pbuffer init(int width, int height, int texID) throws LWJGLException

Create and initialize the pbuffer.

updateTextureback to summary
pack-priv abstract void updateTexture()

Implementations should update the texture contents here.