From 0f6fcf759a1a02c1dd8955971d54395e0d529244 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Sep 2012 13:09:20 +0300 Subject: switch to hardware depend batch sizes. but limit max batch size to 1024. --- src/normalopenglgraphics.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/normalopenglgraphics.h') 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 -- cgit v1.2.3-60-g2f50