mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-09 13:51:45 +08:00
engine: client: move cl_spray.c only external function declaration to client.h, move other definitions to cl_spray.c
This commit is contained in:
@@ -16,7 +16,12 @@ GNU General Public License for more details.
|
||||
#include "common.h"
|
||||
#include "filesystem.h"
|
||||
#include "imagelib.h"
|
||||
#include "cl_spray.h"
|
||||
|
||||
#define SPRAY_MAX_SURFACE 12228
|
||||
#define SPRAY_PALETTE_SIZE 256
|
||||
#define SPRAY_PALETTE_BYTES ( SPRAY_PALETTE_SIZE * 3 )
|
||||
#define SPRAY_ALPHA_THRESHOLD 254
|
||||
#define SPRAY_FILENAME "tempdecal.wad"
|
||||
|
||||
// adjusts spray dimensions
|
||||
static void CL_AdjustSprayDimensions( int *width, int *height )
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
/*
|
||||
cl_spray.h - spray conversion for GoldSrc protocol
|
||||
Copyright (C) 2025 Xash3D FWGS contributors
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef CL_SPRAY_H
|
||||
#define CL_SPRAY_H
|
||||
|
||||
// constants
|
||||
#define SPRAY_MAX_SURFACE 12228
|
||||
#define SPRAY_PALETTE_SIZE 256
|
||||
#define SPRAY_PALETTE_BYTES ( SPRAY_PALETTE_SIZE * 3 )
|
||||
#define SPRAY_FILENAME "tempdecal.wad"
|
||||
#define SPRAY_ALPHA_THRESHOLD 254
|
||||
|
||||
qboolean CL_ConvertImageToWAD3( const char *filename );
|
||||
|
||||
#endif // CL_SPRAY_H
|
||||
@@ -1050,6 +1050,11 @@ lightstyle_t *CL_GetLightStyle( int number );
|
||||
int R_FatPVS( const vec3_t org, float radius, byte *visbuffer, qboolean merge, qboolean fullvis );
|
||||
const ref_overview_t *GL_GetOverviewParms( void );
|
||||
|
||||
//
|
||||
// cl_spray.c
|
||||
//
|
||||
qboolean CL_ConvertImageToWAD3( const char *filename );
|
||||
|
||||
//
|
||||
// cl_efrag.c
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user