28 #ifndef _CEGUIOgreRenderer_h_
29 #define _CEGUIOgreRenderer_h_
31 #include "../../CEGUIRenderer.h"
32 #include "../../CEGUISize.h"
33 #include "../../CEGUIVector.h"
35 #include <OgreBlendMode.h>
36 #include <OgreTextureUnitState.h>
40 #if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
41 # ifdef OGRE_GUIRENDERER_EXPORTS
42 # define OGRE_GUIRENDERER_API __declspec(dllexport)
44 # define OGRE_GUIRENDERER_API __declspec(dllimport)
47 # define OGRE_GUIRENDERER_API
51 # pragma warning(push)
52 # pragma warning(disable : 4251)
64 class OgreGeometryBuffer;
66 class OgreResourceProvider;
68 class OgreWindowTarget;
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);
330 #if defined(_MSC_VER)
331 # pragma warning(pop)
334 #endif // end of guard _CEGUIOgreRenderer_h_