summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-09 13:09:20 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-11 00:20:47 +0300
commit0f6fcf759a1a02c1dd8955971d54395e0d529244 (patch)
tree1ed3705938a7c9c61b81c0d1b9019949cf6bef6d /src/graphicsmanager.h
parent3e6e18339748880c2038e1ea63ea36c540288f3c (diff)
downloadmv-0f6fcf759a1a02c1dd8955971d54395e0d529244.tar.gz
mv-0f6fcf759a1a02c1dd8955971d54395e0d529244.tar.bz2
mv-0f6fcf759a1a02c1dd8955971d54395e0d529244.tar.xz
mv-0f6fcf759a1a02c1dd8955971d54395e0d529244.zip
switch to hardware depend batch sizes.
but limit max batch size to 1024.
Diffstat (limited to 'src/graphicsmanager.h')
-rw-r--r--src/graphicsmanager.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/graphicsmanager.h b/src/graphicsmanager.h
index 9abc3bf23..0ee79cb25 100644
--- a/src/graphicsmanager.h
+++ b/src/graphicsmanager.h
@@ -67,8 +67,15 @@ class GraphicsManager
void updatePlanformExtensions();
+ void initOpenGL();
+
+ void updateLimits();
+
Graphics *createGraphics();
+ int getMaxVertices()
+ { return mMaxVertices; }
+
private:
std::set<std::string> mExtensions;
@@ -83,6 +90,8 @@ class GraphicsManager
int mPlatformMinor;
int mPlatformMajor;
+
+ int mMaxVertices;
};
extern GraphicsManager graphicsManager;