jjdh API

jjdh.opengl.exercises.sheet01
Class Task01

java.lang.Object
  extended by jjdh.opengl.program.AbstractOpenGLProgram
      extended by jjdh.opengl.program.StandardOpenGLProgram
          extended by jjdh.opengl.program.StandardOpenGLProgramAdapter
              extended by jjdh.opengl.exercises.sheet01.Task01
All Implemented Interfaces:
EventListener, javax.media.opengl.GLEventListener, Initable, Reshapeable, OpenGLProgram, FullRenderer, GlassPaneRenderer, Renderer, ReshapeableRenderer

public class Task01
extends StandardOpenGLProgramAdapter

Author:
Jonas Jacobi, Dennis Heidsiek

Nested Class Summary
 
Nested classes/interfaces inherited from interface jjdh.opengl.program.OpenGLProgram
OpenGLProgram.State
 
Field Summary
 
Fields inherited from class jjdh.opengl.program.StandardOpenGLProgram
gl, glu, glut, inputListener, lightMap
 
Fields inherited from class jjdh.opengl.program.AbstractOpenGLProgram
camera, context, glScheduler, model, mouseRobot, name, state
 
Constructor Summary
Task01()
           
 
Method Summary
 void display(javax.media.opengl.GLAutoDrawable glad)
           
protected  void drawBox(javax.media.opengl.GL gl, float width, float depth, float height, float x, float y, float z)
           
protected  void drawChurch(javax.media.opengl.GL gl, float x, float y, float z)
           
protected  void drawRoof(javax.media.opengl.GL gl, float width, float depth, float height, float x, float y, float z)
           
 void reshape(javax.media.opengl.GLAutoDrawable glad, int x, int y, int width, int height)
           
 
Methods inherited from class jjdh.opengl.program.StandardOpenGLProgramAdapter
displayChanged, init, setContext
 
Methods inherited from class jjdh.opengl.program.StandardOpenGLProgram
display, displayGlassPane, drawCounter, init, reshape, sleep, sleep
 
Methods inherited from class jjdh.opengl.program.AbstractOpenGLProgram
getCamera, getContext, getMouseRobot, getName, getState, setCamera, setMouseRobot, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Task01

public Task01()
Method Detail

drawRoof

protected void drawRoof(javax.media.opengl.GL gl,
                        float width,
                        float depth,
                        float height,
                        float x,
                        float y,
                        float z)

drawBox

protected void drawBox(javax.media.opengl.GL gl,
                       float width,
                       float depth,
                       float height,
                       float x,
                       float y,
                       float z)

drawChurch

protected void drawChurch(javax.media.opengl.GL gl,
                          float x,
                          float y,
                          float z)

reshape

public void reshape(javax.media.opengl.GLAutoDrawable glad,
                    int x,
                    int y,
                    int width,
                    int height)
Specified by:
reshape in interface javax.media.opengl.GLEventListener
Overrides:
reshape in class StandardOpenGLProgramAdapter

display

public void display(javax.media.opengl.GLAutoDrawable glad)
Specified by:
display in interface javax.media.opengl.GLEventListener
Overrides:
display in class StandardOpenGLProgramAdapter

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.