diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-12 22:43:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-12 22:43:41 +0300 |
commit | bcb340f51ca2d69fd062d6548ef283303d43d9ac (patch) | |
tree | b952e8beb18f615f25ad4e0a075e561fc80c55a7 /src/graphicsvertexes.cpp | |
parent | 720dbe1e5a90adb66ada166090e34a571e24ff0a (diff) | |
download | manaverse-bcb340f51ca2d69fd062d6548ef283303d43d9ac.tar.gz manaverse-bcb340f51ca2d69fd062d6548ef283303d43d9ac.tar.bz2 manaverse-bcb340f51ca2d69fd062d6548ef283303d43d9ac.tar.xz manaverse-bcb340f51ca2d69fd062d6548ef283303d43d9ac.zip |
Rename NormalOpenGLGraphicsVertexes into OpenGLGraphicsVertexes.
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r-- | src/graphicsvertexes.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp index f15a16d9a..7b3e66f98 100644 --- a/src/graphicsvertexes.cpp +++ b/src/graphicsvertexes.cpp @@ -40,7 +40,7 @@ SDLGraphicsVertexes::~SDLGraphicsVertexes() } #ifdef USE_OPENGL -NormalOpenGLGraphicsVertexes::NormalOpenGLGraphicsVertexes() : +OpenGLGraphicsVertexes::OpenGLGraphicsVertexes() : ptr(0), mFloatTexArray(nullptr), mIntTexArray(nullptr), @@ -59,12 +59,12 @@ NormalOpenGLGraphicsVertexes::NormalOpenGLGraphicsVertexes() : mVp.reserve(30); } -NormalOpenGLGraphicsVertexes::~NormalOpenGLGraphicsVertexes() +OpenGLGraphicsVertexes::~OpenGLGraphicsVertexes() { clear(); } -void NormalOpenGLGraphicsVertexes::clear() +void OpenGLGraphicsVertexes::clear() { for (std::vector<GLfloat*>::iterator it = mFloatTexPool.begin(); it != mFloatTexPool.end(); ++ it) @@ -109,45 +109,45 @@ void NormalOpenGLGraphicsVertexes::clear() } } -void NormalOpenGLGraphicsVertexes::init() +void OpenGLGraphicsVertexes::init() { clear(); } -GLfloat *NormalOpenGLGraphicsVertexes::switchFloatTexArray() +GLfloat *OpenGLGraphicsVertexes::switchFloatTexArray() { mFloatTexArray = new GLfloat[static_cast<size_t>(vertexBufSize * 4 + 30)]; mFloatTexPool.push_back(mFloatTexArray); return mFloatTexArray; } -GLint *NormalOpenGLGraphicsVertexes::switchIntVertArray() +GLint *OpenGLGraphicsVertexes::switchIntVertArray() { mIntVertArray = new GLint[static_cast<size_t>(vertexBufSize * 4 + 30)]; mIntVertPool.push_back(mIntVertArray); return mIntVertArray; } -GLshort *NormalOpenGLGraphicsVertexes::switchShortVertArray() +GLshort *OpenGLGraphicsVertexes::switchShortVertArray() { mShortVertArray = new GLshort[static_cast<size_t>(vertexBufSize * 4 + 30)]; mShortVertPool.push_back(mShortVertArray); return mShortVertArray; } -GLint *NormalOpenGLGraphicsVertexes::switchIntTexArray() +GLint *OpenGLGraphicsVertexes::switchIntTexArray() { mIntTexArray = new GLint[static_cast<size_t>(vertexBufSize * 4 + 30)]; mIntTexPool.push_back(mIntTexArray); return mIntTexArray; } -void NormalOpenGLGraphicsVertexes::switchVp(const int n) +void OpenGLGraphicsVertexes::switchVp(const int n) { mVp.push_back(n); } -int NormalOpenGLGraphicsVertexes::continueVp() +int OpenGLGraphicsVertexes::continueVp() { if (mVp.empty()) { @@ -161,14 +161,14 @@ int NormalOpenGLGraphicsVertexes::continueVp() } } -void NormalOpenGLGraphicsVertexes::updateVp(const int n) +void OpenGLGraphicsVertexes::updateVp(const int n) { if (!mVp.empty()) mVp.pop_back(); mVp.push_back(n); } -GLfloat *NormalOpenGLGraphicsVertexes::continueFloatTexArray() +GLfloat *OpenGLGraphicsVertexes::continueFloatTexArray() { if (mFloatTexPool.empty()) { @@ -183,7 +183,7 @@ GLfloat *NormalOpenGLGraphicsVertexes::continueFloatTexArray() return mFloatTexArray; } -GLint *NormalOpenGLGraphicsVertexes::continueIntVertArray() +GLint *OpenGLGraphicsVertexes::continueIntVertArray() { if (mIntVertPool.empty()) { @@ -197,7 +197,7 @@ GLint *NormalOpenGLGraphicsVertexes::continueIntVertArray() return mIntVertArray; } -GLshort *NormalOpenGLGraphicsVertexes::continueShortVertArray() +GLshort *OpenGLGraphicsVertexes::continueShortVertArray() { if (mShortVertPool.empty()) { @@ -212,7 +212,7 @@ GLshort *NormalOpenGLGraphicsVertexes::continueShortVertArray() return mShortVertArray; } -GLint *NormalOpenGLGraphicsVertexes::continueIntTexArray() +GLint *OpenGLGraphicsVertexes::continueIntTexArray() { if (mIntTexPool.empty()) { |