DebugInformation can be declaratively specified in your Xaml, instead of having to set it programmatically in C# in your code-behind or Game Class.

On the Game Control, you have a property called "DebugLevel", for now it accepts the string "BoundingSpheres". Setting this will add bounding spheres to all loaded meshes in your scene.

Example:
<Execution:Game Width="800" Height="600">
   <Execution:Game.DebugLevel>
      <Debug:DebugLevel BoundingSpheres="true"/>
   </Execution:Game.DebugLevel>
</Execution:Game>

Last edited Dec 15, 2009 at 8:07 PM by adept, version 3

Comments

No comments yet.