From e3574d2fe70aba0fd6b53ffc07d600a2a3107d3e Mon Sep 17 00:00:00 2001 From: "bre..ns" Date: Mon, 4 Jul 2011 23:55:45 +0000 Subject: [PATCH] part 2, renaming git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7820 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/terrain/{GeoMapNew.java => GeoMap.java} | 12 ++++++------ .../com/jme3/terrain/geomipmap/LODGeomap.java | 5 ++--- 2 files changed, 8 insertions(+), 9 deletions(-) rename engine/src/terrain/com/jme3/terrain/{GeoMapNew.java => GeoMap.java} (97%) diff --git a/engine/src/terrain/com/jme3/terrain/GeoMapNew.java b/engine/src/terrain/com/jme3/terrain/GeoMap.java similarity index 97% rename from engine/src/terrain/com/jme3/terrain/GeoMapNew.java rename to engine/src/terrain/com/jme3/terrain/GeoMap.java index de14f9dae..223cb139b 100644 --- a/engine/src/terrain/com/jme3/terrain/GeoMapNew.java +++ b/engine/src/terrain/com/jme3/terrain/GeoMap.java @@ -51,15 +51,15 @@ import java.nio.IntBuffer; /** * 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; @@ -67,7 +67,7 @@ public class GeoMapNew implements Savable { 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); } @@ -186,7 +186,7 @@ public class GeoMapNew implements Savable { /** * 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++){ @@ -210,7 +210,7 @@ public class GeoMapNew implements Savable { nndata.flip(); } - return new BufferGeomap(nhdata,nndata,w,h,maxval); + return new GeoMap(nhdata,nndata,w,h,maxval); } /** diff --git a/engine/src/terrain/com/jme3/terrain/geomipmap/LODGeomap.java b/engine/src/terrain/com/jme3/terrain/geomipmap/LODGeomap.java index 5054fc91f..80d52b3aa 100644 --- a/engine/src/terrain/com/jme3/terrain/geomipmap/LODGeomap.java +++ b/engine/src/terrain/com/jme3/terrain/geomipmap/LODGeomap.java @@ -31,7 +31,7 @@ */ package com.jme3.terrain.geomipmap; -import com.jme3.terrain.GeoMapNew; +import com.jme3.terrain.GeoMap; import com.jme3.export.JmeExporter; import com.jme3.export.JmeImporter; import com.jme3.math.FastMath; @@ -46,7 +46,6 @@ import com.jme3.math.Vector3f; import com.jme3.scene.Mesh; import com.jme3.scene.Mesh.Mode; import com.jme3.scene.VertexBuffer.Type; -import com.jme3.terrain.BufferGeomap; import com.jme3.util.BufferUtils; import java.io.IOException; @@ -63,7 +62,7 @@ import java.io.IOException; * * @author Brent Owens */ -public class LODGeomap extends GeoMapNew { +public class LODGeomap extends GeoMap { public LODGeomap() { }