public virtual void Render(World world) { Display.Texture = _terrain; GL.Begin(BeginMode.Quads); for (int x = 0; x < world.Width; x++) for (int y = 0; y < world.Depth; y++) for (int z = 0; z < world.Height; z++) BlockRenderer.Render(world, x, y, z); GL.End(); Display.Texture = null; }
public Window() : base(1152, 864, new GraphicsMode(32, 24, 0, 0), "Cubecraft") { Instance = this; WindowBorder = WindowBorder.Fixed; Camera = new FreeCamera(); World = new World(); Entities = new List<Entity>(); WorldRenderer = new WorldRenderer(); }