DrawModel() public method

Draw a mesh model after it has been processed (transformed and projected)
public DrawModel ( Model model ) : void
model Model
return void
Esempio n. 1
0
        private void Render()
        {
            var sw = Stopwatch.StartNew();

            frame.Clear();
            frame.DrawModel(model);
            Logger.Value("frame.DrawModel()", sw.ElapsedMilliseconds);

            sw.Restart();
            renderer.SetBackbuffer(frame);
            Logger.Value("renderer.SetBackbuffer()", sw.ElapsedMilliseconds);

            sw.Restart();
            renderer.SwapBuffer();
            Logger.Value("renderer.SwapBuffer()", sw.ElapsedMilliseconds);

            sw.Restart();
            renderer.Update();
            Logger.Value("renderer.Update()", sw.ElapsedMilliseconds);
        }