|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OffscreenTexture2D
or MRTOffscreenTexture2D
public interface MultipassTextureDestination
Marker describing a Texture
that can make use of multipass rendering
component defined by a MultipassTextureSource
to generate the source
data.
Note: This class does nothing in Aviatrix3D 1.0
The interface allows for multiple image sources to be updated, such as a cubic environment map. Each method allows the setting of the values for each image source separately. For some implementations of this class, not all values of the image index will be acceptable. In that case, any invalid index will throw an InvalidArgumentException. As OpenGL requires, it assumes that all sources within a given texture index will be the same.
Method Summary | |
---|---|
void |
getCopyOffset(int imgNum,
int level,
int[] offsets)
Deprecated. Get the current copy offset. |
void |
getMultipassSources(MultipassTextureSource[] sources,
int[] images)
Deprecated. Fetch all of the currently specified multipass texture sources in this instance of the class. |
int |
getReadBuffer(int imgNum)
Deprecated. Get the current read buffer that is being used. |
int |
numMultipassSources()
Deprecated. Check to see how many multipass texture sources are actually set for. |
void |
setCopyOffset(int imgNum,
int level,
int xoffset,
int yoffset)
Deprecated. Set the offsets in this texture to use for update the sub image update values. |
void |
setReadBuffer(int imgNum,
int buffer)
Deprecated. Set the buffer that this texture should read it's input from during the update callback. |
void |
updateMultipassSource(javax.media.opengl.GL gl,
int x,
int y,
int width,
int height,
int imgNum,
int level)
Deprecated. The multipass source has completed rendering and the implemented class should now copy the image data across now. |
Method Detail |
---|
int numMultipassSources()
void getMultipassSources(MultipassTextureSource[] sources, int[] images)
numMultipassSources()
.
sources
- An array to copy the current sources intoimages
- The indices of each of the source imagesvoid updateMultipassSource(javax.media.opengl.GL gl, int x, int y, int width, int height, int imgNum, int level)
gl
- The gl context to draw with
* @param x The x offset in pixels to start the copy fromy
- The y offset in pixels to start the copy fromwidth
- The width in pixels of the texture that was renderedheight
- The height in pixels of the texture that was renderedimgNum
- The index of the texture source to copy tolevel
- The mipmap level that this corresponds tovoid setReadBuffer(int imgNum, int buffer) throws InvalidWriteTimingException
imgNum
- The index of the image that this offset applies tobuffer
- The identifier of the buffer to read from
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback methodint getReadBuffer(int imgNum)
imgNum
- The index of the image that this offset applies to
void setCopyOffset(int imgNum, int level, int xoffset, int yoffset) throws InvalidWriteTimingException
imgNum
- The index of the image that this offset applies toxoffset
- The x offset in pixels to start the copy atyoffset
- The y offset in pixels to start the copy atlevel
- The mipmap level that this corresponds to
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback methodvoid getCopyOffset(int imgNum, int level, int[] offsets)
imgNum
- The index of the image that this offset applies tolevel
- The mipmap level that this corresponds tooffsets
- An array to copy the values into
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |