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; }
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; }