TINYGL: renamed glIssueDrawCall to tglIssueDrawCall.

This commit is contained in:
Stefano Musumeci 2014-08-07 17:38:11 +02:00
parent 5ae16bd1fe
commit 75ea6893ef
5 changed files with 9 additions and 9 deletions

View file

@ -21,7 +21,7 @@ void glopClear(GLContext *c, GLParam *p) {
// TODO : correct value of Z
glIssueDrawCall(new Graphics::ClearBufferDrawCall(mask & TGL_DEPTH_BUFFER_BIT, z, mask & TGL_COLOR_BUFFER_BIT, r, g, b));
tglIssueDrawCall(new Graphics::ClearBufferDrawCall(mask & TGL_DEPTH_BUFFER_BIT, z, mask & TGL_COLOR_BUFFER_BIT, r, g, b));
}
} // end of namespace TinyGL

View file

@ -229,7 +229,7 @@ void glopEnd(GLContext *c, GLParam *) {
assert(c->in_begin == 1);
if (c->vertex_cnt > 0) {
glIssueDrawCall(new Graphics::RasterizationDrawCall());
tglIssueDrawCall(new Graphics::RasterizationDrawCall());
}
c->in_begin = 0;

View file

@ -530,25 +530,25 @@ FORCEINLINE void BlitImage::tglBlitRotoScale(int dstX, int dstY, int width, int
void tglBlit(BlitImage *blitImage, int x, int y) {
BlitTransform transform(x, y);
TinyGL::glIssueDrawCall(new BlittingDrawCall(blitImage, transform, BlittingDrawCall::BlitMode_Regular));
TinyGL::tglIssueDrawCall(new BlittingDrawCall(blitImage, transform, BlittingDrawCall::BlitMode_Regular));
}
void tglBlit(BlitImage *blitImage, const BlitTransform &transform) {
TinyGL::glIssueDrawCall(new BlittingDrawCall(blitImage, transform, BlittingDrawCall::BlitMode_Regular));
TinyGL::tglIssueDrawCall(new BlittingDrawCall(blitImage, transform, BlittingDrawCall::BlitMode_Regular));
}
void tglBlitNoBlend(BlitImage *blitImage, const BlitTransform &transform) {
TinyGL::glIssueDrawCall(new BlittingDrawCall(blitImage, transform, BlittingDrawCall::BlitMode_NoBlend));
TinyGL::tglIssueDrawCall(new BlittingDrawCall(blitImage, transform, BlittingDrawCall::BlitMode_NoBlend));
}
void tglBlitFast(BlitImage *blitImage, int x, int y) {
BlitTransform transform(x, y);
TinyGL::glIssueDrawCall(new BlittingDrawCall(blitImage, transform, BlittingDrawCall::BlitMode_Fast));
TinyGL::tglIssueDrawCall(new BlittingDrawCall(blitImage, transform, BlittingDrawCall::BlitMode_Fast));
}
void tglBlitZBuffer(BlitImage *blitImage, int x, int y) {
BlitTransform transform(x, y);
TinyGL::glIssueDrawCall(new BlittingDrawCall(blitImage, transform, BlittingDrawCall::BlitMode_ZBuffer));
TinyGL::tglIssueDrawCall(new BlittingDrawCall(blitImage, transform, BlittingDrawCall::BlitMode_ZBuffer));
}

View file

@ -375,7 +375,7 @@ void gl_resizeImage(unsigned char *dest, int xsize_dest, int ysize_dest,
void gl_resizeImageNoInterpolate(unsigned char *dest, int xsize_dest, int ysize_dest,
unsigned char *src, int xsize_src, int ysize_src);
void glIssueDrawCall(Graphics::DrawCall *drawCall);
void tglIssueDrawCall(Graphics::DrawCall *drawCall);
GLContext *gl_get_context();

View file

@ -5,7 +5,7 @@
namespace TinyGL {
void glIssueDrawCall(Graphics::DrawCall *drawCall) {
void tglIssueDrawCall(Graphics::DrawCall *drawCall) {
TinyGL::GLContext *c = TinyGL::gl_get_context();
c->_drawCallsQueue.push_back(drawCall);
}