Package com.ngt.jopenmetaverse.shared.sim.TerrainCompressor

Examples of com.ngt.jopenmetaverse.shared.sim.TerrainCompressor.TerrainPatch


              count++;

              if (Client.settings.STORE_LAND_PATCHES)
              {
                  TerrainPatch patch = new TerrainPatch();
                  patch.Data = heightmap;
                  patch.X = x;
                  patch.Y = y;
                  simulator.Terrain[y * 16 + x] = patch;
              }
View Full Code Here


      int patchX = x / 16;
      int patchY = y / 16;
      x = x % 16;
      y = y % 16;

      TerrainPatch patch = Terrain[patchY * 16 + patchX];
      if (patch != null)
      {
        height[0] = patch.Data[y * 16 + x];
        return true;
      }
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.sim.TerrainCompressor.TerrainPatch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.