jjdh API

jjdh.opengl.meshes.common
Class HeightMapMesh

java.lang.Object
  extended by jjdh.opengl.meshes.core.AbstractMesh
      extended by jjdh.opengl.meshes.core.VertexArrayMesh
          extended by jjdh.opengl.meshes.common.HeightMapMesh
All Implemented Interfaces:
Renderable, Mesh

public class HeightMapMesh
extends VertexArrayMesh


Nested Class Summary
static class HeightMapMesh.HeightMapConfiguration
           
 
Field Summary
private  TexGen texGen
           
private  com.sun.opengl.util.texture.Texture texture
           
 
Fields inherited from class jjdh.opengl.meshes.core.VertexArrayMesh
job
 
Fields inherited from class jjdh.opengl.meshes.core.AbstractMesh
material, position, rotation, scale
 
Constructor Summary
HeightMapMesh(BufferedImage heightMap, BufferedImage colorMap, HeightMapMesh.HeightMapConfiguration config)
           
HeightMapMesh(BufferedImage heightMap, com.sun.opengl.util.texture.Texture texture, HeightMapMesh.HeightMapConfiguration config, boolean useTexGen)
           
 
Method Summary
 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.VertexArrayMesh
bind
 
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

texture

private com.sun.opengl.util.texture.Texture texture

texGen

private TexGen texGen
Constructor Detail

HeightMapMesh

public HeightMapMesh(BufferedImage heightMap,
                     BufferedImage colorMap,
                     HeightMapMesh.HeightMapConfiguration config)

HeightMapMesh

public HeightMapMesh(BufferedImage heightMap,
                     com.sun.opengl.util.texture.Texture texture,
                     HeightMapMesh.HeightMapConfiguration config,
                     boolean useTexGen)
Method Detail

privateRender

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

Overrides:
privateRender in class VertexArrayMesh
Parameters:
gl - a OpenGL obejct

dispose

public void dispose(javax.media.opengl.GL gl)
Specified by:
dispose in interface Mesh
Overrides:
dispose in class VertexArrayMesh

jjdh API

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