nl.tudelft.goal.ut2004.visualizer.timeline.map
Class GLTools

Package class diagram package GLTools
java.lang.Object
  extended by nl.tudelft.goal.ut2004.visualizer.timeline.map.GLTools

public class GLTools
extends Object

Author:
Honza

Constructor Summary
GLTools()
           
 
Method Summary
static cz.cuni.amis.pogamut.base3d.worldview.object.Location getScreenCoordinates(javax.media.opengl.GL gla, javax.media.opengl.glu.GLU glu, cz.cuni.amis.pogamut.base3d.worldview.object.Location worldPosition)
           
static Rectangle getViewport(javax.media.opengl.GL gl)
           
static cz.cuni.amis.pogamut.base3d.worldview.object.Location getWorldCoordinates(javax.media.opengl.GL gla, javax.media.opengl.glu.GLU glu, cz.cuni.amis.pogamut.base3d.worldview.object.Location screen)
           
static void popMatrixMode(javax.media.opengl.GL gla)
           
static void pushMatrixMode(javax.media.opengl.GL gla)
           
static void renderWindow(javax.media.opengl.GL gla, int x, int y, int width, int height)
          Render window for text to be drawn into it.
static void setOrthoViewport(javax.media.opengl.GL gla)
          Set mode according to viewport.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLTools

public GLTools()
Method Detail

getWorldCoordinates

public static cz.cuni.amis.pogamut.base3d.worldview.object.Location getWorldCoordinates(javax.media.opengl.GL gla,
                                                                                        javax.media.opengl.glu.GLU glu,
                                                                                        cz.cuni.amis.pogamut.base3d.worldview.object.Location screen)

getScreenCoordinates

public static cz.cuni.amis.pogamut.base3d.worldview.object.Location getScreenCoordinates(javax.media.opengl.GL gla,
                                                                                         javax.media.opengl.glu.GLU glu,
                                                                                         cz.cuni.amis.pogamut.base3d.worldview.object.Location worldPosition)

renderWindow

public static void renderWindow(javax.media.opengl.GL gla,
                                int x,
                                int y,
                                int width,
                                int height)
Render window for text to be drawn into it.

Parameters:
x -
y -
width -
height -

setOrthoViewport

public static void setOrthoViewport(javax.media.opengl.GL gla)
Set mode according to viewport. 0,0 is at left top


getViewport

public static Rectangle getViewport(javax.media.opengl.GL gl)

pushMatrixMode

public static void pushMatrixMode(javax.media.opengl.GL gla)

popMatrixMode

public static void popMatrixMode(javax.media.opengl.GL gla)


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