|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrender.Renderer
render.jogl.JoglRenderer
JOGL version of the software renderer, instead of drawing triangles into the buffer, we just push triangles into the graphics card.
| Field Summary | |
int |
DEBUG
|
static int |
DEBUG_NEW_LIGHTS
|
static int |
DEBUG_PICKING
|
static int |
DEBUG_TEXTURE
|
static int |
DEBUG_VERBOSE
|
net.java.games.jogl.GLDrawable |
drawable
|
net.java.games.jogl.GL |
gl
|
net.java.games.jogl.GLU |
glu
|
net.java.games.jogl.util.GLUT |
glut
|
static boolean |
printError
|
| Fields inherited from class render.Renderer |
bufferg, isAnaglyph, isHeadsUp, lod, manualCameraControl, seeMesh, showMesh, tableMode, updateTransparency |
| Constructor Summary | |
JoglRenderer()
|
|
| Method Summary | |
void |
addLight(double x,
double y,
double z,
double lR,
double lG,
double lB)
Add a light source where x,y,z are light source direction; r,g,b are light source color. |
Geometry |
getGeometry(int x,
int y)
Overloads the Renderer method to get a geometry, in our case this has to be called in the display thread, but our event handler system takes care of that. |
net.java.games.jogl.GL |
getGL()
|
net.java.games.jogl.GLU |
getGLU()
|
net.java.games.jogl.util.GLUT |
getGLUT()
|
boolean |
getPoint(int x,
int y,
double[] xyz)
get the coordinates of a point in world coordinates and put them into xyz if we did not hit anything, returns false this method also has to be called during the display thread. |
int[] |
init(int w,
int h)
Initializes the renderer. |
void |
render()
Render the entire world for this frame. |
void |
setBgColor(double r,
double g,
double b)
Set the background fill color. |
void |
setGLAmbient(float r,
float g,
float b)
|
| Methods inherited from class render.Renderer |
colorLight, getBgColor, getCamera, getCameraAim, getCameraPos, getCameraUp, getClippingPlaneEpsilon, getCx, getCy, getFL, getFOV, getGeometryBuffer, getH, getLod, getNumberOfLights, getOutline, getPoint, getPoint, getW, getWorld, headsUp, isDragging, isFixedLightPositions, lookAt, outline, placeLight, projectPoint, refresh, renderVertex, renderVertex, rotateView, setBgColor, setCamera, setCamera, setCameraAim, setCameraPos, setCameraUp, setClippingPlaneEpsilon, setCx, setCy, setDragging, setFixedLightPositions, setFL, setFOV, setGeometryBuffer, setH, setLod, setW, xf |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean printError
public static final int DEBUG_NEW_LIGHTS
public static final int DEBUG_PICKING
public static final int DEBUG_TEXTURE
public static final int DEBUG_VERBOSE
public int DEBUG
public net.java.games.jogl.GL gl
public net.java.games.jogl.GLU glu
public net.java.games.jogl.util.GLUT glut
public net.java.games.jogl.GLDrawable drawable
| Constructor Detail |
public JoglRenderer()
| Method Detail |
public net.java.games.jogl.GL getGL()
public net.java.games.jogl.GLU getGLU()
public net.java.games.jogl.util.GLUT getGLUT()
public void setGLAmbient(float r,
float g,
float b)
public int[] init(int w,
int h)
Renderer
init in class Rendererw - framebuffer widthh - framebuffer height.
public void addLight(double x,
double y,
double z,
double lR,
double lG,
double lB)
Renderer
addLight in class Renderer
public void setBgColor(double r,
double g,
double b)
Renderer
setBgColor in class Rendererpublic void render()
Renderer
render in class Renderer
public Geometry getGeometry(int x,
int y)
getGeometry in class Rendererx - x coordinate in the imagey - y coordinate in the image
public boolean getPoint(int x,
int y,
double[] xyz)
getPoint in class Renderer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||