espresso3d.engine.renderer
Class E3DGeometryRenderer

java.lang.Object
  extended byespresso3d.engine.renderer.E3DGeometryRenderer

public class E3DGeometryRenderer
extends java.lang.Object

Author:
espresso3d This performs the raw, lowlevel geometry rendering. Usually only called by the engine itself.

Constructor Summary
E3DGeometryRenderer()
           
 
Method Summary
static void initBlendedNonTexturedGeometryRenderer()
          Sets OGL environment up to render blended, non textured geometry.
static void initBlendedTexturedGeometryRenderer()
          Sets OGL environment up to render blended, textured geometry.
static void initLineRenderer()
          Sets OGL environment up to render lines Disables textures, and vertex arrays
static void initPointRenderer()
          Sets the OGL environment up to render points Disables textures, and vertex arrays
static void initSolidNonTexturedGeometryRenderer()
          Sets OGL environment up to render solid, non-textured geometry.
static void initSolidTexturedGeometryRenderer()
          Sets OGL environment up to render solid, textured geometry.
static void renderItem(E3DRenderable renderableItem)
           
static void renderLine(E3DLine line, E3DVector3F atPosition)
           
static void renderLineList(java.util.ArrayList lineList, E3DVector3F atPosition)
           
static void renderPoint(E3DPoint point, E3DVector3F atPosition)
          Sets up the OGL environment to render geometry with transparent portions in the texture.
static void renderPointList(java.util.ArrayList pointList, E3DVector3F atPosition)
           
static void renderQuad(E3DEngine engine, E3DQuad quad, E3DVector3F atPosition, int renderMode)
           
static void renderQuadList(E3DEngine engine, java.util.ArrayList quadList, E3DVector3F atPosition, int renderMode)
           
static void renderTriangle(E3DEngine engine, E3DTriangle triangle, E3DVector3F atPosition, int renderMode)
           
static void renderTriangleList(E3DEngine engine, java.util.ArrayList triangleList, E3DVector3F atPosition, int renderMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

E3DGeometryRenderer

public E3DGeometryRenderer()
Method Detail

renderItem

public static void renderItem(E3DRenderable renderableItem)

initPointRenderer

public static void initPointRenderer()
Sets the OGL environment up to render points Disables textures, and vertex arrays


initLineRenderer

public static void initLineRenderer()
Sets OGL environment up to render lines Disables textures, and vertex arrays


initSolidTexturedGeometryRenderer

public static void initSolidTexturedGeometryRenderer()
Sets OGL environment up to render solid, textured geometry. No alpha blending occurs. Texture mapping, depth testing (GL_LEQUAL), and vertex arrays are enabled


initSolidNonTexturedGeometryRenderer

public static void initSolidNonTexturedGeometryRenderer()
Sets OGL environment up to render solid, non-textured geometry. No alpha blending occurs. Depth testing (GL_LEQUAL), and vertex arrays are enabled Texture mapping is disabled


initBlendedTexturedGeometryRenderer

public static void initBlendedTexturedGeometryRenderer()
Sets OGL environment up to render blended, textured geometry. Texture mapping, depth test, and vertex arrays are enabled. GL_SRC_ALPHA, GL_ONE is used for the blend function Depth mask is disabled


initBlendedNonTexturedGeometryRenderer

public static void initBlendedNonTexturedGeometryRenderer()
Sets OGL environment up to render blended, non textured geometry. Depth test, and vertex arrays are enabled. GL_SRC_ALPHA, GL_ONE is used for the blend function Depth mask is disabled, Texture mapping is disabled


renderPoint

public static void renderPoint(E3DPoint point,
                               E3DVector3F atPosition)
Sets up the OGL environment to render geometry with transparent portions in the texture.


renderPointList

public static void renderPointList(java.util.ArrayList pointList,
                                   E3DVector3F atPosition)

renderLine

public static void renderLine(E3DLine line,
                              E3DVector3F atPosition)

renderLineList

public static void renderLineList(java.util.ArrayList lineList,
                                  E3DVector3F atPosition)

renderTriangle

public static void renderTriangle(E3DEngine engine,
                                  E3DTriangle triangle,
                                  E3DVector3F atPosition,
                                  int renderMode)

renderTriangleList

public static void renderTriangleList(E3DEngine engine,
                                      java.util.ArrayList triangleList,
                                      E3DVector3F atPosition,
                                      int renderMode)

renderQuad

public static void renderQuad(E3DEngine engine,
                              E3DQuad quad,
                              E3DVector3F atPosition,
                              int renderMode)

renderQuadList

public static void renderQuadList(E3DEngine engine,
                                  java.util.ArrayList quadList,
                                  E3DVector3F atPosition,
                                  int renderMode)