示例#1
0
        protected override void OnDraw(FrameArgs e)
        {
            base.OnDraw(e);

            using (_cam.Begin()) {             // using the camera...
                using (_lights.Begin()) {      // ...and the lights...
                    _model.Draw(ref _world);   // ...draw the model!
                }
            }
        }
示例#2
0
        protected override void OnDraw(FrameArgs e)
        {
            base.OnDraw(e);

            using (_cam.Begin()) {             // using the camera...
                using (_lights.Begin()) {      // ...and the lights...
                    // draw the model!
                    _model.Draw(Matrix4.Identity);
                }
            }
        }