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(); }
public AnimationClip() { playSpeed = 1f; RenderQueue.AddRenderObject(this); }
public MeshRenderer() { RenderQueue.AddRenderObject(this); }