mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
TINYGL: Remove unused tglBlitNoBlend function
This commit is contained in:
parent
9f13b979d6
commit
f40c2ccfbd
@ -701,11 +701,6 @@ void tglBlit(TinyGL::BlitImage *blitImage, const TinyGL::BlitTransform &transfor
|
||||
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) {
|
||||
TinyGL::GLContext *c = TinyGL::gl_get_context();
|
||||
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) {
|
||||
BlitTransform transform(x, y);
|
||||
blitImage->tglBlitGeneric<true, true, true, false, false, false>(transform);
|
||||
|
@ -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.
|
||||
void tglBlit(BlitImage *blitImage, const BlitTransform &transform);
|
||||
|
||||
// Disables blending explicitly.
|
||||
void tglBlitNoBlend(BlitImage *blitImage, const BlitTransform &transform);
|
||||
|
||||
// Disables blending, transforms and tinting.
|
||||
void tglBlitFast(BlitImage *blitImage, int x, int y);
|
||||
|
||||
|
@ -136,13 +136,6 @@ void tglBlit(TinyGL::BlitImage *blitImage, const TinyGL::BlitTransform &transfor
|
||||
*/
|
||||
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.
|
||||
@param pointer to the blit image.
|
||||
|
@ -593,9 +593,6 @@ void BlittingDrawCall::execute(bool restoreState) const {
|
||||
case BlittingDrawCall::BlitMode_Regular:
|
||||
Internal::tglBlit(_image, _transform);
|
||||
break;
|
||||
case BlittingDrawCall::BlitMode_NoBlend:
|
||||
Internal::tglBlitNoBlend(_image, _transform);
|
||||
break;
|
||||
case BlittingDrawCall::BlitMode_Fast:
|
||||
Internal::tglBlitFast(_image, _transform._destinationRectangle.left, _transform._destinationRectangle.top);
|
||||
break;
|
||||
|
@ -159,7 +159,6 @@ class BlittingDrawCall : public DrawCall {
|
||||
public:
|
||||
enum BlittingMode {
|
||||
BlitMode_Regular,
|
||||
BlitMode_NoBlend,
|
||||
BlitMode_Fast,
|
||||
BlitMode_ZBuffer
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user