public static void ComponentTest() { XEngineComponentTest testGame = new XEngineComponentTest(); Origin origin = null; testGame.InitDelegate = delegate { origin = new Origin(); origin.Initialize(); }; testGame.DrawDelegate = delegate( GameTime gameTime ) { origin.Draw( Matrix.Identity ); }; testGame.Run(); }
public static new void ComponentTest() { XEngineComponentTest testGame = new XEngineComponentTest(); testGame.CameraType = CameraType.CAMERA_TYPE_FIRST_PERSON; Origin origin = null; testGame.InitDelegate = delegate { origin = new Origin(); origin.Initialize(); }; testGame.DrawDelegate = delegate( GameTime gameTime ) { origin.Draw(); }; testGame.Run(); }
private void CreateMeshOrigins() { m_meshOrigins = new Origin[m_model.Meshes.Count]; int meshIndex = 0; foreach ( ModelMesh mesh in m_model.Meshes ) { Origin meshOrigin = new Origin(); meshOrigin.Initialize(); m_meshOrigins[meshIndex++] = meshOrigin; } }