27 #ifndef _CEGUIOpenGLESRenderer_h_ 28 #define _CEGUIOpenGLESRenderer_h_ 30 #include "CEGUI/Base.h" 31 #include "CEGUI/Renderer.h" 32 #include "CEGUI/Size.h" 33 #include "CEGUI/Vector.h" 34 #include "CEGUI/RendererModules/OpenGLES/GLES.h" 38 #if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC) 39 # ifdef CEGUIOPENGLESRENDERER_EXPORTS 40 # define OPENGLES_GUIRENDERER_API __declspec(dllexport) 42 # define OPENGLES_GUIRENDERER_API __declspec(dllimport) 45 # define OPENGLES_GUIRENDERER_API 49 # pragma warning(push) 50 # pragma warning(disable : 4251) 57 class OpenGLESTexture;
58 class OpenGLESTextureTarget;
59 class OpenGLESGeometryBuffer;
60 class OGLTextureTargetFactory;
107 const int abi = CEGUI_VERSION_ABI);
136 const Sizef& display_size,
138 const int abi = CEGUI_VERSION_ABI);
155 static void destroySystem();
169 const int abi = CEGUI_VERSION_ABI);
187 const int abi = CEGUI_VERSION_ABI);
206 static bool isGLExtensionSupported(
const char* extension );
212 void destroyAllGeometryBuffers();
215 void destroyAllTextureTargets();
219 const String& resourceGroup);
221 void destroyTexture(
Texture& texture);
222 void destroyTexture(
const String& name);
223 void destroyAllTextures();
225 bool isTextureDefined(
const String& name)
const;
226 void beginRendering();
228 void setDisplaySize(
const Sizef& sz);
229 const Sizef& getDisplaySize()
const;
230 const Vector2f& getDisplayDPI()
const;
231 uint getMaxTextureSize()
const;
232 const String& getIdentifierString()
const;
261 void enableExtraStateSettings(
bool setting);
277 void restoreTextures();
290 Sizef getAdjustedTextureSize(
const Sizef& sz)
const;
297 static float getNextPOTSize(
const float f);
330 void setupExtraStates();
333 void cleanupExtraStates();
339 void logTextureDestruction(
const String& name);
344 GLboolean glScissorTest;
353 static String d_rendererID;
363 TextureTargetList d_textureTargets;
367 GeometryBufferList d_geometryBuffers;
370 CEGUI_MAP_ALLOC(String, OpenGLESTexture*)>
TextureMap;
372 TextureMap d_textures;
374 uint d_maxTextureSize;
376 bool d_initExtraStates;
383 #if defined(_MSC_VER) 384 # pragma warning(pop) 387 #endif // end of guard _CEGUIOpenGLESRenderer_h_ std::vector< TextureTarget * > TextureTargetList
container type used to hold TextureTargets we create.
Definition: Ogre/Renderer.cpp:156
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
Use targets based on frame buffer objects if available, else none.
Definition: cegui/include/CEGUI/RendererModules/OpenGLES/Renderer.h:75
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
Renderer class to interface with OpenGLES.
Definition: cegui/include/CEGUI/RendererModules/OpenGLES/Renderer.h:66
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: cegui/include/CEGUI/GeometryBuffer.h:42
Automatically choose the best type available.
Definition: cegui/include/CEGUI/RendererModules/OpenGLES/Renderer.h:73
TextureTargetType
Enumeration of valid texture target types.
Definition: cegui/include/CEGUI/RendererModules/OpenGLES/Renderer.h:70
Specialisation of RenderTarget interface that should be used as the base class for RenderTargets that...
Definition: cegui/include/CEGUI/TextureTarget.h:40
Abstract base class specifying the required interface for Texture objects.
Definition: cegui/include/CEGUI/Texture.h:52
Use targets based on pbuffer support if available, else none.
Definition: cegui/include/CEGUI/RendererModules/OpenGLES/Renderer.h:77
std::map< String, OgreTexture *, StringFastLessCompare CEGUI_MAP_ALLOC(String, OgreTexture *)> TextureMap
container type used to hold Textures we create.
Definition: Ogre/Renderer.cpp:161
Abstract class defining the basic required interface for Renderer objects.
Definition: cegui/include/CEGUI/Renderer.h:82
std::vector< OgreGeometryBuffer * > GeometryBufferList
container type used to hold GeometryBuffers we create.
Definition: Ogre/Renderer.cpp:158
Definition: cegui/include/CEGUI/RendererModules/OpenGL/RendererBase.h:287
Texture implementation for the OpenGLESRenderer.
Definition: cegui/include/CEGUI/RendererModules/OpenGLES/Texture.h:39
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