summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-28 15:22:00 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-28 15:22:00 +0300
commit096de2a656c036a241dd5f10c2bf28ae4d4dbe5a (patch)
treed79c67e9c78c87be1776334bc4a7cc00e427ba94 /src/graphicsmanager.h
parenta53a7ddf1fb503d6158aea6518f9d5f81bee7b5d (diff)
downloadplus-096de2a656c036a241dd5f10c2bf28ae4d4dbe5a.tar.gz
plus-096de2a656c036a241dd5f10c2bf28ae4d4dbe5a.tar.bz2
plus-096de2a656c036a241dd5f10c2bf28ae4d4dbe5a.tar.xz
plus-096de2a656c036a241dd5f10c2bf28ae4d4dbe5a.zip
improve some files.
Diffstat (limited to 'src/graphicsmanager.h')
-rw-r--r--src/graphicsmanager.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/graphicsmanager.h b/src/graphicsmanager.h
index aab63c0d5..4efcf98af 100644
--- a/src/graphicsmanager.h
+++ b/src/graphicsmanager.h
@@ -58,7 +58,7 @@ class GraphicsManager final
virtual ~GraphicsManager();
- void initGraphics(bool noOpenGL);
+ void initGraphics(const bool noOpenGL);
void setVideoMode();
@@ -71,17 +71,20 @@ class GraphicsManager final
int detectGraphics() A_WARN_UNUSED;
- bool supportExtension(const std::string &ext) A_WARN_UNUSED;
+ bool supportExtension(const std::string &ext) const A_WARN_UNUSED;
void updateTextureFormat();
- bool checkGLVersion(int major, int minor) const A_WARN_UNUSED;
+ bool checkGLVersion(const int major, const int minor)
+ const A_WARN_UNUSED;
- bool checkPlatformVersion(int major, int minor) const A_WARN_UNUSED;
+ bool checkPlatformVersion(const int major, const int minor)
+ const A_WARN_UNUSED;
- void createFBO(int width, int height, FBOInfo *fbo);
+ static void createFBO(const int width, const int height,
+ FBOInfo *const fbo);
- void deleteFBO(FBOInfo *fbo);
+ static void deleteFBO(FBOInfo *const fbo);
void initOpenGLFunctions();
@@ -99,13 +102,13 @@ class GraphicsManager final
bool getUseAtlases() const A_WARN_UNUSED
{ return mUseAtlases; }
- void logVersion();
+ void logVersion() const;
void setGLVersion();
- std::string getGLString(int num) const A_WARN_UNUSED;
+ static std::string getGLString(const int num) A_WARN_UNUSED;
- void logString(const char *format, int num);
+ static void logString(const char *const format, const int num);
void detectVideoSettings();
@@ -114,11 +117,11 @@ class GraphicsManager final
bool isUseTextureSampler() const A_WARN_UNUSED
{ return mUseTextureSampler; }
- GLenum getLastError() A_WARN_UNUSED;
+ static GLenum getLastError() A_WARN_UNUSED;
- static std::string errorToString(GLenum error) A_WARN_UNUSED;
+ static std::string errorToString(const GLenum error) A_WARN_UNUSED;
- void updateDebugLog();
+ void updateDebugLog() const;
#endif
private: