Export (0) Print
Expand All

LoadResources Method

Microsoft Robotics
Microsoft Robotics Class Reference
Loads resources specified in entity. Called by default when the graphics engine invokes Initialize()

Namespace: Microsoft.Robotics.Simulation.Engine
Assembly: SimulationEngine (in SimulationEngine.dll) Version: (

public virtual void LoadResources(
	GraphicsDevice device


Type: GraphicsDevice



The behavior of this routine depends on the values of State.Assets.Mesh and the Meshes array. If a mesh resource is provided, the routine will create the mesh and not look at the physics primitives. If no mesh resource is provided and the Meshes array is null, the routine will create a DirectX graphics mesh for each physics primitive in the State.PhysicsPrimitives list
© 2014 Microsoft