/*
MainControl.h
Written by Matthew Fisher
MainControl includes everything that changes often between applications, such as what meshes to load,
and also determines what is rendered each frame.
This MainControl class just draws a video texture on two planes. However, it will work on any shapes you might use.
*/
class MainControl {
public:
~MainControl() {FreeMemory();}
void FreeMemory();
void InitShapes(GraphicsDevice &GD); //initalizes the shape ring
void ReInit(GraphicsDevice &GD, WindowManager &WM); //called after we lose focus, telling us to restore
//our textures and other data that may have been list
void Init(GraphicsDevice &GD, WindowManager &WM); //called only one at the beginning of our application
void Render(GraphicsDevice &GD, WindowManager &WM); //called each frame
private:
VideoTexture VT; //the video texture we're using
Vector<Mesh> Shapes; //the shapes we're drawing
MatrixController MC; //the world/view/perspective matrices
Camera C; //the camera we use
float Time; //the current time, in seconds
};