mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Removed old fixed function code from GFX.
This commit is contained in:
parent
58d2e30af7
commit
5a933c00d3
53 changed files with 98 additions and 1646 deletions
|
|
@ -882,20 +882,8 @@ U8 GBitmap::getChanelValueAt(U32 x, U32 y, U32 chan)
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
bool GBitmap::combine( const GBitmap *bitmapA, const GBitmap *bitmapB, const GFXTextureOp combineOp )
|
||||
bool GBitmap::combine( const GBitmap *bitmapA, const GBitmap *bitmapB, const TextureOp combineOp )
|
||||
{
|
||||
// Check valid texture ops
|
||||
switch( combineOp )
|
||||
{
|
||||
case GFXTOPAdd:
|
||||
case GFXTOPSubtract:
|
||||
break;
|
||||
|
||||
default:
|
||||
Con::errorf( "GBitmap::combine - Invalid op type" );
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check bitmapA format
|
||||
switch( bitmapA->getFormat() )
|
||||
{
|
||||
|
|
@ -970,11 +958,11 @@ bool GBitmap::combine( const GBitmap *bitmapA, const GBitmap *bitmapB, const GFX
|
|||
// Combine them (clamp values 0-U8_MAX)
|
||||
switch( combineOp )
|
||||
{
|
||||
case GFXTOPAdd:
|
||||
case Add:
|
||||
*destBits++ = getMin( U8( pxA + pxB ), U8_MAX );
|
||||
break;
|
||||
|
||||
case GFXTOPSubtract:
|
||||
case Subtract:
|
||||
*destBits++ = getMax( U8( pxA - pxB ), U8( 0 ) );
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue