|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.threed.jpct.LegacyRenderer
This renderer was the default renderer in older versions. It's still here to support legacy applications
that rely on it, but it's not advised to use it for new applications.
It behaves exactly the same as the software renderer of all
versions of jPCT prior to 0.83 will do.
This renderer will go away in the future...don't use it!
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. |
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 |
Method Detail |
public void init(int x, int y, int cbpp, int zbpp, int samples)
IRenderer
init
in interface IRenderer
x
- 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 IRenderer
listener
- IPaintListener the listener or null to remove itpublic void dispose()
IRenderer
dispose
in interface IRenderer
public void execute(int mode, java.lang.Object[] params)
IRenderer
execute
in interface IRenderer
mode
- the modeparams
- the parameters for this modepublic void drawStrip(VisList visList, int ind, int length, FrameBuffer buffer, World world)
IRenderer
drawStrip
in interface IRenderer
visList
- the VisibilityListind
- the index of the striplength
- the length of the stripbuffer
- the current FrameBufferworld
- the current instance of Worldpublic void drawVertexArray(VisList visList, int start, int end, FrameBuffer buffer, World world)
IRenderer
drawVertexArray
in interface IRenderer
visList
- the VisibilityListstart
- the index of the first polygonend
- the index of the last polygonbuffer
- the current FrameBufferworld
- the current instance of Worldpublic void drawPolygon(VisList visList, int ind, FrameBuffer buffer, World world)
IRenderer
drawPolygon
in interface IRenderer
visList
- the VisibilityListind
- the index of the polygonbuffer
- the current FrameBufferworld
- the current instance of Worldpublic void drawWireframe(VisList visList, int ind, int color, FrameBuffer buffer, World world)
IRenderer
drawWireframe
in interface IRenderer
visList
- the VisibilityListind
- the index of the polygoncolor
- the wireframe's colorbuffer
- the current FrameBufferpublic VideoMode[] getAvailableVideoModes()
IRenderer
getAvailableVideoModes
in interface IRenderer
FrameBuffer.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 |