summaryrefslogtreecommitdiff
path: root/src/render/nullopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-23 12:07:25 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-23 12:08:54 +0300
commit906332df8779bca71641c6bcdc84d04a1de6d2eb (patch)
tree3571dab23663919ed9c6536c19ba14e850ab4581 /src/render/nullopenglgraphics.cpp
parentdee232be436909e84a39e9bc3e8949dbaba38e05 (diff)
downloadplus-906332df8779bca71641c6bcdc84d04a1de6d2eb.tar.gz
plus-906332df8779bca71641c6bcdc84d04a1de6d2eb.tar.bz2
plus-906332df8779bca71641c6bcdc84d04a1de6d2eb.tar.xz
plus-906332df8779bca71641c6bcdc84d04a1de6d2eb.zip
Add functions for resize batch size (OpenGL).
Diffstat (limited to 'src/render/nullopenglgraphics.cpp')
-rw-r--r--src/render/nullopenglgraphics.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/render/nullopenglgraphics.cpp b/src/render/nullopenglgraphics.cpp
index ca6fa1660..4498ed9c6 100644
--- a/src/render/nullopenglgraphics.cpp
+++ b/src/render/nullopenglgraphics.cpp
@@ -71,9 +71,9 @@ NullOpenGLGraphics::~NullOpenGLGraphics()
delete [] mIntVertArray;
}
-void NullOpenGLGraphics::initArrays()
+void NullOpenGLGraphics::initArrays(const int vertCount)
{
- mMaxVertices = graphicsManager.getMaxVertices();
+ mMaxVertices = vertCount;
if (mMaxVertices < 500)
mMaxVertices = 500;
else if (mMaxVertices > 1024)
@@ -90,6 +90,10 @@ void NullOpenGLGraphics::initArrays()
mIntVertArray = new GLint[sz];
}
+void NullOpenGLGraphics::deleteArrays()
+{
+}
+
bool NullOpenGLGraphics::setVideoMode(const int w, const int h,
const int scale,
const int bpp,