Beispiel #1
0
        private void OnLoad(object sender, EventArgs e)
        {
            context = new RendererContext(Width, Height);
            context.ResetDepthBuffer();
            rendererBox.InitGDI(Width, Height);

            object3D = new Object3D(Primitives.GetPrimitive("Cube"));

            rendererTimer          = new Timer();
            rendererTimer.Interval = 1;
            rendererTimer.Tick    += OnUpdate;
            rendererTimer.Start();
        }
Beispiel #2
0
 private void Engine_Resize(object sender, EventArgs e)
 {
     context = new RendererContext(Width, Height);
     context.ResetDepthBuffer();
     rendererBox.InitGDI(Width, Height);
 }