jjdh API

jjdh.opengl.meshes.core
Class VertexArrayMesh

java.lang.Object
  extended by jjdh.opengl.meshes.core.AbstractMesh
      extended by jjdh.opengl.meshes.core.VertexArrayMesh
All Implemented Interfaces:
Renderable, Mesh
Direct Known Subclasses:
AbstractBox, AbstractTexturedBox, DividedBox, Flag, HeightMapMesh, MD2Mesh, Sphere, TrianglePillar

public abstract class VertexArrayMesh
extends AbstractMesh

This is a mesh with a internal rendering process resting upon a highly efficient VertexArrayJob.


Field Summary
protected  VertexArrayJob job
           
 
Fields inherited from class jjdh.opengl.meshes.core.AbstractMesh
material, position, rotation, scale
 
Constructor Summary
VertexArrayMesh()
           
 
Method Summary
 void bind(javax.media.opengl.GL gl, boolean bind)
           
 void dispose(javax.media.opengl.GL gl)
           
protected  void privateRender(javax.media.opengl.GL gl)
          This method has to be overwritten by subcasses.
 
Methods inherited from class jjdh.opengl.meshes.core.AbstractMesh
applyMaterial, applyPosition, applyRotation, applyScaling, getMaterial, getPosition, move, render, rotate, setMaterial, setPosition, setRotation, setScale, toString, unApplyMaterial
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

job

protected VertexArrayJob job
Constructor Detail

VertexArrayMesh

public VertexArrayMesh()
Method Detail

bind

public void bind(javax.media.opengl.GL gl,
                 boolean bind)

privateRender

protected void privateRender(javax.media.opengl.GL gl)
Description copied from class: AbstractMesh
This method has to be overwritten by subcasses.

Specified by:
privateRender in class AbstractMesh
Parameters:
gl - a OpenGL obejct

dispose

public void dispose(javax.media.opengl.GL gl)

jjdh API

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