make some functions static (#4014)
This commit is contained in:
parent
84fbc2252f
commit
ad06af3d8f
1 changed files with 15 additions and 15 deletions
|
@ -189,7 +189,7 @@ static void RB_SurfaceSprite( void ) {
|
||||||
RB_SurfacePolychain
|
RB_SurfacePolychain
|
||||||
=============
|
=============
|
||||||
*/
|
*/
|
||||||
void RB_SurfacePolychain( srfPoly_t *p ) {
|
static void RB_SurfacePolychain( srfPoly_t *p ) {
|
||||||
int i;
|
int i;
|
||||||
int numv;
|
int numv;
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ void RB_SurfacePolychain( srfPoly_t *p ) {
|
||||||
RB_SurfaceTriangles
|
RB_SurfaceTriangles
|
||||||
=============
|
=============
|
||||||
*/
|
*/
|
||||||
void RB_SurfaceTriangles( srfTriangles_t *srf ) {
|
static void RB_SurfaceTriangles( srfTriangles_t *srf ) {
|
||||||
int i;
|
int i;
|
||||||
drawVert_t *dv;
|
drawVert_t *dv;
|
||||||
float *xyz, *normal, *texCoords;
|
float *xyz, *normal, *texCoords;
|
||||||
|
@ -284,7 +284,7 @@ void RB_SurfaceTriangles( srfTriangles_t *srf ) {
|
||||||
RB_SurfaceBeam
|
RB_SurfaceBeam
|
||||||
==============
|
==============
|
||||||
*/
|
*/
|
||||||
void RB_SurfaceBeam( void )
|
static void RB_SurfaceBeam( void )
|
||||||
{
|
{
|
||||||
#define NUM_BEAM_SEGS 6
|
#define NUM_BEAM_SEGS 6
|
||||||
refEntity_t *e;
|
refEntity_t *e;
|
||||||
|
@ -454,7 +454,7 @@ static void DoRailDiscs( int numSegs, const vec3_t start, const vec3_t dir, cons
|
||||||
/*
|
/*
|
||||||
** RB_SurfaceRailRinges
|
** RB_SurfaceRailRinges
|
||||||
*/
|
*/
|
||||||
void RB_SurfaceRailRings( void ) {
|
static void RB_SurfaceRailRings( void ) {
|
||||||
refEntity_t *e;
|
refEntity_t *e;
|
||||||
int numSegs;
|
int numSegs;
|
||||||
int len;
|
int len;
|
||||||
|
@ -484,7 +484,7 @@ void RB_SurfaceRailRings( void ) {
|
||||||
/*
|
/*
|
||||||
** RB_SurfaceRailCore
|
** RB_SurfaceRailCore
|
||||||
*/
|
*/
|
||||||
void RB_SurfaceRailCore( void ) {
|
static void RB_SurfaceRailCore( void ) {
|
||||||
refEntity_t *e;
|
refEntity_t *e;
|
||||||
int len;
|
int len;
|
||||||
vec3_t right;
|
vec3_t right;
|
||||||
|
@ -514,7 +514,7 @@ void RB_SurfaceRailCore( void ) {
|
||||||
/*
|
/*
|
||||||
** RB_SurfaceLightningBolt
|
** RB_SurfaceLightningBolt
|
||||||
*/
|
*/
|
||||||
void RB_SurfaceLightningBolt( void ) {
|
static void RB_SurfaceLightningBolt( void ) {
|
||||||
refEntity_t *e;
|
refEntity_t *e;
|
||||||
int len;
|
int len;
|
||||||
vec3_t right;
|
vec3_t right;
|
||||||
|
@ -856,7 +856,7 @@ static void LerpMeshVertexes(md3Surface_t *surf, float backlerp)
|
||||||
RB_SurfaceMesh
|
RB_SurfaceMesh
|
||||||
=============
|
=============
|
||||||
*/
|
*/
|
||||||
void RB_SurfaceMesh(md3Surface_t *surface) {
|
static void RB_SurfaceMesh(md3Surface_t *surface) {
|
||||||
int j;
|
int j;
|
||||||
float backlerp;
|
float backlerp;
|
||||||
int *triangles;
|
int *triangles;
|
||||||
|
@ -903,7 +903,7 @@ void RB_SurfaceMesh(md3Surface_t *surface) {
|
||||||
RB_SurfaceFace
|
RB_SurfaceFace
|
||||||
==============
|
==============
|
||||||
*/
|
*/
|
||||||
void RB_SurfaceFace( srfSurfaceFace_t *surf ) {
|
static void RB_SurfaceFace( srfSurfaceFace_t *surf ) {
|
||||||
int i;
|
int i;
|
||||||
unsigned *indices, *tessIndexes;
|
unsigned *indices, *tessIndexes;
|
||||||
float *v;
|
float *v;
|
||||||
|
@ -993,7 +993,7 @@ RB_SurfaceGrid
|
||||||
Just copy the grid of points and triangulate
|
Just copy the grid of points and triangulate
|
||||||
=============
|
=============
|
||||||
*/
|
*/
|
||||||
void RB_SurfaceGrid( srfGridMesh_t *cv ) {
|
static void RB_SurfaceGrid( srfGridMesh_t *cv ) {
|
||||||
int i, j;
|
int i, j;
|
||||||
float *xyz;
|
float *xyz;
|
||||||
float *texCoords;
|
float *texCoords;
|
||||||
|
@ -1160,7 +1160,7 @@ RB_SurfaceAxis
|
||||||
Draws x/y/z lines from the origin for orientation debugging
|
Draws x/y/z lines from the origin for orientation debugging
|
||||||
===================
|
===================
|
||||||
*/
|
*/
|
||||||
void RB_SurfaceAxis( void ) {
|
static void RB_SurfaceAxis( void ) {
|
||||||
GL_Bind( tr.whiteImage );
|
GL_Bind( tr.whiteImage );
|
||||||
qglLineWidth( 3 );
|
qglLineWidth( 3 );
|
||||||
qglBegin( GL_LINES );
|
qglBegin( GL_LINES );
|
||||||
|
@ -1186,7 +1186,7 @@ RB_SurfaceEntity
|
||||||
Entities that have a single procedurally generated surface
|
Entities that have a single procedurally generated surface
|
||||||
====================
|
====================
|
||||||
*/
|
*/
|
||||||
void RB_SurfaceEntity( surfaceType_t *surfType ) {
|
static void RB_SurfaceEntity( surfaceType_t *surfType ) {
|
||||||
switch( backEnd.currentEntity->e.reType ) {
|
switch( backEnd.currentEntity->e.reType ) {
|
||||||
case RT_SPRITE:
|
case RT_SPRITE:
|
||||||
RB_SurfaceSprite();
|
RB_SurfaceSprite();
|
||||||
|
@ -1210,23 +1210,23 @@ void RB_SurfaceEntity( surfaceType_t *surfType ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RB_SurfaceBad( surfaceType_t *surfType ) {
|
static void RB_SurfaceBad( surfaceType_t *surfType ) {
|
||||||
ri.Printf( PRINT_ALL, "Bad surface tesselated.\n" );
|
ri.Printf( PRINT_ALL, "Bad surface tesselated.\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
void RB_SurfaceFlare(srfFlare_t *surf)
|
static void RB_SurfaceFlare(srfFlare_t *surf)
|
||||||
{
|
{
|
||||||
if (r_flares->integer)
|
if (r_flares->integer)
|
||||||
RB_AddFlare(surf, tess.fogNum, surf->origin, surf->color, surf->normal);
|
RB_AddFlare(surf, tess.fogNum, surf->origin, surf->color, surf->normal);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RB_SurfaceDisplayList( srfDisplayList_t *surf ) {
|
static void RB_SurfaceDisplayList( srfDisplayList_t *surf ) {
|
||||||
// all apropriate state must be set in RB_BeginSurface
|
// all apropriate state must be set in RB_BeginSurface
|
||||||
// this isn't implemented yet...
|
// this isn't implemented yet...
|
||||||
qglCallList( surf->listNum );
|
qglCallList( surf->listNum );
|
||||||
}
|
}
|
||||||
|
|
||||||
void RB_SurfaceSkip( void *surf ) {
|
static void RB_SurfaceSkip( void *surf ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue