mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 02:10:28 +00:00
TINYGL: Moved some functions inside TinyGL namespace
This commit is contained in:
parent
b83dc09f84
commit
7b3f0850b8
@ -179,7 +179,7 @@ void GfxTinyGL::clearDepthBuffer() {
|
||||
}
|
||||
|
||||
void GfxTinyGL::flipBuffer() {
|
||||
tglPresentBuffer();
|
||||
TinyGL::tglPresentBuffer();
|
||||
g_system->updateScreen();
|
||||
}
|
||||
|
||||
|
@ -350,7 +350,7 @@ void TinyGLRenderer::screenPosToDirection(const Common::Point screen, float &pit
|
||||
}
|
||||
|
||||
void TinyGLRenderer::flipBuffer() {
|
||||
tglPresentBuffer();
|
||||
TinyGL::tglPresentBuffer();
|
||||
}
|
||||
|
||||
} // End of namespace Myst3
|
||||
|
@ -814,6 +814,10 @@ void tglPolygonOffset(TGLfloat factor, TGLfloat units);
|
||||
|
||||
void tglDebug(int mode);
|
||||
|
||||
namespace TinyGL {
|
||||
|
||||
void tglPresentBuffer();
|
||||
|
||||
} // end of namespace TinyGL
|
||||
|
||||
#endif
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user