jjdh API

jjdh.opengl.exercises.sheet02
Class Task03

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.sheet02.Task03
All Implemented Interfaces:
EventListener, javax.media.opengl.GLEventListener, Initable, Reshapeable, OpenGLProgram, FullRenderer, GlassPaneRenderer, Renderer, ReshapeableRenderer
Direct Known Subclasses:
Task03Direct, Task03DisplayList, Task03VertexArray

public abstract class Task03
extends StandardOpenGLProgramAdapter

Author:
Jonas Jacobi, Dennis Heidsiek

Nested Class Summary
 
Nested classes/interfaces inherited from interface jjdh.opengl.program.OpenGLProgram
OpenGLProgram.State
 
Field Summary
protected  GLAttributes attributes
           
protected  com.sun.opengl.util.texture.Texture texture
           
 
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
Task03()
           
 
Method Summary
 void display(javax.media.opengl.GLAutoDrawable glad)
           
protected  void drawGround(javax.media.opengl.GL gl)
           
protected abstract  void drawPyramid(javax.media.opengl.GL gl)
           
protected  void drawScene(javax.media.opengl.GL gl, float x, float y, float z)
           
protected  void drawTexture(javax.media.opengl.GL gl)
          Draws our first texture
 void init(javax.media.opengl.GLAutoDrawable glad)
           
 
Methods inherited from class jjdh.opengl.program.StandardOpenGLProgramAdapter
displayChanged, reshape, 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
 

Field Detail

attributes

protected GLAttributes attributes

texture

protected com.sun.opengl.util.texture.Texture texture
Constructor Detail

Task03

public Task03()
Method Detail

drawGround

protected void drawGround(javax.media.opengl.GL gl)

drawPyramid

protected abstract void drawPyramid(javax.media.opengl.GL gl)

drawTexture

protected void drawTexture(javax.media.opengl.GL gl)
Draws our first texture


drawScene

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

init

public void init(javax.media.opengl.GLAutoDrawable glad)
Specified by:
init in interface javax.media.opengl.GLEventListener
Overrides:
init 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.