28 #ifndef _CEGUIOgreRenderer_h_
29 #define _CEGUIOgreRenderer_h_
31 #include "../../CEGUIRenderer.h"
32 #include "../../CEGUISize.h"
33 #include "../../CEGUIVector.h"
37 #if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
38 # ifdef OGRE_GUIRENDERER_EXPORTS
39 # define OGRE_GUIRENDERER_API __declspec(dllexport)
41 # define OGRE_GUIRENDERER_API __declspec(dllimport)
44 # define OGRE_GUIRENDERER_API
48 # pragma warning(push)
49 # pragma warning(disable : 4251)
63 class OgreGeometryBuffer;
65 class OgreResourceProvider;
67 class OgreWindowTarget;
68 struct OgreRenderer_impl;
119 static OgreRenderer& bootstrapSystem(Ogre::RenderTarget& target);
137 static void destroySystem();
156 static OgreRenderer& create(Ogre::RenderTarget& target);
174 void setRenderingEnabled(
const bool enabled);
177 bool isRenderingEnabled()
const;
193 Texture& createTexture(Ogre::TexturePtr& tex,
bool take_ownership =
false);
196 void setupRenderingBlendMode(
const BlendMode mode,
197 const bool force =
false);
216 void setFrameControlExecutionEnabled(
const bool enabled);
235 bool isFrameControlExecutionEnabled()
const;
245 void initialiseRenderStateSettings();
256 void setDefaultRootRenderTarget(Ogre::RenderTarget& target);
262 void destroyAllGeometryBuffers();
265 void destroyAllTextureTargets();
269 void destroyTexture(
Texture& texture);
270 void destroyAllTextures();
271 void beginRendering();
273 void setDisplaySize(
const Size& sz);
274 const Size& getDisplaySize()
const;
275 const Vector2& getDisplayDPI()
const;
276 uint getMaxTextureSize()
const;
277 const String& getIdentifierString()
const;
288 void checkOgreInitialised();
291 void constructor_impl(Ogre::RenderTarget& target);
300 #if defined(_MSC_VER)
301 # pragma warning(pop)
304 #endif // end of guard _CEGUIOgreRenderer_h_