27 #ifndef _CEGUIIrrlichtRenderer_h_ 28 #define _CEGUIIrrlichtRenderer_h_ 30 #include "CEGUI/RendererModules/Irrlicht/RendererDef.h" 31 #include "../../Renderer.h" 32 #include "../../Size.h" 33 #include "../../Vector.h" 39 # pragma warning(push) 40 # pragma warning(disable : 4251) 64 class IrrlichtTexture;
65 class IrrlichtGeometryBuffer;
66 class IrrlichtResourceProvider;
67 class IrrlichtEventPusher;
68 class IrrlichtImageCodec;
71 class IRR_GUIRENDERER_API IrrlichtRenderer :
public Renderer
95 static IrrlichtRenderer& bootstrapSystem(irr::IrrlichtDevice& device,
96 const int abi = CEGUI_VERSION_ABI);
114 static void destroySystem();
117 static IrrlichtRenderer& create(irr::IrrlichtDevice& device,
118 const int abi = CEGUI_VERSION_ABI);
121 static void destroy(IrrlichtRenderer& renderer);
124 static IrrlichtResourceProvider&
125 createIrrlichtResourceProvider(irr::io::IFileSystem& fs);
128 static void destroyIrrlichtResourceProvider(IrrlichtResourceProvider& rp);
131 static IrrlichtImageCodec& createIrrlichtImageCodec(
132 irr::video::IVideoDriver& driver);
135 static void destroyIrrlichtImageCodec(IrrlichtImageCodec& ic);
138 bool injectEvent(
const irr::SEvent& event);
150 Sizef getAdjustedTextureSize(
const Sizef& sz)
const;
157 static float getNextPOTSize(
const float f);
180 void destroyAllGeometryBuffers();
183 void destroyAllTextureTargets();
187 const String& resourceGroup);
189 void destroyTexture(
Texture& texture);
190 void destroyTexture(
const String& name);
191 void destroyAllTextures();
193 bool isTextureDefined(
const String& name)
const;
194 void beginRendering();
196 void setDisplaySize(
const Sizef& sz);
197 const Sizef& getDisplaySize()
const;
198 const Vector2f& getDisplayDPI()
const;
199 uint getMaxTextureSize()
const;
200 const String& getIdentifierString()
const;
210 void throwIfNameExists(
const String& name)
const;
212 static void logTextureCreation(
const String& name);
214 static void logTextureDestruction(
const String& name);
217 static String d_rendererID;
219 irr::IrrlichtDevice& d_device;
221 irr::video::IVideoDriver* d_driver;
231 TextureTargetList d_textureTargets;
235 GeometryBufferList d_geometryBuffers;
242 uint d_maxTextureSize;
246 bool d_supportsNSquareTextures;
248 bool d_supportsNPOTTextures;
253 #if defined(_MSC_VER) 254 # pragma warning(pop) 257 #endif // end of guard _CEGUIIrrlichtRenderer_h_
Functor that can be used as comparator in a std::map with String keys. It's faster than using the def...
Definition: cegui/include/CEGUI/String.h:5579
std::map< String, IrrlichtTexture *, StringFastLessCompare CEGUI_MAP_ALLOC(String, IrrlichtTexture *)> TextureMap
container type used to hold Textures we create.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/RendererModules/Irrlicht/Renderer.h:238
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/EventPusher.h:37
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: cegui/include/CEGUI/GeometryBuffer.h:42
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/ImageCodec.h:34
bool isTexCoordSystemFlipped() const
Returns if the texture coordinate system is vertically flipped or not. The original of a texture coor...
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/RendererModules/Irrlicht/Renderer.h:174
Specialisation of RenderTarget interface that should be used as the base class for RenderTargets that...
Definition: cegui/include/CEGUI/TextureTarget.h:40
Implementation of the CEGUI::Texture class for the Irrlicht engine.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Texture.h:49
std::vector< IrrlichtGeometryBuffer * > GeometryBufferList
container type used to hold GeometryBuffers we create.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/RendererModules/Irrlicht/Renderer.h:233
Abstract base class specifying the required interface for Texture objects.
Definition: cegui/include/CEGUI/Texture.h:52
std::vector< TextureTarget * > TextureTargetList
container type used to hold TextureTargets we create.
Definition: debian/tmp/usr/include/cegui-0.8.7/CEGUI/RendererModules/Irrlicht/Renderer.h:229
CEGUI::Renderer implementation for the Irrlicht engine.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:71
Defines interface to some surface that can be rendered to. Concrete instances of objects that impleme...
Definition: cegui/include/CEGUI/RenderTarget.h:57
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62