2010-02-15 23:26:55 +00:00
|
|
|
/*
|
|
|
|
Copyright (C) 1996-2001 Id Software, Inc.
|
|
|
|
Copyright (C) 2002-2009 John Fitzgibbons and others
|
|
|
|
Copyright (C) 2007-2008 Kristian Duske
|
|
|
|
|
|
|
|
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 2
|
|
|
|
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.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
*/
|
bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h,
d_ifacea.h, draw.h, gl_texmgr.h, glquake.h, image.h, input.h, keys.h, mathlib.h,
menu.h, modelgen.h, net.h, net_dgrm.h, net_loop.h, net_sdlnet.h, net_udp.h,
net_wins.h, platform.h, pr_comp.h, progdefs.h, progs.h, protocol.h, quakedef.h,
render.h, resource.h, sbar.h, screen.h, server.h, sound.h, spritegn.h, sys.h,
vid.h, view.h, wad.h, world.h, zone.h: added include guards to the headers.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@84 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-02-21 00:01:08 +00:00
|
|
|
|
|
|
|
#ifndef __GLQUAKE_H
|
|
|
|
#define __GLQUAKE_H
|
2010-02-15 23:26:55 +00:00
|
|
|
|
|
|
|
void GL_BeginRendering (int *x, int *y, int *width, int *height);
|
|
|
|
void GL_EndRendering (void);
|
chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h,
cvar.h, draw.h, gl_draw.c, gl_fog.c, gl_mesh.c, gl_model.c, gl_model.h,
gl_rmain.c, gl_rmisc.c, gl_screen.c, gl_sky.c, gl_texmgr.c, glquake.h,
host.c, keys.c, keys.h, main.c, menu.c, menu.h, pr_cmds.c, quakedef.h,
r_alias.c, r_brush.c, r_part.c, r_sprite.c, r_world.c, sbar.c, sbar.h,
screen.h, snd_dma.c, snd_mem.c, snd_mix.c, sv_main.c, sys_sdl.c, vid.h,
view.h, world.c, world.h: Loads of warning fixes about missing function
prototypes, missing parens around &, missing braces leading to ambiguous
else statements and unused and uninitialized variables. There are still a
couple of unitialised variables here and there, but not much. The warnings
about strict aliasing violations need taking care of.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@21 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-02-16 12:01:07 +00:00
|
|
|
void GL_Set2D (void);
|
2010-02-15 23:26:55 +00:00
|
|
|
|
|
|
|
extern int glx, gly, glwidth, glheight;
|
|
|
|
|
|
|
|
// r_local.h -- private refresh defs
|
|
|
|
|
|
|
|
#define ALIAS_BASE_SIZE_RATIO (1.0 / 11.0)
|
|
|
|
// normalizing factor so player model works out to about
|
|
|
|
// 1 pixel per triangle
|
|
|
|
#define MAX_LBM_HEIGHT 480
|
|
|
|
|
|
|
|
#define TILE_SIZE 128 // size of textures generated by R_GenTiledSurf
|
|
|
|
|
|
|
|
#define SKYSHIFT 7
|
|
|
|
#define SKYSIZE (1 << SKYSHIFT)
|
|
|
|
#define SKYMASK (SKYSIZE - 1)
|
|
|
|
|
|
|
|
#define BACKFACE_EPSILON 0.01
|
|
|
|
|
|
|
|
|
|
|
|
void R_TimeRefresh_f (void);
|
|
|
|
void R_ReadPointFile_f (void);
|
|
|
|
texture_t *R_TextureAnimation (texture_t *base, int frame);
|
|
|
|
|
|
|
|
typedef struct surfcache_s
|
|
|
|
{
|
|
|
|
struct surfcache_s *next;
|
|
|
|
struct surfcache_s **owner; // NULL is an empty chunk of memory
|
2011-12-30 14:00:28 +00:00
|
|
|
int lightadj[MAXLIGHTMAPS]; // checked for strobe flush
|
|
|
|
int dlight;
|
|
|
|
int size; // including header
|
|
|
|
unsigned width;
|
|
|
|
unsigned height; // DEBUG only needed for debug
|
|
|
|
float mipscale;
|
2010-02-15 23:26:55 +00:00
|
|
|
struct texture_s *texture; // checked for animating textures
|
2011-12-30 14:00:28 +00:00
|
|
|
byte data[4]; // width*height elements
|
2010-02-15 23:26:55 +00:00
|
|
|
} surfcache_t;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
pixel_t *surfdat; // destination for generated surface
|
2011-12-30 14:00:28 +00:00
|
|
|
int rowbytes; // destination logical width in bytes
|
2010-02-15 23:26:55 +00:00
|
|
|
msurface_t *surf; // description for surface to generate
|
|
|
|
fixed8_t lightadj[MAXLIGHTMAPS];
|
|
|
|
// adjust for lightmap levels for dynamic lighting
|
|
|
|
texture_t *texture; // corrected for animating textures
|
2011-12-30 14:00:28 +00:00
|
|
|
int surfmip; // mipmapped ratio of surface texels / world pixels
|
|
|
|
int surfwidth; // in mipmapped texels
|
|
|
|
int surfheight; // in mipmapped texels
|
2010-02-15 23:26:55 +00:00
|
|
|
} drawsurf_t;
|
|
|
|
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
pt_static, pt_grav, pt_slowgrav, pt_fire, pt_explode, pt_explode2, pt_blob, pt_blob2
|
|
|
|
} ptype_t;
|
|
|
|
|
|
|
|
// !!! if this is changed, it must be changed in d_ifacea.h too !!!
|
|
|
|
typedef struct particle_s
|
|
|
|
{
|
|
|
|
// driver-usable fields
|
|
|
|
vec3_t org;
|
|
|
|
float color;
|
|
|
|
// drivers never touch the following fields
|
|
|
|
struct particle_s *next;
|
|
|
|
vec3_t vel;
|
|
|
|
float ramp;
|
|
|
|
float die;
|
|
|
|
ptype_t type;
|
|
|
|
} particle_t;
|
|
|
|
|
|
|
|
|
|
|
|
//====================================================
|
|
|
|
|
|
|
|
extern qboolean r_cache_thrash; // compatability
|
|
|
|
extern vec3_t modelorg, r_entorigin;
|
|
|
|
extern entity_t *currententity;
|
2011-12-30 14:00:28 +00:00
|
|
|
extern int r_visframecount; // ??? what difs?
|
|
|
|
extern int r_framecount;
|
2010-02-15 23:26:55 +00:00
|
|
|
extern mplane_t frustum[4];
|
|
|
|
|
|
|
|
//
|
|
|
|
// view origin
|
|
|
|
//
|
|
|
|
extern vec3_t vup;
|
|
|
|
extern vec3_t vpn;
|
|
|
|
extern vec3_t vright;
|
|
|
|
extern vec3_t r_origin;
|
|
|
|
|
|
|
|
//
|
|
|
|
// screen size info
|
|
|
|
//
|
|
|
|
extern refdef_t r_refdef;
|
|
|
|
extern mleaf_t *r_viewleaf, *r_oldviewleaf;
|
|
|
|
extern int d_lightstylevalue[256]; // 8.8 fraction of base light value
|
|
|
|
|
|
|
|
extern cvar_t r_norefresh;
|
|
|
|
extern cvar_t r_drawentities;
|
|
|
|
extern cvar_t r_drawworld;
|
|
|
|
extern cvar_t r_drawviewmodel;
|
|
|
|
extern cvar_t r_speeds;
|
|
|
|
extern cvar_t r_waterwarp;
|
|
|
|
extern cvar_t r_fullbright;
|
|
|
|
extern cvar_t r_lightmap;
|
|
|
|
extern cvar_t r_shadows;
|
|
|
|
extern cvar_t r_wateralpha;
|
|
|
|
extern cvar_t r_dynamic;
|
|
|
|
extern cvar_t r_novis;
|
|
|
|
|
|
|
|
extern cvar_t gl_clear;
|
|
|
|
extern cvar_t gl_cull;
|
|
|
|
extern cvar_t gl_smoothmodels;
|
|
|
|
extern cvar_t gl_affinemodels;
|
|
|
|
extern cvar_t gl_polyblend;
|
|
|
|
extern cvar_t gl_flashblend;
|
|
|
|
extern cvar_t gl_nocolors;
|
|
|
|
|
|
|
|
extern cvar_t gl_playermip;
|
|
|
|
|
2011-12-28 17:37:30 +00:00
|
|
|
extern cvar_t gl_subdivide_size;
|
|
|
|
extern float load_subdivide_size; //johnfitz -- remember what subdivide_size value was when this map was loaded
|
|
|
|
|
2010-02-15 23:26:55 +00:00
|
|
|
extern float r_world_matrix[16];
|
|
|
|
|
|
|
|
// Multitexture
|
2011-12-30 14:00:28 +00:00
|
|
|
extern qboolean mtexenabled;
|
|
|
|
extern qboolean gl_mtexable;
|
|
|
|
#define TEXTURE0_SGIS 0x835E
|
|
|
|
#define TEXTURE1_SGIS 0x835F
|
2010-02-15 23:26:55 +00:00
|
|
|
//johnfitz -- modified multitexture support
|
|
|
|
extern PFNGLMULTITEXCOORD2FARBPROC GL_MTexCoord2fFunc;
|
|
|
|
extern PFNGLACTIVETEXTUREARBPROC GL_SelectTextureFunc;
|
|
|
|
extern GLenum TEXTURE0, TEXTURE1;
|
2010-04-23 09:50:44 +00:00
|
|
|
//johnfitz
|
2010-02-15 23:26:55 +00:00
|
|
|
|
|
|
|
//johnfitz -- anisotropic filtering
|
2011-12-30 14:00:28 +00:00
|
|
|
#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
|
|
|
|
#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
|
|
|
|
extern float gl_max_anisotropy;
|
|
|
|
extern qboolean gl_anisotropy_able;
|
2010-02-15 23:26:55 +00:00
|
|
|
//johnfitz
|
|
|
|
|
2014-07-11 06:56:09 +00:00
|
|
|
//ericw -- NPOT texture support
|
|
|
|
extern qboolean gl_texture_NPOT;
|
|
|
|
//ericw
|
|
|
|
|
2010-02-15 23:26:55 +00:00
|
|
|
//johnfitz -- polygon offset
|
|
|
|
#define OFFSET_BMODEL 1
|
|
|
|
#define OFFSET_NONE 0
|
|
|
|
#define OFFSET_DECAL -1
|
|
|
|
#define OFFSET_FOG -2
|
|
|
|
#define OFFSET_SHOWTRIS -3
|
|
|
|
void GL_PolygonOffset (int);
|
|
|
|
//johnfitz
|
|
|
|
|
|
|
|
//johnfitz -- GL_EXT_texture_env_combine
|
|
|
|
//the values for GL_ARB_ are identical
|
2014-07-12 07:50:57 +00:00
|
|
|
#define GL_COMBINE_EXT 0x8570
|
|
|
|
#define GL_COMBINE_RGB_EXT 0x8571
|
2010-02-15 23:26:55 +00:00
|
|
|
#define GL_COMBINE_ALPHA_EXT 0x8572
|
2014-07-12 07:50:57 +00:00
|
|
|
#define GL_RGB_SCALE_EXT 0x8573
|
|
|
|
#define GL_CONSTANT_EXT 0x8576
|
2010-02-15 23:26:55 +00:00
|
|
|
#define GL_PRIMARY_COLOR_EXT 0x8577
|
2014-07-12 07:50:57 +00:00
|
|
|
#define GL_PREVIOUS_EXT 0x8578
|
|
|
|
#define GL_SOURCE0_RGB_EXT 0x8580
|
|
|
|
#define GL_SOURCE1_RGB_EXT 0x8581
|
2010-02-15 23:26:55 +00:00
|
|
|
#define GL_SOURCE0_ALPHA_EXT 0x8588
|
|
|
|
#define GL_SOURCE1_ALPHA_EXT 0x8589
|
|
|
|
extern qboolean gl_texture_env_combine;
|
2011-12-30 14:00:28 +00:00
|
|
|
extern qboolean gl_texture_env_add; // for GL_EXT_texture_env_add
|
2010-02-15 23:26:55 +00:00
|
|
|
//johnfitz
|
|
|
|
|
|
|
|
//johnfitz -- rendering statistics
|
|
|
|
extern int rs_brushpolys, rs_aliaspolys, rs_skypolys, rs_particles, rs_fogpolys;
|
|
|
|
extern int rs_dynamiclightmaps, rs_brushpasses, rs_aliaspasses, rs_skypasses;
|
|
|
|
extern float rs_megatexels;
|
|
|
|
//johnfitz
|
|
|
|
|
|
|
|
//johnfitz -- track developer statistics that vary every frame
|
|
|
|
extern cvar_t devstats;
|
|
|
|
typedef struct {
|
|
|
|
int packetsize;
|
|
|
|
int edicts;
|
|
|
|
int visedicts;
|
|
|
|
int efrags;
|
|
|
|
int tempents;
|
|
|
|
int beams;
|
|
|
|
int dlights;
|
|
|
|
} devstats_t;
|
2010-04-22 19:02:29 +00:00
|
|
|
extern devstats_t dev_stats, dev_peakstats;
|
2010-02-15 23:26:55 +00:00
|
|
|
//johnfitz
|
|
|
|
|
|
|
|
//ohnfitz -- reduce overflow warning spam
|
|
|
|
typedef struct {
|
|
|
|
double packetsize;
|
|
|
|
double efrags;
|
|
|
|
double beams;
|
|
|
|
} overflowtimes_t;
|
2010-04-22 19:02:29 +00:00
|
|
|
extern overflowtimes_t dev_overflows; //this stores the last time overflow messages were displayed, not the last time overflows occured
|
2010-02-15 23:26:55 +00:00
|
|
|
#define CONSOLE_RESPAM_TIME 3 // seconds between repeated warning messages
|
|
|
|
//johnfitz
|
|
|
|
|
|
|
|
//johnfitz -- moved here from r_brush.c
|
2011-12-30 14:00:28 +00:00
|
|
|
extern int gl_lightmap_format, lightmap_bytes;
|
2010-02-15 23:26:55 +00:00
|
|
|
#define MAX_LIGHTMAPS 256 //johnfitz -- was 64
|
2010-04-22 19:02:29 +00:00
|
|
|
extern gltexture_t *lightmap_textures[MAX_LIGHTMAPS]; //johnfitz -- changed to an array
|
2010-02-15 23:26:55 +00:00
|
|
|
//johnfitz
|
|
|
|
|
2010-04-22 19:02:29 +00:00
|
|
|
extern int gl_warpimagesize; //johnfitz -- for water warp
|
2010-02-15 23:26:55 +00:00
|
|
|
|
2010-04-22 19:02:29 +00:00
|
|
|
extern qboolean r_drawflat_cheatsafe, r_fullbright_cheatsafe, r_lightmap_cheatsafe, r_drawworld_cheatsafe; //johnfitz
|
2010-02-15 23:26:55 +00:00
|
|
|
|
|
|
|
//johnfitz -- fog functions called from outside gl_fog.c
|
|
|
|
void Fog_ParseServerMessage (void);
|
|
|
|
float *Fog_GetColor (void);
|
|
|
|
float Fog_GetDensity (void);
|
|
|
|
void Fog_EnableGFog (void);
|
|
|
|
void Fog_DisableGFog (void);
|
|
|
|
void Fog_StartAdditive (void);
|
|
|
|
void Fog_StopAdditive (void);
|
|
|
|
void Fog_SetupFrame (void);
|
|
|
|
void Fog_NewMap (void);
|
|
|
|
void Fog_Init (void);
|
|
|
|
//johnfitz
|
chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h,
cvar.h, draw.h, gl_draw.c, gl_fog.c, gl_mesh.c, gl_model.c, gl_model.h,
gl_rmain.c, gl_rmisc.c, gl_screen.c, gl_sky.c, gl_texmgr.c, glquake.h,
host.c, keys.c, keys.h, main.c, menu.c, menu.h, pr_cmds.c, quakedef.h,
r_alias.c, r_brush.c, r_part.c, r_sprite.c, r_world.c, sbar.c, sbar.h,
screen.h, snd_dma.c, snd_mem.c, snd_mix.c, sv_main.c, sys_sdl.c, vid.h,
view.h, world.c, world.h: Loads of warning fixes about missing function
prototypes, missing parens around &, missing braces leading to ambiguous
else statements and unused and uninitialized variables. There are still a
couple of unitialised variables here and there, but not much. The warnings
about strict aliasing violations need taking care of.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@21 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-02-16 12:01:07 +00:00
|
|
|
|
|
|
|
void R_NewGame (void);
|
|
|
|
|
|
|
|
void R_AnimateLight (void);
|
|
|
|
void R_MarkSurfaces (void);
|
|
|
|
void R_CullSurfaces (void);
|
|
|
|
qboolean R_CullBox (vec3_t emins, vec3_t emaxs);
|
|
|
|
void R_StoreEfrags (efrag_t **ppefrag);
|
|
|
|
qboolean R_CullModelForEntity (entity_t *e);
|
|
|
|
void R_RotateForEntity (vec3_t origin, vec3_t angles);
|
2012-07-10 11:21:17 +00:00
|
|
|
void R_MarkLights (dlight_t *light, int num, mnode_t *node);
|
chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h,
cvar.h, draw.h, gl_draw.c, gl_fog.c, gl_mesh.c, gl_model.c, gl_model.h,
gl_rmain.c, gl_rmisc.c, gl_screen.c, gl_sky.c, gl_texmgr.c, glquake.h,
host.c, keys.c, keys.h, main.c, menu.c, menu.h, pr_cmds.c, quakedef.h,
r_alias.c, r_brush.c, r_part.c, r_sprite.c, r_world.c, sbar.c, sbar.h,
screen.h, snd_dma.c, snd_mem.c, snd_mix.c, sv_main.c, sys_sdl.c, vid.h,
view.h, world.c, world.h: Loads of warning fixes about missing function
prototypes, missing parens around &, missing braces leading to ambiguous
else statements and unused and uninitialized variables. There are still a
couple of unitialised variables here and there, but not much. The warnings
about strict aliasing violations need taking care of.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@21 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-02-16 12:01:07 +00:00
|
|
|
|
|
|
|
void R_InitParticles (void);
|
|
|
|
void R_DrawParticles (void);
|
|
|
|
void CL_RunParticles (void);
|
|
|
|
void R_ClearParticles (void);
|
|
|
|
|
|
|
|
void R_TranslatePlayerSkin (int playernum);
|
|
|
|
void R_TranslateNewPlayerSkin (int playernum); //johnfitz -- this handles cases when the actual texture changes
|
|
|
|
void R_UpdateWarpTextures (void);
|
|
|
|
|
|
|
|
void R_DrawWorld (void);
|
|
|
|
void R_DrawAliasModel (entity_t *e);
|
|
|
|
void R_DrawBrushModel (entity_t *e);
|
|
|
|
void R_DrawSpriteModel (entity_t *e);
|
|
|
|
|
|
|
|
void R_DrawTextureChains_Water (void);
|
|
|
|
|
|
|
|
void R_RenderDlights (void);
|
|
|
|
void GL_BuildLightmaps (void);
|
|
|
|
void R_RebuildAllLightmaps (void);
|
|
|
|
|
|
|
|
int R_LightPoint (vec3_t p);
|
|
|
|
|
|
|
|
void GL_SubdivideSurface (msurface_t *fa);
|
|
|
|
void R_BuildLightMap (msurface_t *surf, byte *dest, int stride);
|
|
|
|
void R_RenderDynamicLightmaps (msurface_t *fa);
|
2014-07-12 07:50:57 +00:00
|
|
|
void R_UploadLightmaps (void);
|
chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h,
cvar.h, draw.h, gl_draw.c, gl_fog.c, gl_mesh.c, gl_model.c, gl_model.h,
gl_rmain.c, gl_rmisc.c, gl_screen.c, gl_sky.c, gl_texmgr.c, glquake.h,
host.c, keys.c, keys.h, main.c, menu.c, menu.h, pr_cmds.c, quakedef.h,
r_alias.c, r_brush.c, r_part.c, r_sprite.c, r_world.c, sbar.c, sbar.h,
screen.h, snd_dma.c, snd_mem.c, snd_mix.c, sv_main.c, sys_sdl.c, vid.h,
view.h, world.c, world.h: Loads of warning fixes about missing function
prototypes, missing parens around &, missing braces leading to ambiguous
else statements and unused and uninitialized variables. There are still a
couple of unitialised variables here and there, but not much. The warnings
about strict aliasing violations need taking care of.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@21 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-02-16 12:01:07 +00:00
|
|
|
|
|
|
|
void R_DrawTextureChains_ShowTris (void);
|
|
|
|
void R_DrawBrushModel_ShowTris (entity_t *e);
|
|
|
|
void R_DrawAliasModel_ShowTris (entity_t *e);
|
|
|
|
void R_DrawParticles_ShowTris (void);
|
|
|
|
|
|
|
|
void GL_DrawAliasShadow (entity_t *e);
|
|
|
|
void DrawGLTriangleFan (glpoly_t *p);
|
|
|
|
void DrawGLPoly (glpoly_t *p);
|
|
|
|
void DrawWaterPoly (glpoly_t *p);
|
2012-05-30 08:56:06 +00:00
|
|
|
void GL_MakeAliasModelDisplayLists (qmodel_t *m, aliashdr_t *hdr);
|
chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h,
cvar.h, draw.h, gl_draw.c, gl_fog.c, gl_mesh.c, gl_model.c, gl_model.h,
gl_rmain.c, gl_rmisc.c, gl_screen.c, gl_sky.c, gl_texmgr.c, glquake.h,
host.c, keys.c, keys.h, main.c, menu.c, menu.h, pr_cmds.c, quakedef.h,
r_alias.c, r_brush.c, r_part.c, r_sprite.c, r_world.c, sbar.c, sbar.h,
screen.h, snd_dma.c, snd_mem.c, snd_mix.c, sv_main.c, sys_sdl.c, vid.h,
view.h, world.c, world.h: Loads of warning fixes about missing function
prototypes, missing parens around &, missing braces leading to ambiguous
else statements and unused and uninitialized variables. There are still a
couple of unitialised variables here and there, but not much. The warnings
about strict aliasing violations need taking care of.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@21 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-02-16 12:01:07 +00:00
|
|
|
|
|
|
|
void Sky_Init (void);
|
|
|
|
void Sky_DrawSky (void);
|
|
|
|
void Sky_NewMap (void);
|
|
|
|
void Sky_LoadTexture (texture_t *mt);
|
2010-08-29 02:22:55 +00:00
|
|
|
void Sky_LoadSkyBox (const char *name);
|
chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h,
cvar.h, draw.h, gl_draw.c, gl_fog.c, gl_mesh.c, gl_model.c, gl_model.h,
gl_rmain.c, gl_rmisc.c, gl_screen.c, gl_sky.c, gl_texmgr.c, glquake.h,
host.c, keys.c, keys.h, main.c, menu.c, menu.h, pr_cmds.c, quakedef.h,
r_alias.c, r_brush.c, r_part.c, r_sprite.c, r_world.c, sbar.c, sbar.h,
screen.h, snd_dma.c, snd_mem.c, snd_mix.c, sv_main.c, sys_sdl.c, vid.h,
view.h, world.c, world.h: Loads of warning fixes about missing function
prototypes, missing parens around &, missing braces leading to ambiguous
else statements and unused and uninitialized variables. There are still a
couple of unitialised variables here and there, but not much. The warnings
about strict aliasing violations need taking care of.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@21 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-02-16 12:01:07 +00:00
|
|
|
|
|
|
|
void TexMgr_RecalcWarpImageSize (void);
|
|
|
|
|
bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h,
d_ifacea.h, draw.h, gl_texmgr.h, glquake.h, image.h, input.h, keys.h, mathlib.h,
menu.h, modelgen.h, net.h, net_dgrm.h, net_loop.h, net_sdlnet.h, net_udp.h,
net_wins.h, platform.h, pr_comp.h, progdefs.h, progs.h, protocol.h, quakedef.h,
render.h, resource.h, sbar.h, screen.h, server.h, sound.h, spritegn.h, sys.h,
vid.h, view.h, wad.h, world.h, zone.h: added include guards to the headers.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@84 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-02-21 00:01:08 +00:00
|
|
|
#endif /* __GLQUAKE_H */
|
|
|
|
|