예제 #1
0
        /// <summary>
        /// draws the 3D scene.
        /// </summary>
        protected void Draw3D(RenderTracer renderTracer)
        {
            DefaultRenderState();

            //  Draw all 3D objects
            scene3DRoot.Draw(renderTracer);
        }
예제 #2
0
        /// <summary>
        /// draws the 2D scene.
        /// </summary>
        protected void Draw2D(RenderTracer renderTracer)
        {
            spriteBatch.Begin(SpriteBlendMode.AlphaBlend);

            //  Draw all 2D objects
            for (int i = 0; i < scene2DLayer.Count; i++)
            {
                scene2DLayer[i].Draw(renderTracer);
            }

            //  Draw all 2D overlay
            for (int i = 0; i < scene2DOverlay.Count; i++)
            {
                scene2DOverlay[i].Draw(renderTracer);
            }

            spriteBatch.End();
        }