28 #ifndef _CEGUIRendererBase_h_
29 #define _CEGUIRendererBase_h_
31 #include "../../Base.h"
32 #include "../../Renderer.h"
33 #include "../../Size.h"
34 #include "../../Vector.h"
35 #include "../../Rect.h"
36 #include "../../TextureTarget.h"
37 #include "CEGUI/RendererModules/OpenGL/GL.h"
41 #if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
42 # ifdef CEGUIOPENGLRENDERER_EXPORTS
43 # define OPENGL_GUIRENDERER_API __declspec(dllexport)
45 # define OPENGL_GUIRENDERER_API __declspec(dllimport)
48 # define OPENGL_GUIRENDERER_API
52 # pragma warning(push)
53 # pragma warning(disable : 4251)
59 class OpenGLGeometryBufferBase;
70 void destroyAllGeometryBuffers();
73 void destroyAllTextureTargets();
77 const String& resourceGroup);
79 void destroyTexture(
Texture& texture);
80 void destroyTexture(
const String& name);
81 void destroyAllTextures();
83 bool isTextureDefined(
const String& name)
const;
84 void setDisplaySize(
const Sizef& sz);
85 const Sizef& getDisplaySize()
const;
86 const Vector2f& getDisplayDPI()
const;
87 uint getMaxTextureSize()
const;
88 const String& getIdentifierString()
const;
125 void enableExtraStateSettings(
bool setting);
141 void restoreTextures();
154 virtual Sizef getAdjustedTextureSize(
const Sizef& sz)
const;
161 static float getNextPOTSize(
const float f);
164 virtual void setupRenderingBlendMode(
const BlendMode mode,
165 const bool force =
false) = 0;
168 virtual bool isS3TCSupported()
const = 0;
177 virtual const mat4Pimpl* getViewProjectionMatrix();
186 virtual void setViewProjectionMatrix(
const mat4Pimpl* viewProjectionMatrix);
231 static void logTextureCreation(
const String& name);
233 static void logTextureDestruction(
const String& name);
236 void initialiseMaxTextureSize();
239 void initialiseDisplaySizeWithViewportSize();
299 #if defined(_MSC_VER)
300 # pragma warning(pop)