コード例 #1
0
ファイル: MeshChunk.cs プロジェクト: dvdbrink/Grapple
        public MeshChunk(Vector3F position, int width, int height, int depth, Material material)
        {
            _position = position;
            _width = width;
            _height = height;
            _depth = depth;
            _disposed = false;

            InitializeGameObject(material);
        }
コード例 #2
0
ファイル: MeshChunkFactory.cs プロジェクト: dvdbrink/Grapple
 public IChunk CreateChunk(Vector3F position, int width, int height, int depth)
 {
     return new MeshChunk(position, width, height, depth, _material);
 }
コード例 #3
0
ファイル: MeshChunk.cs プロジェクト: dvdbrink/Grapple
 private Vector3[] Map(Vector3F[] from)
 {
     var to = new Vector3[from.Length];
     for (var i = 0; i < from.Length; ++i)
     {
         to[i] = new Vector3(from[i].x, from[i].y, from[i].z);
     }
     return to;
 }