es.ucm.look.ar.ar3D
Class Renderer3D

java.lang.Object
  extended by es.ucm.look.ar.ar3D.Renderer3D

public class Renderer3D
extends java.lang.Object

Renderer3D is the general renderer for the GLSurfaceView


Constructor Summary
Renderer3D()
          Constructs a render with opaque background
Renderer3D(boolean transparent, float maxDist)
          Constructs a Renderer
 
Method Summary
 int getFPS()
          Returns the fps
 void onDrawFrame(GL10 gl)
           
 void onSurfaceChanged(GL10 gl, int width, int height)
          If the surface changes, reset the view
 void onSurfaceCreated(GL10 gl, EGLConfig config)
           
 void setCamera(Camera3D camera)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Renderer3D

public Renderer3D()
Constructs a render with opaque background


Renderer3D

public Renderer3D(boolean transparent,
                  float maxDist)
Constructs a Renderer

Parameters:
transparent - if the background must be transparent
maxDist - max distance to be shown
Method Detail

getFPS

public int getFPS()
Returns the fps

Returns:
the fps

onDrawFrame

public void onDrawFrame(GL10 gl)

onSurfaceChanged

public void onSurfaceChanged(GL10 gl,
                             int width,
                             int height)
If the surface changes, reset the view


onSurfaceCreated

public void onSurfaceCreated(GL10 gl,
                             EGLConfig config)

setCamera

public void setCamera(Camera3D camera)