|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.NodeComponent
org.j3d.aviatrix3d.Texture
org.j3d.aviatrix3d.MRTTexture2D
public class MRTTexture2D
A single render target child of a MRTOffscreenTexture2D
node.
Due to the requirements for OpenGL 2.0, this will only work with frame buffer objects and not Pbuffers.
This texture is not directly instantiatable as it is a child of the multiple render targets. It wraps a single render target for use later on by other pieces of geometry or shaders.
Internationalisation Resource Names
Field Summary | |
---|---|
protected BufferSetupData |
bufferData
Capabilities setup for this renderer |
protected int |
height
The height of the main texture. |
Fields inherited from class org.j3d.aviatrix3d.NodeComponent |
---|
lastParent, liveCount, parentList |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
alive, LISTENER_SET_TIMING_ERR_PROP, updateHandler |
Method Summary | |
---|---|
int |
compareTo(Texture tex)
Compares this object with the specified object for order. |
boolean |
equals(Texture tex)
Compares this object with the specified object to check for equivalence. |
int |
getBoundaryModeT()
Get the current boundary handling for the S parameter. |
OffscreenBufferDescriptor |
getBuffer(java.lang.Object obj)
Get the currently registered pBuffer for the given key object. |
BufferSetupData |
getBufferSetup()
Get the requested buffer setup that describes this offscreen buffer. |
int |
getHeight()
Get the height of the texture in pixels. |
int |
getRenderTargetIndex()
Request the index of this texture in the render target list. |
boolean |
isChildRenderTarget()
Check to see if this is a child render target of a parent multiple render target offscreen buffer. |
void |
postRender(javax.media.opengl.GL gl)
Restore all openGL state to the given drawable |
void |
registerBuffer(java.lang.Object obj,
OffscreenBufferDescriptor buffer)
Register a pBuffer for a given key object. |
void |
render(javax.media.opengl.GL gl)
Issue ogl commands needed for this component |
void |
setBoundaryModeT(int mode)
Set the boundary handling for the T parameter. |
void |
setSources(int mipMapMode,
int format,
TextureSource[] texSources,
int num)
Set the images for this texture, overridden to provide an empty implementation as this is handled by the FBO directly. |
void |
unregisterBuffer(java.lang.Object obj)
Remove an already registered pBuffer for a given key object. |
Methods inherited from class org.j3d.aviatrix3d.NodeComponent |
---|
addParent, getParents, numParents, removeParent |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
checkForCyclicChild, checkForCyclicParent, dataChanged, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setUserData |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.j3d.aviatrix3d.rendering.OffscreenRenderTargetRenderable |
---|
getWidth |
Methods inherited from interface org.j3d.aviatrix3d.rendering.Renderable |
---|
equals |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
protected int height
protected BufferSetupData bufferData
Method Detail |
---|
public void setSources(int mipMapMode, int format, TextureSource[] texSources, int num) throws InvalidWriteTimingException
setSources
in class Texture
mipMapMode
- Flag stating the type of texture mode to useformat
- Image format to use for grayscale imagestexSources
- The source data to use, single for base levelnum
- The valid number of images to use from the array
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback methodpublic int compareTo(Texture tex)
compareTo
in class Texture
tex
- The texture instance to be compared
public boolean equals(Texture tex)
equals
in class Texture
tex
- The texture instance to be compared
public int getHeight()
getHeight
in interface OffscreenRenderTargetRenderable
public boolean isChildRenderTarget()
isChildRenderTarget
in interface OffscreenRenderTargetRenderable
public BufferSetupData getBufferSetup()
getBufferSetup
in interface OffscreenRenderTargetRenderable
public OffscreenBufferDescriptor getBuffer(java.lang.Object obj)
getBuffer
in interface OffscreenRenderTargetRenderable
obj
- The key used to register the buffer with
public void registerBuffer(java.lang.Object obj, OffscreenBufferDescriptor buffer)
registerBuffer
in interface OffscreenRenderTargetRenderable
obj
- The key used to register the buffer withbuffer
- The buffer instance to use here.public void unregisterBuffer(java.lang.Object obj)
unregisterBuffer
in interface OffscreenRenderTargetRenderable
obj
- The key used to register the buffer withpublic void render(javax.media.opengl.GL gl)
render
in interface ObjectRenderable
gl
- The gl context to draw withpublic void postRender(javax.media.opengl.GL gl)
postRender
in interface ObjectRenderable
gl
- The gl context to draw withpublic int getRenderTargetIndex()
public void setBoundaryModeT(int mode) throws InvalidWriteTimingException
mode
- The new mode.
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener data changed callback methodpublic int getBoundaryModeT()
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |