public RenderSystem(ICamera camera) { _camera = camera; _resourceAllocator = new ResourceAllocator(new OpenGlResourceFactory()); _simpleMaterial = new SimpleMaterial(); _simpleMaterial.Create(); _normalDebugProgram = new NormalDebugProgram(); _normalDebugProgram.Create(); }
public Terrain() { _tree = CreateTree(); _chunkedLod = new ChunkedLod(); _simpleMaterial = new SimpleMaterial(); _simpleMaterial.Create(); _normalDebugProgram = new NormalDebugProgram(); _normalDebugProgram.Create(); _cache = new TerrainChunkCache(new TerrainChunkFactory(), new ResourceAllocator(new OpenGlResourceFactory())); }
public Terrain(IChunkedLod chunkedLod) { _tree = CreateTree(); _chunkedLod = chunkedLod; _simpleMaterial = new SimpleMaterial(); _simpleMaterial.Create(); _normalDebugProgram = new NormalDebugProgram(); _normalDebugProgram.Create(); _cache = new TerrainChunkCache(new TerrainChunkFactory(), new ResourceAllocator(new OpenGlResourceFactory())); }