jme.locale.external
Class BruteForce

java.lang.Object
  extended byjme.locale.external.Terrain
      extended byjme.locale.external.BruteForce
All Implemented Interfaces:
Locale

public class BruteForce
extends Terrain

BruteForce renders height data with no optimizations. It provides the hightest detail possible at the cost of performance. Each vertex defined by the height data is rendered regardless of visiblity, distance, etc.

Version:
$Id: BruteForce.java,v 1.2 2003/09/03 16:20:51 mojomonkey Exp $
Author:
Mark Powell

Field Summary
 
Fields inherited from class jme.locale.external.Terrain
detailId, gl, heightData, isDetailed, isLit, isTextured, lightMap, repeatDetailMap, terrainSize, terrainTexture, useDistanceFog, useVolumeFog, xScale, zScale
 
Constructor Summary
BruteForce(AbstractHeightMap heightData)
          Constructor sets the heightdata and gets the GL reference.
 
Method Summary
 void render()
          render creates a triangle strip for each row of the height map.
 void update(float time)
          update does not do anything.
 
Methods inherited from class jme.locale.external.Terrain
setDetailTexture, setDistanceFog, setFogAttributes, setHeightData, setLightMap, setTexture, setTexture, setVolumetricFog, setVolumetricFogCoord, setVolumetricFogDepth, setXScale, setZScale, useDistanceFog, useVolumetricFog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BruteForce

public BruteForce(AbstractHeightMap heightData)
Constructor sets the heightdata and gets the GL reference. This creates a new BruteForce object.

Parameters:
heightData - the data that represents the terrain information.
Throws:
MonkeyRuntimeException - if heightData is null.
Method Detail

update

public void update(float time)
update does not do anything. It is here for compatibility sake.

Specified by:
update in interface Locale
Specified by:
update in class Terrain
See Also:
Locale.update(float)

render

public void render()
render creates a triangle strip for each row of the height map. These strips are then rendered, with the appropriate texture and shadowing.

Specified by:
render in interface Locale
Specified by:
render in class Terrain
See Also:
Locale.render()