jjdh.opengl.exercises.sheet02
Class Task03
java.lang.Object
jjdh.opengl.program.AbstractOpenGLProgram
jjdh.opengl.program.StandardOpenGLProgram
jjdh.opengl.program.StandardOpenGLProgramAdapter
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
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)
|
attributes
protected GLAttributes attributes
texture
protected com.sun.opengl.util.texture.Texture texture
Task03
public Task03()
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
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.