Пример #1
0
 public void Draw(GraphicsDevice device, BasicEffect effect, Matrix view, Matrix projection, Matrix world)
 {
     Meshes.ForEach(m => m.Draw(device, effect, view, projection, world));
 }
Пример #2
0
 public void CalculateMeshes(GraphicsDevice graphicsDevice)
 {
     // @TODO: Cache in a global buffer? If so, how to handle multiple textures?
     Meshes.ForEach(m => m.CalculateVertexArray(graphicsDevice));
 }
Пример #3
0
 public void LoadTextures(GraphicsDevice graphicsDevice, string basepath)
 {
     Meshes.ForEach(m => m.LoadTextures(graphicsDevice, basepath));
 }