virtual void BeginFrame();
BeginFrame begins rendering the current frame. When calling this function, users must also call EndFrame at the end of the game frame.