|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.globalse.arena.frag.visual.GLWorldPainter
Makes now all the drawing of OpenGL objects. This class communicates with the GL4Java Framewwork. It could be changed in the future with an eventListener instad using the specialisiation of the framework.
Constructor Summary | |
GLWorldPainter(int w,
int h,
java.lang.String glClass,
java.lang.String gluClass)
Creates a new GLWorldpainterObject |
Method Summary | |
void |
animationCalc()
is a method for animation of specific GL-objects |
void |
display()
draws all the opengl objects |
void |
drawAllObjects()
takes the object list from the drawManager and draws it on its GL context |
void |
drawSpecificObject(java.lang.String obj,
float x,
float y,
float z)
draws a specific object. |
void |
init()
Initalisation of the GL context and other setup things for OpenGL |
float |
MyRand()
returns a random number |
void |
preInit()
you can make some preSetup for OpenGL |
void |
ReInit()
isn't used here. |
void |
reshape(int width,
int height)
makes an art of readraw |
void |
setDrawManager(DrawManager drawManager)
The DrawManager has to be handed to the WorldPainter, in order for the WorldPainter to work. |
void |
setObjectManager(ObjectManager objMan)
sets the objectmanager |
Constructor Detail |
public GLWorldPainter(int w, int h, java.lang.String glClass, java.lang.String gluClass)
w
- int with of the painting areah
- int high of the painting areaglClass
- isn't in use for nowgluClass
- isn't in use for nowMethod Detail |
public void preInit()
public void setDrawManager(DrawManager drawManager)
drawManager
- The drawManager which is responsible for the GLWorldpainterpublic void init()
public void reshape(int width, int height)
width
- width of the redraw areaheight
- height of the redraw areapublic void display()
public void animationCalc()
public void ReInit()
public float MyRand()
public void drawSpecificObject(java.lang.String obj, float x, float y, float z)
obj
- String object name which is drawnx
- int x position where the object on the screen is drawn.y
- int y position where the object on the screen is drawn.z
- int z position where the object on the screen is drawn.public void drawAllObjects()
public void setObjectManager(ObjectManager objMan)
objMan
- an objectmanager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |