22 #ifndef GRAPHICSMANAGER_H
23 #define GRAPHICSMANAGER_H
32 #define GL_GLEXT_PROTOTYPES 1
38 PRAGMA48(GCC diagnostic ignored
"-Wshadow")
41 PRAGMA45(GCC diagnostic ignored
"-Wredundant-decls")
42 #include <SDL_opengl.h>
47 PRAGMA45(GCC diagnostic ignored
"-Wredundant-decls")
52 #undef GL_GLEXT_VERSION
53 #undef GL_GLEXT_PROTOTYPES
90 const int bpp,
const int flags);
93 SDL_Renderer *createRenderer(
SDL_Window *
const window,
129 static
void createFBO(const
int width, const
int height,
132 static
void deleteFBO(FBOInfo *const fbo);
156 static void logString(
const char *
const format,
bool checkPlatformVersion(const int major, const int minor) const
static GLenum getLastError()
std::set< std::string > mPlatformExtensions
static void resetCachedError()
std::string getDensityString() const
static void deleteFBO(FBOInfo *const fbo)
std::string getGLVersion() const
static void updateTextureFormat()
static void deleteRenderers()
bool checkGLVersion(const int major, const int minor) const
void initOpenGLFunctions()
static std::string getGLString(const int num)
static void createFBO(const int width, const int height, FBOInfo *const fbo)
void createTextureSampler()
static GLenum getLastErrorCached()
static void logString(const char *const format, const int num)
bool supportExtension(const std::string &ext) const
std::string mGlVersionString
void updateTextureCompressionFormat() const
static SDL_Surface * createWindow(const int w, const int h, const int bpp, const int flags)
void detectVideoSettings()
void updatePlanformExtensions()
bool getAllVideoModes(StringVect &modeList)
void updateDebugLog() const
bool getUseAtlases() const
bool isUseTextureSampler() const
static void setVideoMode()
bool checkGLesVersion(const int major, const int minor) const
static std::string errorToString(const GLenum error)
std::set< std::string > mExtensions
int getMaxVertices() const
TestMain * startDetection()
bool mSupportModernOpengl
bool checkSLVersion(const int major, const int minor) const
std::string mGlShaderVersionString
GraphicsManager graphicsManager
PRAGMA45(GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") PRAGMA45(GCC diagnostic pop) class TestMain
#define A_DELETE_COPY(func)
bool error(InputEvent &event) __attribute__((noreturn))
std::vector< std::string > StringVect