示例#1
0
        protected override void OnPaint(PaintEventArgs e)
        {
            device.Clear(ClearFlags.Target | ClearFlags.ZBuffer, Color.CornflowerBlue, 1.0f, 0);

            if (OnGraphicLoopUpdate != null)
            {
                OnGraphicLoopUpdate();
            }

            UpdateCamera();
            UpdateLighting();

            device.BeginScene();

            device.RenderState.Lighting = true;
            device.RenderState.CullMode = Cull.None;

            RenderQueue.RenderCall(device);

            device.EndScene();

            device.Present();

            CalcFps(e.Graphics);

            this.Invalidate();
        }
示例#2
0
 public AnimationClip()
 {
     playSpeed = 1f;
     RenderQueue.AddRenderObject(this);
 }
示例#3
0
 public MeshRenderer()
 {
     RenderQueue.AddRenderObject(this);
 }