|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threed.jpct.GLBase
com.threed.jpct.GLRenderer
This is the renderer to support hardware acceleration via OpenGL using the LWJGL.
The OpenGL renderer uses some internal caches for caching VRAM- and
texture-data to speed up some methods of the FrameBuffer-class a little bit
and to reduce garbage collection time. These caches can be disabled by
setting Config.glUseCaches to false, but it's not advised to do this.
All available parameters in the Config-class for configuring this renderer
are marked with the prefix "gl".
| 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)
Draws a polygon's wireframe. |
void |
execute(int mode,
java.lang.Object[] params)
Executes the renderer specific function. |
VideoMode[] |
getAvailableVideoModes()
Get all available video modes. |
void |
init(int x,
int y,
int cbpp,
int zbpp,
int samples)
Initialize the renderer. |
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 |
| Methods inherited from interface com.threed.jpct.IRenderer |
getAvailableVideoModes, isInitialized, setPaintListener |
| 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 dispose()
IRenderer
dispose in interface IRenderer
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 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 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 drawWireframe(VisList visList,
int ind,
int color,
FrameBuffer buffer)
IRenderer
drawWireframe in interface IRenderervisList - the VisibilityListind - the index of the polygoncolor - the wireframe's colorbuffer - the current FrameBufferpublic final void setPaintListener(IPaintListener listener)
public final boolean isInitialized()
public VideoMode[] getAvailableVideoModes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||