mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 01:45:19 +01:00
engine: remove gamma functions from RefAPI
This commit is contained in:
parent
2227e487c0
commit
b45bc9af67
@ -191,17 +191,6 @@ byte LightToTexGamma( byte b )
|
||||
return lightgammatable[b << 2] >> 2;
|
||||
}
|
||||
|
||||
uint LightToTexGammaEx( uint b )
|
||||
{
|
||||
if( FBitSet( host.features, ENGINE_LINEAR_GAMMA_SPACE ))
|
||||
return b;
|
||||
|
||||
if( unlikely( b >= ARRAYSIZE( lightgammatable )))
|
||||
return 0;
|
||||
|
||||
return lightgammatable[b];
|
||||
}
|
||||
|
||||
uint ScreenGammaTable( uint b )
|
||||
{
|
||||
if( FBitSet( host.features, ENGINE_LINEAR_GAMMA_SPACE ))
|
||||
|
@ -401,12 +401,6 @@ static const ref_api_t gEngfuncs =
|
||||
SW_LockBuffer,
|
||||
SW_UnlockBuffer,
|
||||
|
||||
LightToTexGamma,
|
||||
LightToTexGammaEx,
|
||||
TextureToGamma,
|
||||
ScreenGammaTable,
|
||||
LinearGammaTable,
|
||||
|
||||
CL_GetLightStyle,
|
||||
CL_GetDynamicLight,
|
||||
CL_GetEntityLight,
|
||||
|
@ -822,7 +822,6 @@ void S_StopAllSounds( qboolean ambient );
|
||||
// gamma routines
|
||||
byte LightToTexGamma( byte b );
|
||||
byte TextureToGamma( byte );
|
||||
uint LightToTexGammaEx( uint );
|
||||
uint ScreenGammaTable( uint );
|
||||
uint LinearGammaTable( uint );
|
||||
void V_Init( void );
|
||||
|
@ -426,13 +426,6 @@ typedef struct ref_api_s
|
||||
void *(*SW_LockBuffer)( void );
|
||||
void (*SW_UnlockBuffer)( void );
|
||||
|
||||
// gamma
|
||||
byte (*LightToTexGamma)( byte ); // software gamma support
|
||||
uint (*LightToTexGammaEx)( uint ); // software gamma support
|
||||
byte (*TextureToGamma)( byte );
|
||||
uint (*ScreenGammaTable)( uint );
|
||||
uint (*LinearGammaTable)( uint );
|
||||
|
||||
// renderapi
|
||||
lightstyle_t* (*GetLightStyle)( int number );
|
||||
dlight_t* (*GetDynamicLight)( int number );
|
||||
|
Loading…
Reference in New Issue
Block a user