Remove VISIBLE from the files that will go into the plugins.

This commit is contained in:
Bill Currie 2012-02-18 22:28:42 +09:00
parent eb536dc995
commit db4a463727
34 changed files with 191 additions and 191 deletions

View file

@ -146,7 +146,7 @@ Draw_InitText (void)
tVAindices[i] = i;
}
VISIBLE qpic_t *
qpic_t *
Draw_MakePic (int width, int height, const byte *data)
{
glpic_t *gl;
@ -160,14 +160,14 @@ Draw_MakePic (int width, int height, const byte *data)
return pic;
}
VISIBLE void
void
Draw_DestroyPic (qpic_t *pic)
{
//FIXME gl texture management sucks
free (pic);
}
VISIBLE qpic_t *
qpic_t *
Draw_PicFromWad (const char *name)
{
glpic_t *gl;
@ -208,7 +208,7 @@ Draw_ClearCache (int phase)
pic->dirty = true;
}
VISIBLE qpic_t *
qpic_t *
Draw_CachePic (const char *path, qboolean alpha)
{
cachepic_t *pic;
@ -266,7 +266,7 @@ Draw_CachePic (const char *path, qboolean alpha)
return &pic->pic;
}
VISIBLE void
void
Draw_UncachePic (const char *path)
{
cachepic_t *pic;
@ -281,7 +281,7 @@ Draw_UncachePic (const char *path)
}
}
VISIBLE void
void
Draw_TextBox (int x, int y, int width, int lines, byte alpha)
{
int cx, cy, n;
@ -335,7 +335,7 @@ Draw_TextBox (int x, int y, int width, int lines, byte alpha)
qfglColor3ubv (color_white);
}
VISIBLE void
void
Draw_Init (void)
{
int i;
@ -478,7 +478,7 @@ tVA_increment (void)
It can be clipped to the top of the screen to allow the console to be
smoothly scrolled off.
*/
VISIBLE void
void
Draw_Character (int x, int y, unsigned int chr)
{
chr &= 255;
@ -492,7 +492,7 @@ Draw_Character (int x, int y, unsigned int chr)
tVA_increment ();
}
VISIBLE void
void
Draw_String (int x, int y, const char *str)
{
unsigned char chr;
@ -515,7 +515,7 @@ Draw_String (int x, int y, const char *str)
}
}
VISIBLE void
void
Draw_nString (int x, int y, const char *str, int count)
{
unsigned char chr;
@ -671,7 +671,7 @@ static void (*crosshair_func[]) (int x, int y) = {
crosshair_5,
};
VISIBLE void
void
Draw_Crosshair (void)
{
int x, y;
@ -697,7 +697,7 @@ Draw_CrosshairAt (int ch, int x, int y)
crosshair_func[ch] (x, y);
}
VISIBLE void
void
Draw_Pic (int x, int y, qpic_t *pic)
{
glpic_t *gl;
@ -717,7 +717,7 @@ Draw_Pic (int x, int y, qpic_t *pic)
qfglEnd ();
}
VISIBLE void
void
Draw_Picf (float x, float y, qpic_t *pic)
{
glpic_t *gl;
@ -737,7 +737,7 @@ Draw_Picf (float x, float y, qpic_t *pic)
qfglEnd ();
}
VISIBLE void
void
Draw_SubPic (int x, int y, qpic_t *pic, int srcx, int srcy, int width,
int height)
{
@ -773,7 +773,7 @@ Draw_SubPic (int x, int y, qpic_t *pic, int srcx, int srcy, int width,
Draws console background (obviously!) Completely rewritten to use
several simple yet very cool GL effects. --KB
*/
VISIBLE void
void
Draw_ConsoleBackground (int lines, byte alpha)
{
float ofs;
@ -847,7 +847,7 @@ Draw_ConsoleBackground (int lines, byte alpha)
This repeats a 64*64 tile graphic to fill the screen around a sized down
refresh window.
*/
VISIBLE void
void
Draw_TileClear (int x, int y, int w, int h)
{
glpic_t *gl;
@ -872,7 +872,7 @@ Draw_TileClear (int x, int y, int w, int h)
Fills a box of pixels with a single color
*/
VISIBLE void
void
Draw_Fill (int x, int y, int w, int h, int c)
{
qfglDisable (GL_TEXTURE_2D);
@ -890,7 +890,7 @@ Draw_Fill (int x, int y, int w, int h, int c)
qfglEnable (GL_TEXTURE_2D);
}
VISIBLE void
void
Draw_FadeScreen (void)
{
GL_FlushText (); // Flush text that should be rendered before the menu

View file

@ -140,7 +140,7 @@ particle_new_veryrandom (ptype_t type, int texnum, const vec3_t org,
}
*/
VISIBLE void
void
R_ClearParticles (void)
{
numparticles = 0;
@ -1720,13 +1720,13 @@ R_ParticleFunctionInit (void)
r_easter_eggs_f (easter_eggs);
}
VISIBLE void
void
R_Particles_Init_Cvars (void)
{
R_ParticleFunctionInit ();
}
VISIBLE void
void
R_Particle_New (ptype_t type, int texnum, const vec3_t org, float scale,
const vec3_t vel, float die, int color, float alpha, float ramp)
{
@ -1735,7 +1735,7 @@ R_Particle_New (ptype_t type, int texnum, const vec3_t org, float scale,
particle_new (type, texnum, org, scale, vel, die, color, alpha, ramp);
}
VISIBLE void
void
R_Particle_NewRandom (ptype_t type, int texnum, const vec3_t org, int org_fuzz,
float scale, int vel_fuzz, float die, int color,
float alpha, float ramp)

View file

@ -70,7 +70,7 @@ R_InitGraphTextures (int base)
return base;
}
VISIBLE void
void
R_LineGraph (int x, int y, int *h_vals, int count)
{
byte color;

View file

@ -620,7 +620,7 @@ R_RenderView_ (void)
static void R_RenderViewFishEye (void);
VISIBLE void
void
R_RenderView (void)
{
if(!scr_fisheye->int_val)
@ -918,7 +918,7 @@ R_RenderViewFishEye (void)
qfglCallList (fisheye_grid);
}
VISIBLE void
void
R_ClearState (void)
{
r_worldentity.model = 0;

View file

@ -135,7 +135,7 @@ R_LoadSky_f (void)
R_LoadSkys (Cmd_Argv (1));
}
VISIBLE void
void
R_Init (void)
{
Cmd_AddCommand ("timerefresh", R_TimeRefresh_f,
@ -175,7 +175,7 @@ register_textures (model_t *model)
}
}
VISIBLE void
void
R_NewMap (model_t *worldmodel, struct model_s **models, int num_models)
{
int i;
@ -259,7 +259,7 @@ R_TimeRefresh_f (void)
Sys_MaskPrintf (SYS_DEV, "%f seconds (%f fps)\n", time, 128 / time);
}
VISIBLE void
void
D_FlushCaches (void)
{
}

View file

@ -61,7 +61,7 @@ static __attribute__ ((used)) const char rcsid[] = "$Id$";
/* SCREEN SHOTS */
VISIBLE tex_t *
tex_t *
SCR_CaptureBGR (void)
{
int count;
@ -79,7 +79,7 @@ SCR_CaptureBGR (void)
return tex;
}
VISIBLE tex_t *
tex_t *
SCR_ScreenShot (int width, int height)
{
unsigned char *src, *dest, *snap;
@ -197,7 +197,7 @@ SCR_TileClear (void)
WARNING: be very careful calling this from elsewhere, because the refresh
needs almost the entire 256k of stack space!
*/
VISIBLE void
void
SCR_UpdateScreen (double realtime, SCR_Func scr_3dfunc, SCR_Func *scr_funcs)
{
double time1 = 0, time2;

View file

@ -108,7 +108,7 @@ vec5_t gl_skyvec[6][4] = {
}
};
VISIBLE void
void
R_LoadSkys (const char *skyname)
{
const char *name;

View file

@ -553,7 +553,7 @@ GL_Upload8 (const byte *data, int width, int height, qboolean mipmap,
free (trans);
}
VISIBLE int
int
GL_LoadTexture (const char *identifier, int width, int height, const byte *data,
qboolean mipmap, qboolean alpha, int bytesperpixel)
{

View file

@ -94,9 +94,9 @@ QFGL_ProcAddress (void *handle, const char *name, qboolean crit)
// First we need to get all the function pointers declared.
#define QFGL_WANT(ret, name, args) \
VISIBLE ret (GLAPIENTRY * qf##name) args;
ret (GLAPIENTRY * qf##name) args;
#define QFGL_NEED(ret, name, args) \
VISIBLE ret (GLAPIENTRY * qf##name) args;
ret (GLAPIENTRY * qf##name) args;
#include "QF/GL/qf_funcs_list.h"
#undef QFGL_NEED
#undef QFGL_WANT
@ -158,7 +158,7 @@ QFGL_ParseExtensionList (const GLubyte *list, const char *name)
return 0;
}
VISIBLE qboolean
qboolean
QFGL_ExtensionPresent (const char *name)
{
static const GLubyte *gl_extensions = NULL;

View file

@ -62,73 +62,73 @@ static __attribute__ ((used)) const char rcsid[] =
#define WARP_WIDTH 320
#define WARP_HEIGHT 200
VISIBLE unsigned char d_15to8table[65536];
unsigned char d_15to8table[65536];
VISIBLE QF_glActiveTexture qglActiveTexture = NULL;
VISIBLE QF_glMultiTexCoord2f qglMultiTexCoord2f = NULL;
VISIBLE QF_glMultiTexCoord2fv qglMultiTexCoord2fv = NULL;
QF_glActiveTexture qglActiveTexture = NULL;
QF_glMultiTexCoord2f qglMultiTexCoord2f = NULL;
QF_glMultiTexCoord2fv qglMultiTexCoord2fv = NULL;
VISIBLE const char *gl_extensions;
VISIBLE const char *gl_renderer;
VISIBLE const char *gl_vendor;
VISIBLE const char *gl_version;
const char *gl_extensions;
const char *gl_renderer;
const char *gl_vendor;
const char *gl_version;
VISIBLE int gl_major;
VISIBLE int gl_minor;
VISIBLE int gl_release_number;
int gl_major;
int gl_minor;
int gl_release_number;
static int gl_bgra_capable;
VISIBLE int use_bgra;
VISIBLE int gl_va_capable;
int use_bgra;
int gl_va_capable;
static int driver_vaelements;
VISIBLE int vaelements;
VISIBLE int texture_extension_number = 1;
VISIBLE int gl_filter_min = GL_LINEAR_MIPMAP_LINEAR;
VISIBLE int gl_filter_max = GL_LINEAR;
VISIBLE float gldepthmin, gldepthmax;
int vaelements;
int texture_extension_number = 1;
int gl_filter_min = GL_LINEAR_MIPMAP_LINEAR;
int gl_filter_max = GL_LINEAR;
float gldepthmin, gldepthmax;
// Multitexture
VISIBLE qboolean gl_mtex_capable = false;
qboolean gl_mtex_capable = false;
static int gl_mtex_tmus = 0;
VISIBLE GLenum gl_mtex_enum;
VISIBLE int gl_mtex_active_tmus = 0;
VISIBLE qboolean gl_mtex_fullbright = false;
GLenum gl_mtex_enum;
int gl_mtex_active_tmus = 0;
qboolean gl_mtex_fullbright = false;
// Combine
VISIBLE qboolean gl_combine_capable = false;
VISIBLE int lm_src_blend, lm_dest_blend;
VISIBLE float rgb_scale = 1.0;
qboolean gl_combine_capable = false;
int lm_src_blend, lm_dest_blend;
float rgb_scale = 1.0;
VISIBLE QF_glColorTableEXT qglColorTableEXT = NULL;
QF_glColorTableEXT qglColorTableEXT = NULL;
VISIBLE qboolean gl_feature_mach64 = false;
qboolean gl_feature_mach64 = false;
// GL_EXT_texture_filter_anisotropic
VISIBLE qboolean gl_Anisotropy;
qboolean gl_Anisotropy;
static float aniso_max;
VISIBLE float gl_aniso;
float gl_aniso;
// GL_ATI_pn_triangles
static qboolean TruForm;
static int tess_max;
VISIBLE int tess;
int tess;
// GL_LIGHT
VISIBLE int gl_max_lights;
int gl_max_lights;
VISIBLE cvar_t *gl_anisotropy;
VISIBLE cvar_t *gl_doublebright;
VISIBLE cvar_t *gl_fb_bmodels;
VISIBLE cvar_t *gl_finish;
VISIBLE cvar_t *gl_max_size;
VISIBLE cvar_t *gl_multitexture;
VISIBLE cvar_t *gl_tessellate;
VISIBLE cvar_t *gl_textures_bgra;
VISIBLE cvar_t *gl_vaelements_max;
VISIBLE cvar_t *gl_vector_light;
VISIBLE cvar_t *gl_screenshot_byte_swap;
VISIBLE cvar_t *vid_mode;
VISIBLE cvar_t *vid_use8bit;
cvar_t *gl_anisotropy;
cvar_t *gl_doublebright;
cvar_t *gl_fb_bmodels;
cvar_t *gl_finish;
cvar_t *gl_max_size;
cvar_t *gl_multitexture;
cvar_t *gl_tessellate;
cvar_t *gl_textures_bgra;
cvar_t *gl_vaelements_max;
cvar_t *gl_vector_light;
cvar_t *gl_screenshot_byte_swap;
cvar_t *vid_mode;
cvar_t *vid_use8bit;
void gl_multitexture_f (cvar_t *var);
@ -176,7 +176,7 @@ gl_fb_bmodels_f (cvar_t *var)
}
}
VISIBLE void
void
gl_multitexture_f (cvar_t *var)
{
if (!var)

View file

@ -104,7 +104,7 @@ static struct {
static mat4_t alias_vp;
VISIBLE void
void
R_InitAlias (void)
{
int vert;

View file

@ -1308,7 +1308,7 @@ copy_sub_tex (tex_t *src, int x, int y, tex_t *dst)
dstbytes);
}
VISIBLE void
void
R_LoadSkys (const char *sky)
{
const char *name;

View file

@ -269,25 +269,25 @@ draw_pic (float x, float y, int w, int h, qpic_t *pic,
qfglDisableVertexAttribArray (quake_icon.vertex.location);
}
VISIBLE qpic_t *
qpic_t *
Draw_MakePic (int width, int height, const byte *data)
{
return pic_data (0, width, height, data);
}
VISIBLE void
void
Draw_DestroyPic (qpic_t *pic)
{
pic_free (pic);
}
VISIBLE qpic_t *
qpic_t *
Draw_PicFromWad (const char *name)
{
return make_glpic (name, W_GetLumpName (name));
}
VISIBLE qpic_t *
qpic_t *
Draw_CachePic (const char *path, qboolean alpha)
{
qpic_t *p, *pic;
@ -308,13 +308,13 @@ Draw_CachePic (const char *path, qboolean alpha)
return pic;
}
VISIBLE void
void
Draw_UncachePic (const char *path)
{
Hash_Free (pic_cache, Hash_Del (pic_cache, path));
}
VISIBLE void
void
Draw_TextBox (int x, int y, int width, int lines, byte alpha)
{
static quat_t color = { 1, 1, 1, 0 };
@ -379,7 +379,7 @@ Draw_ClearCache (int phase)
Hash_FlushTable (pic_cache);
}
VISIBLE void
void
Draw_Init (void)
{
int i;
@ -498,7 +498,7 @@ flush_text (void)
char_queue->size = 0;
}
VISIBLE void
void
Draw_Character (int x, int y, unsigned int chr)
{
chr &= 255;
@ -511,7 +511,7 @@ Draw_Character (int x, int y, unsigned int chr)
queue_character (x, y, chr);
}
VISIBLE void
void
Draw_String (int x, int y, const char *str)
{
byte chr;
@ -528,7 +528,7 @@ Draw_String (int x, int y, const char *str)
}
}
VISIBLE void
void
Draw_nString (int x, int y, const char *str, int count)
{
byte chr;
@ -609,7 +609,7 @@ static void (*crosshair_func[]) (int x, int y) = {
crosshair_5,
};
VISIBLE void
void
Draw_Crosshair (void)
{
int x, y;
@ -636,7 +636,7 @@ Draw_CrosshairAt (int ch, int x, int y)
crosshair_func[c] (x, y);
}
VISIBLE void
void
Draw_Pic (int x, int y, qpic_t *pic)
{
static quat_t color = { 1, 1, 1, 1};
@ -644,7 +644,7 @@ Draw_Pic (int x, int y, qpic_t *pic)
0, 0, pic->width, pic->height, color);
}
VISIBLE void
void
Draw_Picf (float x, float y, qpic_t *pic)
{
static quat_t color = { 1, 1, 1, 1};
@ -652,7 +652,7 @@ Draw_Picf (float x, float y, qpic_t *pic)
0, 0, pic->width, pic->height, color);
}
VISIBLE void
void
Draw_SubPic (int x, int y, qpic_t *pic, int srcx, int srcy, int width,
int height)
{
@ -660,7 +660,7 @@ Draw_SubPic (int x, int y, qpic_t *pic, int srcx, int srcy, int width,
draw_pic (x, y, width, height, pic, srcx, srcy, width, height, color);
}
VISIBLE void
void
Draw_ConsoleBackground (int lines, byte alpha)
{
float ofs = (vid.conheight - lines) / (float) vid.conheight;
@ -701,14 +701,14 @@ Draw_ConsoleBackground (int lines, byte alpha)
qfglDisableVertexAttribArray (quake_icon.vertex.location);
}
VISIBLE void
void
Draw_TileClear (int x, int y, int w, int h)
{
static quat_t color = { 1, 1, 1, 1 };
draw_pic (x, y, w, h, backtile_pic, 0, 0, w, h, color);
}
VISIBLE void
void
Draw_Fill (int x, int y, int w, int h, int c)
{
quat_t color;
@ -724,7 +724,7 @@ draw_blendscreen (quat_t color)
draw_pic (0, 0, vid.conwidth, vid.conheight, white_pic, 0, 0, 8, 8, color);
}
VISIBLE void
void
Draw_FadeScreen (void)
{
static quat_t color = { 0, 0, 0, 0.7 };

View file

@ -64,7 +64,7 @@ gl_overbright_f (cvar_t *var)
{
}
VISIBLE void
void
R_ViewChanged (float aspect)
{
double xmin, xmax, ymin, ymax;
@ -194,7 +194,7 @@ R_DrawViewModel (void)
qfglDepthRangef (0, 1);
}
VISIBLE void
void
R_RenderView (void)
{
double t[10] = {};
@ -241,7 +241,7 @@ R_RenderView (void)
}
}
VISIBLE void
void
R_Init (void)
{
Draw_Init ();
@ -253,7 +253,7 @@ R_Init (void)
Fog_Init ();
}
VISIBLE void
void
R_NewMap (model_t *worldmodel, struct model_s **models, int num_models)
{
int i;
@ -275,12 +275,12 @@ R_NewMap (model_t *worldmodel, struct model_s **models, int num_models)
R_BuildDisplayLists (models, num_models);
}
VISIBLE void
void
R_LineGraph (int x, int y, int *h_vals, int count)
{
}
VISIBLE void
void
R_ClearState (void)
{
R_ClearEfrags ();
@ -288,7 +288,7 @@ R_ClearState (void)
R_ClearParticles ();
}
VISIBLE void
void
D_FlushCaches (void)
{
}

View file

@ -197,7 +197,7 @@ particle_new_veryrandom (ptype_t type, int texnum, const vec3_t org,
}
*/
VISIBLE void
void
R_ClearParticles (void)
{
numparticles = 0;
@ -1908,13 +1908,13 @@ R_ParticleFunctionInit (void)
r_easter_eggs_f (easter_eggs);
}
VISIBLE void
void
R_Particles_Init_Cvars (void)
{
R_ParticleFunctionInit ();
}
VISIBLE void
void
R_Particle_New (ptype_t type, int texnum, const vec3_t org, float scale,
const vec3_t vel, float die, int color, float alpha, float ramp)
{
@ -1923,7 +1923,7 @@ R_Particle_New (ptype_t type, int texnum, const vec3_t org, float scale,
particle_new (type, texnum, org, scale, vel, die, color, alpha, ramp);
}
VISIBLE void
void
R_Particle_NewRandom (ptype_t type, int texnum, const vec3_t org, int org_fuzz,
float scale, int vel_fuzz, float die, int color,
float alpha, float ramp)

View file

@ -152,7 +152,7 @@ SCR_TileClear (void)
}
}
VISIBLE void
void
SCR_UpdateScreen (double realtime, SCR_Func scr_3dfunc, SCR_Func *scr_funcs)
{
static int begun = 0;
@ -198,7 +198,7 @@ SCR_UpdateScreen (double realtime, SCR_Func scr_3dfunc, SCR_Func *scr_funcs)
qfglFlush ();
}
VISIBLE tex_t *
tex_t *
SCR_CaptureBGR (void)
{
byte *r, *b;
@ -223,13 +223,13 @@ SCR_CaptureBGR (void)
return tex;
}
VISIBLE tex_t *
tex_t *
SCR_ScreenShot (int width, int height)
{
return 0;
}
VISIBLE void
void
SCR_ScreenShot_f (void)
{
dstring_t *name = dstring_new ();

View file

@ -92,7 +92,7 @@ static struct {
{"fog", 1},
};
VISIBLE void
void
R_InitSprites (void)
{
int frag, vert;

View file

@ -93,9 +93,9 @@ QFGL_ProcAddress (void *handle, const char *name, qboolean crit)
// First we need to get all the function pointers declared.
#define QFGL_WANT(ret, name, args) \
VISIBLE ret (GLAPIENTRY * qf##name) args;
ret (GLAPIENTRY * qf##name) args;
#define QFGL_NEED(ret, name, args) \
VISIBLE ret (GLAPIENTRY * qf##name) args;
ret (GLAPIENTRY * qf##name) args;
#include "QF/GLSL/qf_funcs_list.h"
#undef QFGL_NEED
#undef QFGL_WANT

View file

@ -58,12 +58,12 @@ static __attribute__ ((used)) const char rcsid[] = "$Id$";
#include "d_iface.h"
#include "r_internal.h"
VISIBLE int glsl_palette;
VISIBLE int glsl_colormap;
VISIBLE int gl_filter_min = GL_LINEAR_MIPMAP_LINEAR;
VISIBLE int gl_filter_max = GL_LINEAR;
VISIBLE float gldepthmin, gldepthmax;
VISIBLE qboolean is8bit = false;
int glsl_palette;
int glsl_colormap;
int gl_filter_min = GL_LINEAR_MIPMAP_LINEAR;
int gl_filter_max = GL_LINEAR;
float gldepthmin, gldepthmax;
qboolean is8bit = false;
static void
GLSL_Common_Init_Cvars (void)

View file

@ -38,7 +38,7 @@ float r_avertexnormals[NUMVERTEXNORMALS][3] = {
#include "anorms.h"
};
VISIBLE maliasskindesc_t *
maliasskindesc_t *
R_AliasGetSkindesc (int skinnum, aliashdr_t *ahdr)
{
maliasskindesc_t *pskindesc;
@ -138,7 +138,7 @@ alias_get_frame (int framenum, aliashdr_t *hdr, float *frame_interval)
return &group->frames[i];
}
VISIBLE maliasframedesc_t *
maliasframedesc_t *
R_AliasGetFramedesc (int framenum, aliashdr_t *hdr)
{
return alias_get_frame (framenum, hdr, 0);

View file

@ -62,7 +62,7 @@ int r_init;
entity_t *currententity;
int r_visframecount; // bumped when going to a new PVS
VISIBLE int r_framecount = 1; // so frame counts initialized to 0 don't match
int r_framecount = 1; // so frame counts initialized to 0 don't match
vec3_t modelorg; // modelorg is the viewpoint relative to
// the currently rendering entity
@ -81,7 +81,7 @@ vec3_t vright, base_vright;
vec3_t r_origin;
// screen size info
VISIBLE refdef_t r_refdef;
refdef_t r_refdef;
int d_lightstylevalue[256]; // 8.8 fraction of base light value

View file

@ -95,7 +95,7 @@ static int numcachepics;
} while (0)
VISIBLE qpic_t *
qpic_t *
Draw_MakePic (int width, int height, const byte *data)
{
qpic_t *pic;
@ -108,20 +108,20 @@ Draw_MakePic (int width, int height, const byte *data)
return pic;
}
VISIBLE void
void
Draw_DestroyPic (qpic_t *pic)
{
free (pic);
}
VISIBLE qpic_t *
qpic_t *
Draw_PicFromWad (const char *name)
{
return W_GetLumpName (name);
}
VISIBLE qpic_t *
qpic_t *
Draw_CachePic (const char *path, qboolean alpha)
{
cachepic_t *pic;
@ -162,7 +162,7 @@ Draw_CachePic (const char *path, qboolean alpha)
return dat;
}
VISIBLE void
void
Draw_UncachePic (const char *path)
{
cachepic_t *pic;
@ -178,7 +178,7 @@ Draw_UncachePic (const char *path)
}
VISIBLE void
void
Draw_TextBox (int x, int y, int width, int lines, byte alpha)
{
qpic_t *p;
@ -252,7 +252,7 @@ Draw_Init (void)
It can be clipped to the top of the screen to allow the console to be
smoothly scrolled off.
*/
VISIBLE inline void
inline void
Draw_Character (int x, int y, unsigned int chr)
{
byte *dest;
@ -306,7 +306,7 @@ Draw_Character (int x, int y, unsigned int chr)
}
VISIBLE void
void
Draw_String (int x, int y, const char *str)
{
while (*str) {
@ -316,7 +316,7 @@ Draw_String (int x, int y, const char *str)
}
VISIBLE void
void
Draw_nString (int x, int y, const char *str, int count)
{
while (count-- && *str) {
@ -326,7 +326,7 @@ Draw_nString (int x, int y, const char *str, int count)
}
VISIBLE void
void
Draw_AltString (int x, int y, const char *str)
{
while (*str) {
@ -387,7 +387,7 @@ static void (*crosshair_func[]) (int x, int y) = {
crosshair_3,
};
VISIBLE void
void
Draw_Crosshair (void)
{
int x, y;
@ -403,7 +403,7 @@ Draw_Crosshair (void)
crosshair_func[ch] (x, y);
}
VISIBLE void
void
Draw_CrosshairAt (int ch, int x, int y)
{
ch -= 1;
@ -414,7 +414,7 @@ Draw_CrosshairAt (int ch, int x, int y)
}
VISIBLE void
void
Draw_Pic (int x, int y, qpic_t *pic)
{
byte *dest, *source, tbyte;
@ -466,13 +466,13 @@ Draw_Pic (int x, int y, qpic_t *pic)
}
}
VISIBLE void
void
Draw_Picf (float x, float y, qpic_t *pic)
{
Draw_Pic (x, y, pic);
}
VISIBLE void
void
Draw_SubPic (int x, int y, qpic_t *pic, int srcx, int srcy, int width,
int height)
{
@ -545,7 +545,7 @@ Draw_SubPic (int x, int y, qpic_t *pic, int srcx, int srcy, int width,
}
VISIBLE void
void
Draw_ConsoleBackground (int lines, byte alpha)
{
int x, y, v;
@ -625,7 +625,7 @@ R_DrawRect (vrect_t *prect, int rowbytes, byte * psrc, int transparent)
This repeats a 64*64 tile graphic to fill the screen around a sized down
refresh window.
*/
VISIBLE void
void
Draw_TileClear (int x, int y, int w, int h)
{
int width, height, tileoffsetx, tileoffsety;
@ -689,7 +689,7 @@ Draw_TileClear (int x, int y, int w, int h)
Fills a box of pixels with a single color
*/
VISIBLE void
void
Draw_Fill (int x, int y, int w, int h, int c)
{
byte *dest;
@ -709,7 +709,7 @@ Draw_Fill (int x, int y, int w, int h, int c)
}
VISIBLE void
void
Draw_FadeScreen (void)
{
unsigned int x, y;
@ -736,7 +736,7 @@ Draw_FadeScreen (void)
VID_LockBuffer ();
}
VISIBLE void
void
Draw_BlendScreen (quat_t color)
{
int r, g, b, i;

View file

@ -56,7 +56,7 @@ static __attribute__ ((used)) const char rcsid[] = "$Id$";
/* SCREEN SHOTS */
VISIBLE tex_t *
tex_t *
SCR_CaptureBGR (void)
{
int count, x, y;

View file

@ -1122,7 +1122,7 @@ gl_overbright_f (cvar_t *un)
{
}
VISIBLE void
void
R_ClearState (void)
{
R_ClearEfrags ();

View file

@ -838,7 +838,7 @@ R_Particles_Init_Cvars (void)
R_ParticleFunctionInit ();
}
VISIBLE void
void
R_Particle_New (ptype_t type, int texnum, const vec3_t org, float scale,
const vec3_t vel, float die, int color, float alpha, float ramp)
{
@ -863,7 +863,7 @@ R_Particle_New (ptype_t type, int texnum, const vec3_t org, float scale,
p->ramp = ramp;
}
VISIBLE void
void
R_Particle_NewRandom (ptype_t type, int texnum, const vec3_t org, int org_fuzz,
float scale, int vel_fuzz, float die, int color,
float alpha, float ramp)

View file

@ -217,7 +217,7 @@ R_SetSkyFrame (void)
Stub function for loading a skybox. Currently we have support for
skyboxes only in GL targets, so we just do nothing here. --KB
*/
VISIBLE void
void
R_LoadSkys (const char *name)
{
}

View file

@ -123,7 +123,7 @@ D_InitCaches (void *buffer, int size)
}
VISIBLE void
void
D_FlushCaches (void)
{
surfcache_t *c;

View file

@ -95,7 +95,7 @@ static int numcachepics;
} while (0)
VISIBLE qpic_t *
qpic_t *
Draw_MakePic (int width, int height, const byte *data)
{
qpic_t *pic;
@ -108,20 +108,20 @@ Draw_MakePic (int width, int height, const byte *data)
return pic;
}
VISIBLE void
void
Draw_DestroyPic (qpic_t *pic)
{
free (pic);
}
VISIBLE qpic_t *
qpic_t *
Draw_PicFromWad (const char *name)
{
return W_GetLumpName (name);
}
VISIBLE qpic_t *
qpic_t *
Draw_CachePic (const char *path, qboolean alpha)
{
cachepic_t *pic;
@ -162,7 +162,7 @@ Draw_CachePic (const char *path, qboolean alpha)
return dat;
}
VISIBLE void
void
Draw_UncachePic (const char *path)
{
cachepic_t *pic;
@ -178,7 +178,7 @@ Draw_UncachePic (const char *path)
}
VISIBLE void
void
Draw_TextBox (int x, int y, int width, int lines, byte alpha)
{
qpic_t *p;
@ -231,7 +231,7 @@ Draw_TextBox (int x, int y, int width, int lines, byte alpha)
}
VISIBLE void
void
Draw_Init (void)
{
draw_chars = W_GetLumpName ("conchars");
@ -252,7 +252,7 @@ Draw_Init (void)
It can be clipped to the top of the screen to allow the console to be
smoothly scrolled off.
*/
VISIBLE void
void
Draw_Character (int x, int y, unsigned int chr)
{
byte *source;
@ -369,7 +369,7 @@ Draw_Character (int x, int y, unsigned int chr)
}
}
VISIBLE void
void
Draw_String (int x, int y, const char *str)
{
while (*str) {
@ -378,7 +378,7 @@ Draw_String (int x, int y, const char *str)
}
}
VISIBLE void
void
Draw_nString (int x, int y, const char *str, int count)
{
while (count-- && *str) {
@ -461,7 +461,7 @@ static void (*crosshair_func[]) (int x, int y) = {
crosshair_3,
};
VISIBLE void
void
Draw_Crosshair (void)
{
int x, y;
@ -487,7 +487,7 @@ Draw_CrosshairAt (int ch, int x, int y)
crosshair_func[ch] (x, y);
}
VISIBLE void
void
Draw_Pic (int x, int y, qpic_t *pic)
{
byte *source, tbyte;
@ -579,13 +579,13 @@ Draw_Pic (int x, int y, qpic_t *pic)
}
}
VISIBLE void
void
Draw_Picf (float x, float y, qpic_t *pic)
{
Draw_Pic (x, y, pic);
}
VISIBLE void
void
Draw_SubPic (int x, int y, qpic_t *pic, int srcx, int srcy, int width,
int height)
{
@ -662,7 +662,7 @@ Draw_SubPic (int x, int y, qpic_t *pic, int srcx, int srcy, int width,
}
VISIBLE void
void
Draw_ConsoleBackground (int lines, byte alpha)
{
int x, y, v;
@ -1038,7 +1038,7 @@ R_DrawRect (vrect_t *prect, int rowbytes, byte * psrc, int transparent)
This repeats a 64*64 tile graphic to fill the screen around a sized down
refresh window.
*/
VISIBLE void
void
Draw_TileClear (int x, int y, int w, int h)
{
int width, height, tileoffsetx, tileoffsety;
@ -1102,7 +1102,7 @@ Draw_TileClear (int x, int y, int w, int h)
Fills a box of pixels with a single color
*/
VISIBLE void
void
Draw_Fill (int x, int y, int w, int h, int c)
{
int u, v;
@ -1149,7 +1149,7 @@ Draw_Fill (int x, int y, int w, int h, int c)
}
VISIBLE void
void
Draw_FadeScreen (void)
{
unsigned int x, y;
@ -1203,7 +1203,7 @@ Draw_FadeScreen (void)
VID_LockBuffer ();
}
VISIBLE void
void
Draw_BlendScreen (quat_t color)
{
int r, g, b, i;

View file

@ -56,7 +56,7 @@ static __attribute__ ((used)) const char rcsid[] = "$Id$";
/* SCREEN SHOTS */
VISIBLE tex_t *
tex_t *
SCR_CaptureBGR (void)
{
int count, x, y;
@ -86,7 +86,7 @@ SCR_CaptureBGR (void)
return tex;
}
VISIBLE tex_t *
tex_t *
SCR_ScreenShot (int width, int height)
{
return 0;
@ -143,7 +143,7 @@ SCR_ScreenShot_f (void)
WARNING: be very careful calling this from elsewhere, because the refresh
needs almost the entire 256k of stack space!
*/
VISIBLE void
void
SCR_UpdateScreen (double realtime, SCR_Func scr_3dfunc, SCR_Func *scr_funcs)
{
vrect_t vrect;

View file

@ -44,7 +44,7 @@ static __attribute__ ((used)) const char rcsid[] =
Called by only R_DisplayTime
*/
VISIBLE void
void
R_LineGraph (int x, int y, int *h_vals, int count)
{
int h, i, s, color;

View file

@ -62,7 +62,7 @@ int r_numallocatededges;
qboolean r_drawpolys;
qboolean r_drawculledpolys;
qboolean r_worldpolysbacktofront;
VISIBLE int r_pixbytes = 1;
int r_pixbytes = 1;
float r_aliasuvscale = 1.0;
int r_outofsurfaces;
int r_outofedges;
@ -140,7 +140,7 @@ R_Textures_Init (void)
}
}
VISIBLE void
void
R_Init (void)
{
int dummy;
@ -174,7 +174,7 @@ R_Init (void)
D_Init ();
}
VISIBLE void
void
R_NewMap (model_t *worldmodel, struct model_s **models, int num_models)
{
int i;
@ -791,7 +791,7 @@ R_RenderView_ (void)
Sys_Printf ("Short roughly %d edges\n", r_outofedges * 2 / 3);
}
VISIBLE void
void
R_RenderView (void)
{
int dummy;
@ -830,7 +830,7 @@ gl_overbright_f (cvar_t *un)
{
}
VISIBLE void
void
R_ClearState (void)
{
R_ClearEfrags ();

View file

@ -59,7 +59,7 @@ R_InitParticles (void)
{
}
VISIBLE void
void
R_ClearParticles (void)
{
unsigned int i;
@ -841,13 +841,13 @@ R_ParticleFunctionInit (void)
vr_funcs.particles = &particles_QF;
}
VISIBLE void
void
R_Particles_Init_Cvars (void)
{
R_ParticleFunctionInit ();
}
VISIBLE void
void
R_Particle_New (ptype_t type, int texnum, const vec3_t org, float scale,
const vec3_t vel, float die, int color, float alpha, float ramp)
{
@ -872,7 +872,7 @@ R_Particle_New (ptype_t type, int texnum, const vec3_t org, float scale,
p->ramp = ramp;
}
VISIBLE void
void
R_Particle_NewRandom (ptype_t type, int texnum, const vec3_t org, int org_fuzz,
float scale, int vel_fuzz, float die, int color,
float alpha, float ramp)

View file

@ -219,7 +219,7 @@ R_SetSkyFrame (void)
Stub function for loading a skybox. Currently we have support for
skyboxes only in GL targets, so we just do nothing here. --KB
*/
VISIBLE void
void
R_LoadSkys (const char *name)
{
}

View file

@ -43,7 +43,7 @@ static __attribute__ ((used)) const char rcsid[] =
#include "r_internal.h"
#include "vid_internal.h"
VISIBLE unsigned short d_8to16table[256];
unsigned short d_8to16table[256];
/*
@ -204,7 +204,7 @@ VID_MakeColormaps (int fullbrights, byte *pal)
VID_MakeColormap32(vid.colormap32, pal);
}
VISIBLE void
void
VID_InitBuffers (void)
{
int buffersize, zbuffersize, cachesize = 1;
@ -266,7 +266,7 @@ VID_InitBuffers (void)
vid.init_caches (vid.surfcache, cachesize);
}
VISIBLE void
void
VID_ShiftPalette (unsigned char *p)
{
VID_SetPalette (p);