You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
907 B
C++
42 lines
907 B
C++
#ifndef _OGRE_RENDERER_H
|
|
#define _OGRE_RENDERER_H
|
|
|
|
/*
|
|
Ogre renderer class
|
|
*/
|
|
|
|
#include <Ogre.h>
|
|
#include <string>
|
|
|
|
namespace Render
|
|
{
|
|
class OgreRenderer
|
|
{
|
|
Ogre::Root *mRoot;
|
|
Ogre::RenderWindow *mWindow;
|
|
bool logging;
|
|
|
|
public:
|
|
OgreRenderer()
|
|
: mRoot(NULL) {}
|
|
~OgreRenderer() { cleanup(); }
|
|
|
|
/** Configure the renderer. This will load configuration files and
|
|
set up the Root and logging classes. */
|
|
bool configure(bool showConfig, // Show config dialog box?
|
|
const std::string &pluginCfg, // plugin.cfg file
|
|
bool _logging); // Enable or disable logging
|
|
|
|
/// Create a window with the given title
|
|
void createWindow(const std::string &title);
|
|
|
|
/// Kill the renderer.
|
|
void cleanup();
|
|
|
|
Ogre::Root *getRoot() { return mRoot; }
|
|
Ogre::RenderWindow *getWindow() { return mWindow; }
|
|
};
|
|
}
|
|
|
|
#endif
|