/**
* Constructs heightfields to be used in Terrain.
*/
-public class GeoMapNew implements Savable {
+public class GeoMap implements Savable {
protected FloatBuffer hdata;
protected ByteBuffer ndata;
protected int width, height, maxval;
- public GeoMapNew() {}
+ public GeoMap() {}
- public GeoMapNew(FloatBuffer heightData, ByteBuffer normalData, int width, int height, int maxval){
+ public GeoMap(FloatBuffer heightData, ByteBuffer normalData, int width, int height, int maxval){
this.hdata = heightData;
this.ndata = normalData;
this.width = width;
this.maxval = maxval;
}
- public GeoMapNew(int width, int height, int maxval) {
+ public GeoMap(int width, int height, int maxval) {
this(ByteBuffer.allocateDirect(width*height*4).asFloatBuffer(),null,width,height,maxval);
}
/**
* Copies a section of this geomap as a new geomap
*/
- public Geomap copySubGeomap(int x, int y, int w, int h){
+ public GeoMap copySubGeomap(int x, int y, int w, int h){
FloatBuffer nhdata = ByteBuffer.allocateDirect(w*h*4).asFloatBuffer();
hdata.position(y*width+x);
for (int cy = 0; cy < height; cy++){
nndata.flip();
}
- return new BufferGeomap(nhdata,nndata,w,h,maxval);
+ return new GeoMap(nhdata,nndata,w,h,maxval);
}
/**
*/\r
package com.jme3.terrain.geomipmap;\r
\r
-import com.jme3.terrain.GeoMapNew;\r
+import com.jme3.terrain.GeoMap;\r
import com.jme3.export.JmeExporter;\r
import com.jme3.export.JmeImporter;\r
import com.jme3.math.FastMath;\r
import com.jme3.scene.Mesh;\r
import com.jme3.scene.Mesh.Mode;\r
import com.jme3.scene.VertexBuffer.Type;\r
-import com.jme3.terrain.BufferGeomap;\r
import com.jme3.util.BufferUtils;\r
import java.io.IOException;\r
\r
*\r
* @author Brent Owens\r
*/\r
-public class LODGeomap extends GeoMapNew {\r
+public class LODGeomap extends GeoMap {\r
\r
public LODGeomap() {\r
}\r