Hey,
I'm trying to use two managers. One for Objects, and one for GUI. When I run the game, I only see the GUI, but no objects. The weird part is I still see the skybox, just not the models/terrain. When I go into wireframe mode. I can see the wireframe of all the objects and the gui buttons. Why is it not rendering my objects?!?!
I call the draw functions from here in the Engine.cs:
GUIManager.Draw(graphics.GraphicsDevice);
ObjectManager.Draw(graphics.GraphicsDevice);
The draw function in the GUIManager and the ObjectManager looks like this:
public static void Draw(GraphicsDevice device)
{
if (controls.Count != 0)
{
foreach (GUIButtonSimple obj in controls.Values)
{
if (obj is iObjectRenderable)
{
((iObjectRenderable)obj).Render(device);
}
}
}
}
public static void Draw(GraphicsDevice device)
{
// Draw the child objects
foreach (BaseObject obj in objects.Values)
{
obj.Draw(device);
}
}
Any help is appreciated!