コード例 #1
0
ファイル: TerrainPatch.cs プロジェクト: Nostritius/OpenSAGE
        internal TerrainPatch(
            TerrainMaterial terrainMaterial,
            Rectangle patchBounds,
            Buffer <TerrainVertex> vertexBuffer,
            Buffer <ushort> indexBuffer,
            Triangle[] triangles,
            BoundingBox boundingBox)
        {
            _terrainMaterial = terrainMaterial;

            Bounds = patchBounds;

            _vertexBuffer = vertexBuffer;
            _indexBuffer  = indexBuffer;

            BoundingBox = boundingBox;
            Triangles   = triangles;
        }
コード例 #2
0
        internal TerrainPatch(
            TerrainMaterial terrainMaterial,
            Rectangle patchBounds,
            DeviceBuffer vertexBuffer,
            DeviceBuffer indexBuffer,
            uint numIndices,
            Triangle[] triangles,
            BoundingBox boundingBox)
        {
            _terrainMaterial = terrainMaterial;

            Bounds = patchBounds;

            _vertexBuffer = vertexBuffer;
            _indexBuffer  = indexBuffer;
            _numIndices   = numIndices;

            BoundingBox = boundingBox;
            Triangles   = triangles;
        }