engine: remove gamma functions from RefAPI
This commit is contained in:
parent
2227e487c0
commit
b45bc9af67
4 changed files with 0 additions and 25 deletions
|
@ -191,17 +191,6 @@ byte LightToTexGamma( byte b )
|
||||||
return lightgammatable[b << 2] >> 2;
|
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 )
|
uint ScreenGammaTable( uint b )
|
||||||
{
|
{
|
||||||
if( FBitSet( host.features, ENGINE_LINEAR_GAMMA_SPACE ))
|
if( FBitSet( host.features, ENGINE_LINEAR_GAMMA_SPACE ))
|
||||||
|
|
|
@ -401,12 +401,6 @@ static const ref_api_t gEngfuncs =
|
||||||
SW_LockBuffer,
|
SW_LockBuffer,
|
||||||
SW_UnlockBuffer,
|
SW_UnlockBuffer,
|
||||||
|
|
||||||
LightToTexGamma,
|
|
||||||
LightToTexGammaEx,
|
|
||||||
TextureToGamma,
|
|
||||||
ScreenGammaTable,
|
|
||||||
LinearGammaTable,
|
|
||||||
|
|
||||||
CL_GetLightStyle,
|
CL_GetLightStyle,
|
||||||
CL_GetDynamicLight,
|
CL_GetDynamicLight,
|
||||||
CL_GetEntityLight,
|
CL_GetEntityLight,
|
||||||
|
|
|
@ -822,7 +822,6 @@ void S_StopAllSounds( qboolean ambient );
|
||||||
// gamma routines
|
// gamma routines
|
||||||
byte LightToTexGamma( byte b );
|
byte LightToTexGamma( byte b );
|
||||||
byte TextureToGamma( byte );
|
byte TextureToGamma( byte );
|
||||||
uint LightToTexGammaEx( uint );
|
|
||||||
uint ScreenGammaTable( uint );
|
uint ScreenGammaTable( uint );
|
||||||
uint LinearGammaTable( uint );
|
uint LinearGammaTable( uint );
|
||||||
void V_Init( void );
|
void V_Init( void );
|
||||||
|
|
|
@ -426,13 +426,6 @@ typedef struct ref_api_s
|
||||||
void *(*SW_LockBuffer)( void );
|
void *(*SW_LockBuffer)( void );
|
||||||
void (*SW_UnlockBuffer)( 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
|
// renderapi
|
||||||
lightstyle_t* (*GetLightStyle)( int number );
|
lightstyle_t* (*GetLightStyle)( int number );
|
||||||
dlight_t* (*GetDynamicLight)( int number );
|
dlight_t* (*GetDynamicLight)( int number );
|
||||||
|
|
Loading…
Add table
Reference in a new issue