Browse Source

ref: _inline -> static

pull/2/head
Alibek Omarov 1 year ago
parent
commit
ea55e78855
  1. 2
      ref/gl/gl_rsurf.c
  2. 20
      ref/gl/gl_studio.c
  3. 6
      ref/soft/r_studio.c

2
ref/gl/gl_rsurf.c

@ -875,7 +875,7 @@ void DrawGLPolyChain( glpoly_t *p, float soffset, float toffset ) @@ -875,7 +875,7 @@ void DrawGLPolyChain( glpoly_t *p, float soffset, float toffset )
}
}
_inline qboolean R_HasLightmap( void )
static qboolean R_HasLightmap( void )
{
if( r_fullbright->value || !WORLDMODEL->lightdata )
return false;

20
ref/gl/gl_studio.c

@ -1726,7 +1726,7 @@ static void R_LightLambert( vec4_t light[MAX_LOCALLIGHTS], const vec3_t normal, @@ -1726,7 +1726,7 @@ static void R_LightLambert( vec4_t light[MAX_LOCALLIGHTS], const vec3_t normal,
out[2] = Q_min( (int)( finalLight[2] ), 255 );
}
static void R_StudioSetColorArray(short *ptricmds, vec3_t *pstudionorms, byte *color )
static void R_StudioSetColorArray( short *ptricmds, vec3_t *pstudionorms, byte *color )
{
float *lv = (float *)g_studio.lightvalues[ptricmds[1]];
@ -1896,9 +1896,8 @@ R_StudioDrawNormalMesh @@ -1896,9 +1896,8 @@ R_StudioDrawNormalMesh
generic path
===============
*/
_inline void R_StudioDrawNormalMesh( short *ptricmds, vec3_t *pstudionorms, float s, float t )
static void R_StudioDrawNormalMesh( short *ptricmds, vec3_t *pstudionorms, float s, float t )
{
float *lv;
int i;
while(( i = *( ptricmds++ )))
@ -1929,9 +1928,8 @@ R_StudioDrawNormalMesh @@ -1929,9 +1928,8 @@ R_StudioDrawNormalMesh
generic path
===============
*/
_inline void R_StudioDrawFloatMesh( short *ptricmds, vec3_t *pstudionorms )
static void R_StudioDrawFloatMesh( short *ptricmds, vec3_t *pstudionorms )
{
float *lv;
int i;
while(( i = *( ptricmds++ )))
@ -1961,7 +1959,7 @@ R_StudioDrawNormalMesh @@ -1961,7 +1959,7 @@ R_StudioDrawNormalMesh
generic path
===============
*/
_inline void R_StudioDrawChromeMesh( short *ptricmds, vec3_t *pstudionorms, float s, float t, float scale )
static void R_StudioDrawChromeMesh( short *ptricmds, vec3_t *pstudionorms, float s, float t, float scale )
{
float *lv, *av;
int i, idx;
@ -2006,7 +2004,7 @@ _inline void R_StudioDrawChromeMesh( short *ptricmds, vec3_t *pstudionorms, floa @@ -2006,7 +2004,7 @@ _inline void R_StudioDrawChromeMesh( short *ptricmds, vec3_t *pstudionorms, floa
}
_inline int R_StudioBuildIndices( qboolean tri_strip, int vertexState )
static int R_StudioBuildIndices( qboolean tri_strip, int vertexState )
{
// build in indices
if( vertexState++ < 3 )
@ -2049,7 +2047,7 @@ R_StudioDrawNormalMesh @@ -2049,7 +2047,7 @@ R_StudioDrawNormalMesh
generic path
===============
*/
_inline void R_StudioBuildArrayNormalMesh( short *ptricmds, vec3_t *pstudionorms, float s, float t )
static void R_StudioBuildArrayNormalMesh( short *ptricmds, vec3_t *pstudionorms, float s, float t )
{
float *lv;
int i;
@ -2092,7 +2090,7 @@ R_StudioDrawNormalMesh @@ -2092,7 +2090,7 @@ R_StudioDrawNormalMesh
generic path
===============
*/
_inline void R_StudioBuildArrayFloatMesh( short *ptricmds, vec3_t *pstudionorms )
static void R_StudioBuildArrayFloatMesh( short *ptricmds, vec3_t *pstudionorms )
{
float *lv;
int i;
@ -2135,7 +2133,7 @@ R_StudioDrawNormalMesh @@ -2135,7 +2133,7 @@ R_StudioDrawNormalMesh
generic path
===============
*/
_inline void R_StudioBuildArrayChromeMesh( short *ptricmds, vec3_t *pstudionorms, float s, float t, float scale )
static void R_StudioBuildArrayChromeMesh( short *ptricmds, vec3_t *pstudionorms, float s, float t, float scale )
{
float *lv, *av;
int i, idx;
@ -2192,7 +2190,7 @@ _inline void R_StudioBuildArrayChromeMesh( short *ptricmds, vec3_t *pstudionorms @@ -2192,7 +2190,7 @@ _inline void R_StudioBuildArrayChromeMesh( short *ptricmds, vec3_t *pstudionorms
}
}
_inline void R_StudioDrawArrays( uint startverts, uint startelems )
static void R_StudioDrawArrays( uint startverts, uint startelems )
{
pglEnableClientState( GL_VERTEX_ARRAY );
pglVertexPointer( 3, GL_FLOAT, 12, g_studio.arrayverts );

6
ref/soft/r_studio.c

@ -1891,7 +1891,7 @@ R_StudioDrawNormalMesh @@ -1891,7 +1891,7 @@ R_StudioDrawNormalMesh
generic path
===============
*/
_inline void R_StudioDrawNormalMesh( short *ptricmds, vec3_t *pstudionorms, float s, float t )
static void R_StudioDrawNormalMesh( short *ptricmds, vec3_t *pstudionorms, float s, float t )
{
float *lv;
int i;
@ -1924,7 +1924,7 @@ R_StudioDrawNormalMesh @@ -1924,7 +1924,7 @@ R_StudioDrawNormalMesh
generic path
===============
*/
_inline void R_StudioDrawFloatMesh( short *ptricmds, vec3_t *pstudionorms )
static void R_StudioDrawFloatMesh( short *ptricmds, vec3_t *pstudionorms )
{
float *lv;
int i;
@ -1956,7 +1956,7 @@ R_StudioDrawNormalMesh @@ -1956,7 +1956,7 @@ R_StudioDrawNormalMesh
generic path
===============
*/
_inline void R_StudioDrawChromeMesh( short *ptricmds, vec3_t *pstudionorms, float s, float t, float scale )
static void R_StudioDrawChromeMesh( short *ptricmds, vec3_t *pstudionorms, float s, float t, float scale )
{
float *lv, *av;
int i, idx;

Loading…
Cancel
Save