summaryrefslogtreecommitdiff
path: root/src/normalopenglgraphics.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/normalopenglgraphics.h
parent3e6e18339748880c2038e1ea63ea36c540288f3c (diff)
downloadmanaverse-0f6fcf759a1a02c1dd8955971d54395e0d529244.tar.gz
manaverse-0f6fcf759a1a02c1dd8955971d54395e0d529244.tar.bz2
manaverse-0f6fcf759a1a02c1dd8955971d54395e0d529244.tar.xz
manaverse-0f6fcf759a1a02c1dd8955971d54395e0d529244.zip
switch to hardware depend batch sizes.
but limit max batch size to 1024.
Diffstat (limited to 'src/normalopenglgraphics.h')
-rw-r--r--src/normalopenglgraphics.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/normalopenglgraphics.h b/src/normalopenglgraphics.h
index 972656cc4..29ef6a13b 100644
--- a/src/normalopenglgraphics.h
+++ b/src/normalopenglgraphics.h
@@ -130,6 +130,8 @@ class NormalOpenGLGraphics : public Graphics
void drawLineArrayf(int size);
+ void initArrays();
+
static void dumpSettings();
/**
@@ -179,7 +181,7 @@ class NormalOpenGLGraphics : public Graphics
bool mIsByteColor;
gcn::Color mByteColor;
float mFloatColor;
-
+ int mMaxVertices;
bool mColorAlpha;
FBOInfo mFbo;
#ifdef DEBUG_BIND_TEXTURE
@@ -189,4 +191,6 @@ class NormalOpenGLGraphics : public Graphics
};
#endif
+extern unsigned int vertexBufSize;
+
#endif