|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface representing the output of a render pipeline.
The output may be any of the traditional types: pBuffer, screen or memory or any non-traditional type like haptic devices, network streams etc.
Method Summary | |
void |
dispose()
Instruct this surface that you have finished with the resources needed and to dispose all rendering resources. |
void |
draw()
Instruct the surface to draw the collected set of nodes now. |
void |
getCenterEyeInSurface(javax.vecmath.Point3f position)
Get the Center Eye position in surface coordinates. |
void |
getPixelLocationInSurface(float x,
float y,
javax.vecmath.Point3f position)
Convert a pixel location to surface coordinates. |
java.lang.Object |
getSurfaceObject()
Get the underlying object that this surface is rendered to. |
void |
getSurfaceToVWorld(javax.vecmath.Matrix4f matrix)
Get the surface to VWorld transformation matrix. |
void |
setClearColor(float r,
float g,
float b,
float a)
Set the background colour that this surface should be cleared to before the drawing step. |
void |
setDrawableObjects(RenderInstructions[] commands,
int numValid)
Update the list of items to be rendered to the current list. |
void |
setRenderControlThread(java.lang.Thread th)
Tell the surface to use the given thread as the rendering control thread. |
void |
setTextureDeletionQueue(java.lang.ref.ReferenceQueue queue)
Set the queue that holds references to the textures that are possibly ready for deletion. |
void |
swap()
Swap the buffers now if the surface supports multiple buffer drawing. |
Method Detail |
public void setRenderControlThread(java.lang.Thread th)
th
- The render control thread instance to use or nullpublic void setClearColor(float r, float g, float b, float a)
r
- The red component of the background clear colourg
- The green component of the background clear colourb
- The blue component of the background clear coloura
- The alpha component of the background clear colourpublic void setTextureDeletionQueue(java.lang.ref.ReferenceQueue queue)
queue
- The instance of the queue to use or nullpublic void setDrawableObjects(RenderInstructions[] commands, int numValid)
commands
- The list of drawable surfaces to rendernumValid
- The number of valid items in the arraypublic void draw()
public void swap()
public java.lang.Object getSurfaceObject()
public void dispose()
public void getSurfaceToVWorld(javax.vecmath.Matrix4f matrix)
public void getPixelLocationInSurface(float x, float y, javax.vecmath.Point3f position)
x
- The X coordinatey
- The Y coordinateposition
- The converted position. It must be preallocated.public void getCenterEyeInSurface(javax.vecmath.Point3f position)
position
- The current eye position. It must be preallocated.
|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |