29 #ifndef _CEGUIRendererBase_h_
30 #define _CEGUIRendererBase_h_
32 #include "../../Base.h"
33 #include "../../Renderer.h"
34 #include "../../Size.h"
35 #include "../../Vector.h"
36 #include "../../Rect.h"
37 #include "../../TextureTarget.h"
38 #include "CEGUI/RendererModules/OpenGL/GL.h"
42 #if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
43 # ifdef CEGUIOPENGLRENDERER_EXPORTS
44 # define OPENGL_GUIRENDERER_API __declspec(dllexport)
46 # define OPENGL_GUIRENDERER_API __declspec(dllimport)
49 # define OPENGL_GUIRENDERER_API
53 # pragma warning(push)
54 # pragma warning(disable : 4251)
60 class OpenGLGeometryBufferBase;
71 void destroyAllGeometryBuffers();
74 void destroyAllTextureTargets();
78 const String& resourceGroup);
80 void destroyTexture(
Texture& texture);
81 void destroyTexture(
const String& name);
82 void destroyAllTextures();
84 bool isTextureDefined(
const String& name)
const;
85 void setDisplaySize(
const Sizef& sz);
86 const Sizef& getDisplaySize()
const;
87 const Vector2f& getDisplayDPI()
const;
88 uint getMaxTextureSize()
const;
89 const String& getIdentifierString()
const;
126 void enableExtraStateSettings(
bool setting);
142 void restoreTextures();
155 virtual Sizef getAdjustedTextureSize(
const Sizef& sz)
const;
162 static float getNextPOTSize(
const float f);
165 virtual void setupRenderingBlendMode(
const BlendMode mode,
166 const bool force =
false) = 0;
169 virtual bool isS3TCSupported()
const = 0;
178 virtual const mat4Pimpl* getViewProjectionMatrix();
187 virtual void setViewProjectionMatrix(
const mat4Pimpl* viewProjectionMatrix);
232 static void logTextureCreation(
const String& name);
234 static void logTextureDestruction(
const String& name);
237 void initialiseMaxTextureSize();
240 void initialiseDisplaySizeWithViewportSize();
300 #if defined(_MSC_VER)
301 # pragma warning(pop)