diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-23 12:07:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-23 12:08:54 +0300 |
commit | 906332df8779bca71641c6bcdc84d04a1de6d2eb (patch) | |
tree | 3571dab23663919ed9c6536c19ba14e850ab4581 /src/render/nullopenglgraphics.cpp | |
parent | dee232be436909e84a39e9bc3e8949dbaba38e05 (diff) | |
download | manaverse-906332df8779bca71641c6bcdc84d04a1de6d2eb.tar.gz manaverse-906332df8779bca71641c6bcdc84d04a1de6d2eb.tar.bz2 manaverse-906332df8779bca71641c6bcdc84d04a1de6d2eb.tar.xz manaverse-906332df8779bca71641c6bcdc84d04a1de6d2eb.zip |
Add functions for resize batch size (OpenGL).
Diffstat (limited to 'src/render/nullopenglgraphics.cpp')
-rw-r--r-- | src/render/nullopenglgraphics.cpp | 8 |
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, |