Package com.ngt.jopenmetaverse.shared.protocol

Examples of com.ngt.jopenmetaverse.shared.protocol.LayerDataPacket$LayerIDBlock


              BuildQuantizeTable16();
          }

          public static LayerDataPacket CreateLayerDataPacket(TerrainPatch[] patches, TerrainPatch.LayerType type)
          {
              LayerDataPacket layer = new LayerDataPacket();
              layer.LayerID.Type = (byte)type.getIndex();

              TerrainPatch.GroupHeader header = new TerrainPatch.GroupHeader();
              header.Stride = STRIDE;
              header.PatchSize = 16;
View Full Code Here


          /// for this simulator. For example if 1 and 17 are specified, patches
          /// x=1,y=0 and x=1,y=1 are sent</param>
          /// <returns></returns>
          public static LayerDataPacket CreateLandPacket(float[] heightmap, int[] patches)
          {
              LayerDataPacket layer = new LayerDataPacket();
              layer.LayerID.Type = (byte)TerrainPatch.LayerType.Land.getIndex();

              TerrainPatch.GroupHeader header = new TerrainPatch.GroupHeader();
              header.Stride = STRIDE;
              header.PatchSize = 16;
View Full Code Here

              return layer;
          }

          public static LayerDataPacket CreateLandPacket(float[] patchData, int x, int y)
          {
              LayerDataPacket layer = new LayerDataPacket();
              layer.LayerID.Type = (byte)TerrainPatch.LayerType.Land.getIndex();

              TerrainPatch.GroupHeader header = new TerrainPatch.GroupHeader();
              header.Stride = STRIDE;
              header.PatchSize = 16;
View Full Code Here

              return layer;
          }

          public static LayerDataPacket CreateLandPacket(float[][] patchData, int x, int y)
          {
              LayerDataPacket layer = new LayerDataPacket();
              layer.LayerID.Type = (byte)TerrainPatch.LayerType.Land.getIndex();

              TerrainPatch.GroupHeader header = new TerrainPatch.GroupHeader();
              header.Stride = STRIDE;
              header.PatchSize = 16;
View Full Code Here

          JLogger.warn("DecompressCloud not implemented");
      }

      private void LayerDataHandler(Object sender, PacketReceivedEventArgs e)
      {
          LayerDataPacket layer = (LayerDataPacket)e.getPacket();
          BitPack bitpack = new BitPack(layer.LayerData.Data, 0);
          TerrainPatch.GroupHeader header = new TerrainPatch.GroupHeader();
          TerrainPatch.LayerType type = TerrainPatch.LayerType.get(layer.LayerID.Type);

          // Stride
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.protocol.LayerDataPacket$LayerIDBlock

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.