TINYGL: Moved some functions inside TinyGL namespace

This commit is contained in:
Stefano Musumeci 2014-08-09 12:10:26 +02:00
parent b83dc09f84
commit 7b3f0850b8
4 changed files with 8 additions and 5 deletions

View File

@ -179,7 +179,7 @@ void GfxTinyGL::clearDepthBuffer() {
}
void GfxTinyGL::flipBuffer() {
tglPresentBuffer();
TinyGL::tglPresentBuffer();
g_system->updateScreen();
}

View File

@ -350,7 +350,7 @@ void TinyGLRenderer::screenPosToDirection(const Common::Point screen, float &pit
}
void TinyGLRenderer::flipBuffer() {
tglPresentBuffer();
TinyGL::tglPresentBuffer();
}
} // End of namespace Myst3

View File

@ -814,6 +814,10 @@ void tglPolygonOffset(TGLfloat factor, TGLfloat units);
void tglDebug(int mode);
namespace TinyGL {
void tglPresentBuffer();
} // end of namespace TinyGL
#endif

View File

@ -10,9 +10,6 @@ void tglIssueDrawCall(Graphics::DrawCall *drawCall) {
c->_drawCallsQueue.push_back(drawCall);
}
} // end of namespace TinyGL
void tglDrawRectangle(Common::Rect rect, int r, int g, int b) {
TinyGL::GLContext *c = TinyGL::gl_get_context();
@ -218,6 +215,8 @@ void tglPresentBuffer() {
}
}
} // end of namespace TinyGL
namespace Graphics {
DrawCall::DrawCall(DrawCallType type) : _type(type) {