|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threed.jpct.SoftGLRenderer
| Field Summary |
| Fields inherited from interface com.threed.jpct.IRenderer |
MODE_LEGACY, MODE_OPENGL, RENDERER_OPENGL, RENDERER_SOFTWARE |
| Method Summary | |
void |
dispose()
Disposes the renderer and all its resources if it's not used any longer. |
void |
drawPolygon(VisList visList,
int ind,
FrameBuffer buffer,
World world)
Draws a polygon. |
void |
drawStrip(VisList visList,
int ind,
int length,
FrameBuffer buffer,
World world)
Draws a triangle strip. |
void |
drawVertexArray(VisList visList,
int start,
int end,
FrameBuffer buffer,
World world)
Draws a vertex array. |
void |
drawWireframe(VisList visList,
int ind,
int color,
FrameBuffer buffer,
World world)
Draws a polygon's wireframe. |
void |
execute(int mode,
java.lang.Object[] params)
Executes the renderer specific function. |
void |
finalize()
|
VideoMode[] |
getAvailableVideoModes()
Get all available video modes. |
void |
init(int x,
int y,
int cbpp,
int zbpp,
int samples)
Initialize the renderer. |
Worker |
initWorker()
|
boolean |
isInitialized()
Returns true, if the Renderer has been initialized and false otherwise. |
void |
setPaintListener(IPaintListener listener)
Sets a listener that will be called before the actual painting starts and after it has finished. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void init(int x,
int y,
int cbpp,
int zbpp,
int samples)
IRenderer
init in interface IRendererx - the width of the videomode/framebuffery - the height of the videomode/framebuffercbpp - the minimal colordepthzbpp - the minimal depthbuffer-depthsamples - the number of samples to take when using multi sampling AApublic void setPaintListener(IPaintListener listener)
IRenderer
setPaintListener in interface IRendererlistener - IPaintListener the listener or null to remove itpublic void dispose()
IRenderer
dispose in interface IRendererpublic void finalize()
public void execute(int mode,
java.lang.Object[] params)
IRenderer
execute in interface IRenderermode - the modeparams - the parameters for this mode
public void drawStrip(VisList visList,
int ind,
int length,
FrameBuffer buffer,
World world)
IRenderer
drawStrip in interface IRenderervisList - the VisibilityListind - the index of the striplength - the length of the stripbuffer - the current FrameBufferworld - the current instance of Worldpublic Worker initWorker()
public void drawVertexArray(VisList visList,
int start,
int end,
FrameBuffer buffer,
World world)
IRenderer
drawVertexArray in interface IRenderervisList - the VisibilityListstart - the index of the first polygonend - the index of the last polygonbuffer - the current FrameBufferworld - the current instance of World
public void drawPolygon(VisList visList,
int ind,
FrameBuffer buffer,
World world)
IRenderer
drawPolygon in interface IRenderervisList - the VisibilityListind - the index of the polygonbuffer - the current FrameBufferworld - the current instance of World
public void drawWireframe(VisList visList,
int ind,
int color,
FrameBuffer buffer,
World world)
IRenderer
drawWireframe in interface IRenderervisList - the VisibilityListind - the index of the polygoncolor - the wireframe's colorbuffer - the current FrameBufferpublic VideoMode[] getAvailableVideoModes()
IRenderer
getAvailableVideoModes in interface IRendererFrameBuffer.getVideoModes(int)public boolean isInitialized()
IRenderer
isInitialized in interface IRenderer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||