public class MapRenderer extends Object implements ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap>, PreferenceChangeListener
| Modifier and Type | Field and Description |
|---|---|
int |
GRID_SCALE |
double |
NAVPOINT_RADIUS |
| Constructor and Description |
|---|
MapRenderer(cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap map,
int glName)
GameBots provides us with flags about pathways between navpoints.
|
| Modifier and Type | Method and Description |
|---|---|
int |
createMapBackground(javax.media.opengl.GL gl)
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 gl)
Display stuff you want to.
|
public final int GRID_SCALE
public final double NAVPOINT_RADIUS
public MapRenderer(cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap map,
int glName)
public cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap getObject()
ISubGLRenderergetObject 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 gl)
gl - public void render(javax.media.opengl.GL gl)
ISubGLRendererGLRendererCollectionrender in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap>public void preferenceChange(PreferenceChangeEvent evt)
preferenceChange in interface PreferenceChangeListenerpublic List<BlendTriangle> getBlendedTris()
ISubGLRenderergetBlendedTris in interface ISubGLRenderer<cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap>public void destroy()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.