40 #ifndef _graphicsd3d9rendersyshelper_cpp
41 #define _graphicsd3d9rendersyshelper_cpp
43 #include "Graphics/d3d9rendersyshelper.h.cpp"
49 #include "OgreD3D9Plugin.h"
54 Ogre::D3D9Plugin* RSPlugin;
63 if( RSPlugin == NULL ) {
64 RSPlugin =
new Ogre::D3D9Plugin();
65 Ogre::Root::getSingletonPtr()->installPlugin( RSPlugin );
67 MEZZ_EXCEPTION(Exception::INVALID_STATE_EXCEPTION,
"The Direct3D9 render system has already been created.")
78 {
return Graphics::RS_DirectX9; }
81 {
return "Direct3D9 Rendering Subsystem"; }
84 {
return "Direct3D9"; }
RenderSystem
Used primarily by the graphics manager class during initialization.
#define MEZZ_EXCEPTION(num, desc)
An easy way to throw exceptions with rich information.
This implements the exception hiearchy for Mezzanine.
The bulk of the engine components go in this namspace.
void DestroyD3D9RenderSystem()
Shutsdown the rendersystem and removes it from internal structures.
String GetShortenedD3D9RenderSystemName()
Gets the short name of the D3D9 render system.
Graphics::RenderSystem GetD3D9RenderSystemType()
Gets the Mezzanine type for the internal D3D9 render system.
String GetD3D9RenderSystemName()
Gets the long name of the D3D9 render system.
std::string String
A datatype used to a series of characters.
void CreateD3D9RenderSystem()
Creates the rendersystem and populates internal structures appropriately for use. ...