com.croftsoft.core.media.jogl.camera
Interface JoglCamera

All Known Subinterfaces:
JoglCameraMut
All Known Implementing Classes:
JoglCameraImp

public interface JoglCamera

Jogl camera viewpoint rotation and translation. Example code:

 gl.glMatrixMode ( GL.GL_MODELVIEW );
 
 gl.glLoadIdentity ( );
 
 final AxisAngle  axisAngle = joglCamera.getAxisAngle ( );

 gl.glRotated (
   -axisAngle.getDegrees ( ),
   axisAngle.getX ( ),
   axisAngle.getY ( ),
   axisAngle.getZ ( ) );
 
 gl.glTranslated (
   -joglCamera.getX ( ),
   -joglCamera.getY ( ),
   -joglCamera.getZ ( ) );
 

Since:
2008-05-09
Version:
$Id: JoglCamera.java,v 1.3 2008/05/16 19:50:00 croft Exp $
Author:
David Wallace Croft

Nested Class Summary
static class JoglCamera.Axis
           
static class JoglCamera.Rotation
           
static class JoglCamera.Translation
           
 
Method Summary
 AxisAngle getAxisAngle()
           
 double getX()
           
 double getY()
           
 double getZ()
           
 

Method Detail

getAxisAngle

AxisAngle getAxisAngle()

getX

double getX()

getY

double getY()

getZ

double getZ()

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)