|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.tudelft.goal.ut2004.visualizer.timeline.map.MapRenderer
public class MapRenderer
Renderer of map. Because of uncomplete server implementation I have no way of knowing state of the server, so I hope this will work. I *assume* that server is up and running and I can get worldmap from it.
Field Summary | |
---|---|
int |
GRID_SCALE
|
double |
NAVPOINT_RADIUS
|
Constructor Summary | |
---|---|
MapRenderer(cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap map,
int glName)
GameBots provides us with flags about pathways between navpoints. |
Method Summary | |
---|---|
int |
createMapBackground(javax.media.opengl.GL gla)
Create a diplay list for map background image, i.e. |
void |
destroy()
Clean up the component (listeners, contexts ect.) |
List<BlendTriangle> |
getBlendedTris()
Because blending phase of rendering can be done only after all opaque objects has been drawn and because polys has to be back-to-front ordered every renderer will return list of its blended triangles so final renderer can sort all blended triangles from all blended renderers and do it correctly. |
cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap |
getObject()
Return object this renderer draws. |
void |
preferenceChange(PreferenceChangeEvent evt)
|
void |
prepare(javax.media.opengl.GL gl)
Precreate display lists for map, because map can be quite large and it would be troublesome to do it every rendering. |
void |
render(javax.media.opengl.GL gla)
Display stuff you want to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int GRID_SCALE
public final double NAVPOINT_RADIUS
Constructor Detail |
---|
public MapRenderer(cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap map, int glName)
Method Detail |
---|
public cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap getObject()
ISubGLRenderer
getObject
in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap>
public void prepare(javax.media.opengl.GL gl)
prepare
in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap>
gl
- public int createMapBackground(javax.media.opengl.GL gla)
gl
-
public void render(javax.media.opengl.GL gla)
ISubGLRenderer
GLRendererCollection
render
in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap>
public void preferenceChange(PreferenceChangeEvent evt)
preferenceChange
in interface PreferenceChangeListener
public List<BlendTriangle> getBlendedTris()
ISubGLRenderer
getBlendedTris
in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap>
public void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |