diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-06 21:06:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-06 21:06:21 +0300 |
commit | ad02b24b25f565a274ff8ec8408acefc1c232e12 (patch) | |
tree | b6e1e935fdfab13cae4451a12c59b014a1d8c4a6 /src/graphicsvertexes.cpp | |
parent | 6cd4c1a2b02726766ad0d5317013ba2e1314c127 (diff) | |
download | manaplus-ad02b24b25f565a274ff8ec8408acefc1c232e12.tar.gz manaplus-ad02b24b25f565a274ff8ec8408acefc1c232e12.tar.bz2 manaplus-ad02b24b25f565a274ff8ec8408acefc1c232e12.tar.xz manaplus-ad02b24b25f565a274ff8ec8408acefc1c232e12.zip |
Remove unused drawing class.
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r-- | src/graphicsvertexes.cpp | 62 |
1 files changed, 5 insertions, 57 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp index 3ad522d79..2f4a42bee 100644 --- a/src/graphicsvertexes.cpp +++ b/src/graphicsvertexes.cpp @@ -26,7 +26,7 @@ #ifdef USE_OPENGL unsigned int vertexBufSize = 500; -int GraphicsVertexes::mUseOpenGL = 0; +//int GraphicsVertexes::mUseOpenGL = 0; #endif SDLGraphicsVertexes::SDLGraphicsVertexes() @@ -216,64 +216,12 @@ GLint *NormalOpenGLGraphicsVertexes::continueIntTexArray() } #endif -GraphicsVertexes::GraphicsVertexes() : - mX(0), mY(0), - mW(0), mH(0), - mPtr(0) -{ -} - -GraphicsVertexes::~GraphicsVertexes() -{ -} - -void GraphicsVertexes::init(const int x, const int y, const int w, const int h) -{ - mPtr = 0; - mX = x; - mY = y; - mW = w; - mH = h; - for (int f = 0; f < 10; f ++) - { - delete_all(sdl[mPtr].mList); - sdl[mPtr].mList.clear(); #ifdef USE_OPENGL - ogl[mPtr].init(); +//void GraphicsVertexes::setLoadAsOpenGL(int useOpenGL) +//{ +// mUseOpenGL = useOpenGL; +//} #endif - } -} - -#ifdef USE_OPENGL -void GraphicsVertexes::setLoadAsOpenGL(int useOpenGL) -{ - mUseOpenGL = useOpenGL; -} -#endif - -void GraphicsVertexes::pushSDL(const SDL_Rect &r1, const SDL_Rect &r2) -{ - DoubleRect *const r = new DoubleRect(); - r->src = r1; - r->dst = r2; - sdl[mPtr].mList.push_back(r); -} - -void GraphicsVertexes::clearSDL() -{ - delete_all(sdl[mPtr].mList); - sdl[mPtr].mList.clear(); -} - -std::vector<DoubleRect*> *GraphicsVertexes::getRectsSDL() -{ - return &sdl[mPtr].mList; -} - -const std::vector<DoubleRect*> *GraphicsVertexes::getRectsSDLconst() const -{ - return &sdl[mPtr].mList; -} ImageVertexes::ImageVertexes() : image(nullptr) |