2
0
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:
Alibek Omarov 2024-11-02 22:26:27 +03:00
parent 2227e487c0
commit b45bc9af67
4 changed files with 0 additions and 25 deletions

View File

@ -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 ))

View File

@ -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,

View File

@ -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 );

View File

@ -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 );