ref: move RunLightstyles to ref_common

This commit is contained in:
Alibek Omarov
2026-04-12 22:12:50 +05:00
committed by a1batross
parent f5f6d9bbe4
commit 81abae65b5
9 changed files with 15 additions and 125 deletions

View File

@@ -28,6 +28,8 @@ extern ref_client_t *gp_cl;
extern ref_host_t *gp_host;
extern const ref_interface_t gReffuncs;
DECLARE_ENGINE_SHARED_CVAR_LIST()
#define Assert( x ) if( !( x )) gEngfuncs.Host_Error( "assert failed at %s:%i\n", __FILE__, __LINE__ )
#define ENGINE_GET_PARM_ (*gEngfuncs.EngineGetParm)
@@ -61,4 +63,9 @@ void Matrix4x4_CreateOrtho( matrix4x4 m, float xLeft, float xRight, float yBotto
void Matrix4x4_CreateModelview( matrix4x4 out );
void Matrix4x4_ToArrayFloatGL( const matrix4x4 in, float out[16] );
//
// ref_light.c
//
void CL_RunLightStyles_( lightstyle_t *ls, int *lightstylevalue );
#endif // REF_COMMON_H

View File

@@ -14,6 +14,9 @@ GNU General Public License for more details.
*/
#include "ref_common.h"
#include "com_strings.h"
DEFINE_ENGINE_SHARED_CVAR_LIST()
ref_api_t gEngfuncs;
ref_globals_t *gpGlobals;
@@ -65,5 +68,7 @@ int EXPORT GetRefAPI( int version, ref_interface_t *funcs, ref_api_t *engfuncs,
gp_cl = (ref_client_t *)ENGINE_GET_PARM( PARM_GET_CLIENT_PTR );
gp_host = (ref_host_t *)ENGINE_GET_PARM( PARM_GET_HOST_PTR );
RETRIEVE_ENGINE_SHARED_CVAR_LIST();
return REF_API_VERSION;
}

View File

@@ -14,6 +14,7 @@ def build(bld):
target = 'ref_common',
includes = '.',
export_includes = '.',
defines = 'REF_DLL=1',
use = 'engine_includes public werror',
subsystem = bld.env.MSVC_SUBSYSTEM
)