示例#1
0
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.Black);


            base.Draw(gameTime);

            spriteBatch.Begin();
            ph.Draw(spriteBatch);
            spriteBatch.End();
        }
示例#2
0
        public void Refresh(double time)
        {
            menuAnimation1Instance1.RefreshControllers();
            camera3Animation1Instance1.RefreshControllers();

            GL.Clear(ClearBufferMask.DepthBufferBit);

            scene.Simulate(time);

            if (demo.EnableMenu)
            {
                scene.Draw(time);
            }
        }
示例#3
0
        public void Refresh(double time)
        {
            simpleCameraAnimation1Instance1.RefreshControllers();

            GL.Clear(ClearBufferMask.DepthBufferBit);

            scene.Simulate(time);
            scene.Draw(time);

            if (demo.EnableMenu)
            {
                GL.Clear(ClearBufferMask.DepthBufferBit);
                demo.MenuScene.PhysicsScene.Draw(time);
            }

            demo.SwapBuffers();
        }