Draw
Introduction
The Draw function performs all FlatRedBall rendering. This function is automatically part of all FlatRedBall templates, including projects created by the FlatRedBall Editor, so it does not need to be added manually. However, it can be removed to quickly disable rendering of FlatRedBall for debugging and customization.
Breaking down Draw
The Draw function can be broken down into two calls: UpdateDependencies and RenderAll. Therefore, the following line:
could be replaced with:
The RenderAll function can be further broken-up:
The Renderer.Draw method can be further broken-up. By breaking apart the draw calls, each individual camera can be optionally drawn, or it can be drawn to a separate render target:
The contents of DrawCamera are currently private so this method cannot be broken up further; however, the source for DrawCamera can be inspected by looking at the source code.
Last updated