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;
118 static OgreRenderer& bootstrapSystem(Ogre::RenderTarget& target);
136 static void destroySystem();
155 static OgreRenderer& create(Ogre::RenderTarget& target);
173 void setRenderingEnabled(
const bool enabled);
176 bool isRenderingEnabled()
const;
192 Texture& createTexture(Ogre::TexturePtr& tex,
bool take_ownership =
false);
198 void destroyAllGeometryBuffers();
201 void destroyAllTextureTargets();
205 void destroyTexture(
Texture& texture);
206 void destroyAllTextures();
207 void beginRendering();
209 void setDisplaySize(
const Size& sz);
210 const Size& getDisplaySize()
const;
211 const Vector2& getDisplayDPI()
const;
212 uint getMaxTextureSize()
const;
213 const String& getIdentifierString()
const;
224 void checkOgreInitialised();
227 void constructor_impl(Ogre::RenderTarget& target);
262 #if defined(_MSC_VER)
263 # pragma warning(pop)
266 #endif // end of guard _CEGUIOgreRenderer_h_