TINYGL: Remove unused tglBlitNoBlend function

This commit is contained in:
Cameron Cawley 2023-03-02 17:08:44 +00:00
parent 9f13b979d6
commit f40c2ccfbd
5 changed files with 0 additions and 29 deletions

View File

@ -701,11 +701,6 @@ void tglBlit(TinyGL::BlitImage *blitImage, const TinyGL::BlitTransform &transfor
c->issueDrawCall(new TinyGL::BlittingDrawCall(blitImage, transform, TinyGL::BlittingDrawCall::BlitMode_Regular)); c->issueDrawCall(new TinyGL::BlittingDrawCall(blitImage, transform, TinyGL::BlittingDrawCall::BlitMode_Regular));
} }
void tglBlitNoBlend(TinyGL::BlitImage *blitImage, const TinyGL::BlitTransform &transform) {
TinyGL::GLContext *c = TinyGL::gl_get_context();
c->issueDrawCall(new TinyGL::BlittingDrawCall(blitImage, transform, TinyGL::BlittingDrawCall::BlitMode_NoBlend));
}
void tglBlitFast(TinyGL::BlitImage *blitImage, int x, int y) { void tglBlitFast(TinyGL::BlitImage *blitImage, int x, int y) {
TinyGL::GLContext *c = TinyGL::gl_get_context(); TinyGL::GLContext *c = TinyGL::gl_get_context();
TinyGL::BlitTransform transform(x, y); TinyGL::BlitTransform transform(x, y);
@ -778,16 +773,6 @@ void tglBlit(BlitImage *blitImage, const BlitTransform &transform) {
} }
} }
void tglBlitNoBlend(BlitImage *blitImage, const BlitTransform &transform) {
if (transform._flipHorizontally == false && transform._flipVertically == false) {
blitImage->tglBlitGeneric<true, false, false, false, false, false>(transform);
} else if(transform._flipHorizontally == false) {
blitImage->tglBlitGeneric<true, false, false, true, false, false>(transform);
} else {
blitImage->tglBlitGeneric<true, false, false, false, true, false>(transform);
}
}
void tglBlitFast(BlitImage *blitImage, int x, int y) { void tglBlitFast(BlitImage *blitImage, int x, int y) {
BlitTransform transform(x, y); BlitTransform transform(x, y);
blitImage->tglBlitGeneric<true, true, true, false, false, false>(transform); blitImage->tglBlitGeneric<true, true, true, false, false, false>(transform);

View File

@ -40,9 +40,6 @@ namespace Internal {
// Documentation for those is the same as the one before, only those function are the one that actually execute the correct code path. // Documentation for those is the same as the one before, only those function are the one that actually execute the correct code path.
void tglBlit(BlitImage *blitImage, const BlitTransform &transform); void tglBlit(BlitImage *blitImage, const BlitTransform &transform);
// Disables blending explicitly.
void tglBlitNoBlend(BlitImage *blitImage, const BlitTransform &transform);
// Disables blending, transforms and tinting. // Disables blending, transforms and tinting.
void tglBlitFast(BlitImage *blitImage, int x, int y); void tglBlitFast(BlitImage *blitImage, int x, int y);

View File

@ -136,13 +136,6 @@ void tglBlit(TinyGL::BlitImage *blitImage, const TinyGL::BlitTransform &transfor
*/ */
void tglBlit(TinyGL::BlitImage *blitImage, int x, int y); void tglBlit(TinyGL::BlitImage *blitImage, int x, int y);
/**
@brief Blits an image to the color buffer without performing any type of blending.
@param pointer to the blit image.
@param blit transform information.
*/
void tglBlitNoBlend(TinyGL::BlitImage *blitImage, const TinyGL::BlitTransform &transform);
/** /**
@brief Blits an image to the color buffer without performinc any type of blending, image transformation or tinting. @brief Blits an image to the color buffer without performinc any type of blending, image transformation or tinting.
@param pointer to the blit image. @param pointer to the blit image.

View File

@ -593,9 +593,6 @@ void BlittingDrawCall::execute(bool restoreState) const {
case BlittingDrawCall::BlitMode_Regular: case BlittingDrawCall::BlitMode_Regular:
Internal::tglBlit(_image, _transform); Internal::tglBlit(_image, _transform);
break; break;
case BlittingDrawCall::BlitMode_NoBlend:
Internal::tglBlitNoBlend(_image, _transform);
break;
case BlittingDrawCall::BlitMode_Fast: case BlittingDrawCall::BlitMode_Fast:
Internal::tglBlitFast(_image, _transform._destinationRectangle.left, _transform._destinationRectangle.top); Internal::tglBlitFast(_image, _transform._destinationRectangle.left, _transform._destinationRectangle.top);
break; break;

View File

@ -159,7 +159,6 @@ class BlittingDrawCall : public DrawCall {
public: public:
enum BlittingMode { enum BlittingMode {
BlitMode_Regular, BlitMode_Regular,
BlitMode_NoBlend,
BlitMode_Fast, BlitMode_Fast,
BlitMode_ZBuffer BlitMode_ZBuffer
}; };