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;
96 const int abi = CEGUI_VERSION_ABI);
114 static void destroySystem();
118 const int abi = CEGUI_VERSION_ABI);
125 createIrrlichtResourceProvider(irr::io::IFileSystem& fs);
132 irr::video::IVideoDriver& driver);
138 bool injectEvent(
const irr::SEvent& event);
150 Sizef getAdjustedTextureSize(
const Sizef& sz)
const;
157 static float getNextPOTSize(
const float f);
163 void destroyAllGeometryBuffers();
166 void destroyAllTextureTargets();
170 const String& resourceGroup);
172 void destroyTexture(
Texture& texture);
173 void destroyTexture(
const String& name);
174 void destroyAllTextures();
176 bool isTextureDefined(
const String& name)
const;
177 void beginRendering();
179 void setDisplaySize(
const Sizef& sz);
180 const Sizef& getDisplaySize()
const;
181 const Vector2f& getDisplayDPI()
const;
182 uint getMaxTextureSize()
const;
183 const String& getIdentifierString()
const;
193 void throwIfNameExists(
const String& name)
const;
195 static void logTextureCreation(
const String& name);
197 static void logTextureDestruction(
const String& name);
236 #if defined(_MSC_VER) 237 # pragma warning(pop) 240 #endif // end of guard _CEGUIIrrlichtRenderer_h_
Vector2f d_displayDPI
What the renderer considers to be the current display DPI resolution.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:208
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: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:221
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
TextureTargetList d_textureTargets
Container used to track texture targets.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:214
irr::IrrlichtDevice & d_device
The IrrlichtDevide that we'll be using.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:202
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
Specialisation of RenderTarget interface that should be used as the base class for RenderTargets that...
Definition: cegui/include/CEGUI/TextureTarget.h:40
RenderTarget * d_defaultTarget
The default RenderTarget.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:210
bool d_supportsNSquareTextures
true if driver supports non square textures
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:229
IrrlichtEventPusher * d_eventPusher
ptr to helper object that aids in injection of events from Irrlicht.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:227
Implementation of the CEGUI::Texture class for the Irrlicht engine.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Texture.h:49
static String d_rendererID
String holding the renderer identification text.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:200
std::vector< IrrlichtGeometryBuffer * > GeometryBufferList
container type used to hold GeometryBuffers we create.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:216
irr::video::IVideoDriver * d_driver
Irrlicht video driver (as obtained from the device)
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:204
Abstract base class specifying the required interface for Texture objects.
Definition: cegui/include/CEGUI/Texture.h:52
Abstract class defining the basic required interface for Renderer objects.
Definition: cegui/include/CEGUI/Renderer.h:82
Sizef d_displaySize
What the renderer considers to be the current display size.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:206
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/ResourceProvider.h:39
std::vector< TextureTarget * > TextureTargetList
container type used to hold TextureTargets we create.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:212
CEGUI::Renderer implementation for the Irrlicht engine.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:71
uint d_maxTextureSize
What the renderer thinks the max texture size is.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:225
Defines interface to some surface that can be rendered to. Concrete instances of objects that impleme...
Definition: cegui/include/CEGUI/RenderTarget.h:57
GeometryBufferList d_geometryBuffers
Container used to track geometry buffers.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:218
ImageCodec object that loads data via image loading facilities in Irrlicht.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/ImageCodec.h:46
bool d_supportsNPOTTextures
true if driver supports non power of two textures
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:231
TextureMap d_textures
Container used to track textures.
Definition: cegui/include/CEGUI/RendererModules/Irrlicht/Renderer.h:223
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62