nl.tudelft.goal.ut2004.visualizer.timeline.map
Interface ISubGLRenderer<T>

Package class diagram package ISubGLRenderer
Type Parameters:
T - Class of object this renderer draws.
All Known Implementing Classes:
CollectionRenderer, FlagRenderer, MapRenderer, PlayerRenderer, WaypointRenderer

public interface ISubGLRenderer<T>

This is a subrenderer, it's job is to render some stuff. Basically I had few GLEventListeners and there were troubles with using them directly (order of rendering), so I have now only these subrenderes that are part of CollectionRenderer.

Author:
Honza

Method Summary
 void destroy()
          Call renderer to clean up any resources it used.
 int getGLName()
           
 T getObject()
          Return object this renderer draws.
 void prepare(javax.media.opengl.GL gl)
          Here should be done preparation for rendering (e.g.
 void render(javax.media.opengl.GL gl)
          Display stuff you want to.
 

Method Detail

prepare

void prepare(javax.media.opengl.GL gl)
Here should be done preparation for rendering (e.g. generation of display lists from massive data)

Parameters:
gl -

render

void render(javax.media.opengl.GL gl)
Display stuff you want to. Assume that settings have already been set in CollectionRenderer

Parameters:
gl -

getObject

T getObject()
Return object this renderer draws. Because objects we want to draw can change rapidly, we have to remove and add subrenderers based on passed objects (renderer R draws object A, now we don't want to draw A anymore, we have to go through subrenderers to find which ones draws it).

Returns:
Object this renderer draws.

getGLName

int getGLName()

destroy

void destroy()
Call renderer to clean up any resources it used.



Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.