コード例 #1
0
        ////////////////////////////////////////////////////////////////////////////////
        // DRAW THE SCREEN
        ////////////////////////////////////////////////////////////////////////////////
        public override void Draw(GameTime gameTime)
        {
            spriteBatch.Begin();
            DrawText.Aligned("1: Interpolation Demo", HorizontalAlignment.Center, VerticalAlignment.Center, 0.5f, 0.1f, Color.White, manager.defaultFont);
            DrawText.Aligned("2: OBB Demo", HorizontalAlignment.Center, VerticalAlignment.Center, 0.5f, 0.2f, Color.White, manager.defaultFont);
            DrawText.Aligned("3: World Matrix Demo", HorizontalAlignment.Center, VerticalAlignment.Center, 0.5f, 0.3f, Color.White, manager.defaultFont);
            DrawText.Aligned("4: Integration Demo", HorizontalAlignment.Center, VerticalAlignment.Center, 0.5f, 0.4f, Color.White, manager.defaultFont);
            DrawText.Aligned("Q to quit!", HorizontalAlignment.Center, VerticalAlignment.Center, 0.5f, 0.6f, Color.White, manager.defaultFont);
            spriteBatch.End();

            base.Draw(gameTime);
        }