jjdh API

jjdh.opengl.exercises.sheet02
Class Task03VertexArray

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
                  extended by jjdh.opengl.exercises.sheet02.Task03VertexArray
All Implemented Interfaces:
EventListener, javax.media.opengl.GLEventListener, Initable, Reshapeable, OpenGLProgram, FullRenderer, GlassPaneRenderer, Renderer, ReshapeableRenderer

public class Task03VertexArray
extends Task03


Nested Class Summary
 
Nested classes/interfaces inherited from interface jjdh.opengl.program.OpenGLProgram
OpenGLProgram.State
 
Field Summary
protected  List<FloatBuffer> verticesList
           
 
Fields inherited from class jjdh.opengl.exercises.sheet02.Task03
attributes, 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
Task03VertexArray()
           
 
Method Summary
protected  FloatBuffer createFloatBuffer(int size)
           
protected  List<FloatBuffer> createPyramidVertices(javax.media.opengl.GL gl, GLAttributes attributes)
           
protected  FloatBuffer createSliceVertices(javax.media.opengl.GL gl, GLAttributes attributes, float xPos, float yPos, float zPos)
           
protected  void drawPyramid(javax.media.opengl.GL gl)
           
 void init(javax.media.opengl.GLAutoDrawable gld)
           
 
Methods inherited from class jjdh.opengl.exercises.sheet02.Task03
display, drawGround, drawScene, drawTexture
 
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

verticesList

protected List<FloatBuffer> verticesList
Constructor Detail

Task03VertexArray

public Task03VertexArray()
Method Detail

createFloatBuffer

protected FloatBuffer createFloatBuffer(int size)

createSliceVertices

protected FloatBuffer createSliceVertices(javax.media.opengl.GL gl,
                                          GLAttributes attributes,
                                          float xPos,
                                          float yPos,
                                          float zPos)

createPyramidVertices

protected List<FloatBuffer> createPyramidVertices(javax.media.opengl.GL gl,
                                                  GLAttributes attributes)

init

public void init(javax.media.opengl.GLAutoDrawable gld)
Specified by:
init in interface javax.media.opengl.GLEventListener
Overrides:
init in class Task03

drawPyramid

protected void drawPyramid(javax.media.opengl.GL gl)
Specified by:
drawPyramid in class Task03

jjdh API

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