mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-24 19:23:00 +00:00
[renderer] Remove namehack.h
Finally. I never liked it (felt bad adding it in the first place), and it has caused confusion with function and global variable names, but it did let me get the render plugins working.
This commit is contained in:
parent
04ba724382
commit
56c39c34ba
45 changed files with 347 additions and 396 deletions
44
include/QF/GL/qf_alias.h
Normal file
44
include/QF/GL/qf_alias.h
Normal file
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
qf_alias.h
|
||||
|
||||
GL specific alias model stuff
|
||||
|
||||
Copyright (C) 2012 Bill Currie <bill@taniwha.org>
|
||||
|
||||
Author: Bill Currie <bill@taniwha.org>
|
||||
Date: 2012/1/1
|
||||
|
||||
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:
|
||||
|
||||
Free Software Foundation, Inc.
|
||||
59 Temple Place - Suite 330
|
||||
Boston, MA 02111-1307, USA
|
||||
|
||||
*/
|
||||
#ifndef __QF_GL_qf_alias_h
|
||||
#define __QF_GL_qf_alias_h
|
||||
|
||||
#include "QF/GL/types.h"
|
||||
|
||||
typedef struct aliasvrt_s {
|
||||
GLshort st[2];
|
||||
GLshort normal[3];
|
||||
GLushort vertex[3];
|
||||
} aliasvrt_t;
|
||||
|
||||
struct entity_s;
|
||||
void gl_R_DrawAliasModel (struct entity_s *ent);
|
||||
|
||||
#endif//__QF_GL_qf_alias_h
|
|
@ -28,8 +28,35 @@
|
|||
#ifndef __gl_draw_h
|
||||
#define __gl_draw_h
|
||||
|
||||
struct qpic_s;
|
||||
|
||||
void gl_Draw_Init (void);
|
||||
void gl_Draw_Shutdown (void);
|
||||
void gl_Draw_Character (int x, int y, unsigned ch);
|
||||
void gl_Draw_String (int x, int y, const char *str);
|
||||
void gl_Draw_nString (int x, int y, const char *str, int count);
|
||||
void gl_Draw_AltString (int x, int y, const char *str);
|
||||
void gl_Draw_ConsoleBackground (int lines, byte alpha);
|
||||
void gl_Draw_Crosshair (void);
|
||||
void gl_Draw_CrosshairAt (int ch, int x, int y);
|
||||
void gl_Draw_TileClear (int x, int y, int w, int h);
|
||||
void gl_Draw_Fill (int x, int y, int w, int h, int c);
|
||||
void gl_Draw_TextBox (int x, int y, int width, int lines, byte alpha);
|
||||
void gl_Draw_FadeScreen (void);
|
||||
void gl_Draw_BlendScreen (quat_t color);
|
||||
struct qpic_s *gl_Draw_CachePic (const char *path, qboolean alpha);
|
||||
void gl_Draw_UncachePic (const char *path);
|
||||
struct qpic_s *gl_Draw_MakePic (int width, int height, const byte *data);
|
||||
void gl_Draw_DestroyPic (struct qpic_s *pic);
|
||||
struct qpic_s *gl_Draw_PicFromWad (const char *name);
|
||||
void gl_Draw_Pic (int x, int y, struct qpic_s *pic);
|
||||
void gl_Draw_Picf (float x, float y, struct qpic_s *pic);
|
||||
void gl_Draw_SubPic(int x, int y, struct qpic_s *pic,
|
||||
int srcx, int srcy, int width, int height);
|
||||
|
||||
void GL_Set2D (void);
|
||||
void GL_Set2DScaled (void);
|
||||
void GL_End2D (void);
|
||||
void GL_DrawReset (void);
|
||||
void GL_FlushText (void);
|
||||
|
||||
|
|
|
@ -48,8 +48,8 @@ extern glRect_t gl_lightmap_rectchange[MAX_LIGHTMAPS];
|
|||
void GL_BuildSurfaceDisplayList (msurface_t *fa);
|
||||
void gl_lightmap_init (void);
|
||||
void GL_BuildLightmaps (struct model_s **models, int num_models);
|
||||
void R_BlendLightmaps (void);
|
||||
void R_CalcLightmaps (void);
|
||||
void gl_R_BlendLightmaps (void);
|
||||
void gl_R_CalcLightmaps (void);
|
||||
struct transform_s;
|
||||
extern void (*gl_R_BuildLightMap) (const struct transform_s *transform,
|
||||
mod_brush_t *brush, msurface_t *surf);
|
||||
|
|
45
include/QF/GL/qf_particles.h
Normal file
45
include/QF/GL/qf_particles.h
Normal file
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
qf_particles.h
|
||||
|
||||
GL specific particles stuff
|
||||
|
||||
Copyright (C) 2012 Bill Currie <bill@taniwha.org>
|
||||
|
||||
Author: Bill Currie <bill@taniwha.org>
|
||||
Date: 2012/1/15
|
||||
|
||||
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:
|
||||
|
||||
Free Software Foundation, Inc.
|
||||
59 Temple Place - Suite 330
|
||||
Boston, MA 02111-1307, USA
|
||||
|
||||
*/
|
||||
#ifndef __QF_GL_qf_particles_h
|
||||
#define __QF_GL_qf_particles_h
|
||||
|
||||
#include "QF/GL/types.h"
|
||||
|
||||
typedef struct {
|
||||
float texcoord[2];
|
||||
float vertex[3];
|
||||
byte color[4];
|
||||
} partvert_t;
|
||||
|
||||
void gl_R_DrawParticles (void);
|
||||
void gl_R_Particles_Init_Cvars (void);
|
||||
void gl_R_InitParticles (void);
|
||||
|
||||
#endif//__QF_GL_qf_particles_h
|
|
@ -29,6 +29,7 @@
|
|||
#define __QF_GL_rlight_h
|
||||
|
||||
extern float gl_bubble_sintable[], gl_bubble_costable[];
|
||||
void R_RenderDlights (void);
|
||||
void gl_R_RenderDlights (void);
|
||||
void gl_R_InitBubble (void);
|
||||
|
||||
#endif // __QF_GL_rlight_h
|
||||
|
|
|
@ -35,7 +35,6 @@ struct entity_s;
|
|||
|
||||
extern qboolean gl_envmap;
|
||||
extern int c_brush_polys, c_alias_polys;
|
||||
extern float r_world_matrix[16];
|
||||
|
||||
extern float gl_modelalpha;
|
||||
//extern vec3_t shadecolor;
|
||||
|
@ -43,6 +42,15 @@ extern float gl_modelalpha;
|
|||
extern void gl_multitexture_f (struct cvar_s *var);
|
||||
|
||||
void glrmain_init (void);
|
||||
void R_RotateForEntity (struct entity_s *e);
|
||||
void gl_R_RotateForEntity (struct entity_s *e);
|
||||
|
||||
struct model_s;
|
||||
void gl_R_NewMap (struct model_s *worldmodel, struct model_s **models,
|
||||
int num_models);
|
||||
void gl_R_RenderView (void);
|
||||
void gl_R_ClearState (void);
|
||||
void gl_R_ViewChanged (void);
|
||||
void gl_R_LineGraph (int x, int y, int *h_vals, int count, int height);
|
||||
int gl_R_InitGraphTextures (int base);
|
||||
|
||||
#endif // __QF_GL_rmain_h
|
||||
|
|
|
@ -41,13 +41,21 @@ extern int gl_mirrortexturenum; // quake texturenum, not gltexturenum
|
|||
struct model_s;
|
||||
struct entity_s;
|
||||
struct msurface_s;
|
||||
struct mod_brush_s;
|
||||
|
||||
void gl_lightmap_init (void);
|
||||
void GL_BuildLightmaps (struct model_s **models, int num_models);
|
||||
|
||||
void R_DrawBrushModel (struct entity_s *e);
|
||||
void R_DrawWorld (void);
|
||||
void gl_R_DrawBrushModel (struct entity_s *e);
|
||||
void gl_R_DrawWorld (void);
|
||||
void gl_R_DrawWaterSurfaces (void);
|
||||
|
||||
void GL_EmitWaterPolys (struct msurface_s *fa);
|
||||
void gl_R_LoadSkys (const char *sky);
|
||||
|
||||
struct texture_s;
|
||||
void gl_R_AddTexture (struct texture_s *tx);
|
||||
void gl_R_ClearTextures (void);
|
||||
void gl_R_InitSurfaceChains (struct mod_brush_s *brush);
|
||||
|
||||
#endif // __QF_GL_rsurf_h
|
||||
|
|
|
@ -36,7 +36,11 @@
|
|||
extern qboolean gl_skyloaded;
|
||||
extern vec5_t gl_skyvec[6][4];
|
||||
|
||||
void R_DrawSky (void);
|
||||
void R_DrawSkyChain (const instsurf_t *s);
|
||||
struct texture_s;
|
||||
|
||||
void gl_R_InitSky (struct texture_s *mt);
|
||||
void gl_R_DrawSky (void);
|
||||
void gl_R_DrawSkyChain (const instsurf_t *s);
|
||||
void gl_R_LoadSkys (const char *skyname);
|
||||
|
||||
#endif // __QF_GL_sky_h
|
||||
|
|
37
include/QF/GL/qf_sprite.h
Normal file
37
include/QF/GL/qf_sprite.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
qf_sprite.h
|
||||
|
||||
GL specific sprite model stuff
|
||||
|
||||
Copyright (C) 2021 Bill Currie <bill@taniwha.org>
|
||||
|
||||
Author: Bill Currie <bill@taniwha.org>
|
||||
Date: 2021/7/22
|
||||
|
||||
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:
|
||||
|
||||
Free Software Foundation, Inc.
|
||||
59 Temple Place - Suite 330
|
||||
Boston, MA 02111-1307, USA
|
||||
|
||||
*/
|
||||
#ifndef __QF_GL_qf_sprite_h
|
||||
#define __QF_GL_qf_sprite_h
|
||||
|
||||
struct entity_s;
|
||||
void gl_R_InitSprites (void);
|
||||
extern void (*gl_R_DrawSpriteModel) (struct entity_s *ent);
|
||||
|
||||
#endif//__QF_GL_qf_sprite_h
|
|
@ -68,8 +68,10 @@ struct model_s;
|
|||
void glsl_R_ClearElements (void);
|
||||
void glsl_R_DrawWorld (void);
|
||||
void glsl_R_DrawSky (void);
|
||||
void glsl_R_DrawWaterSurfaces (void);
|
||||
void glsl_R_RegisterTextures (struct model_s **models, int num_models);
|
||||
void glsl_R_BuildDisplayLists (struct model_s **models, int num_models);
|
||||
void glsl_R_InitBsp (void);
|
||||
void glsl_R_LoadSkys (const char *sky);
|
||||
|
||||
#endif//__QF_GLSL_qf_bsp_h
|
||||
|
|
|
@ -25,8 +25,34 @@
|
|||
|
||||
*/
|
||||
|
||||
#ifndef __gl_draw_h
|
||||
#define __gl_draw_h
|
||||
#ifndef __QF_GLSL_qf_draw_h
|
||||
#define __QF_GLSL_qf_draw_h
|
||||
|
||||
struct qpic_s;
|
||||
|
||||
void glsl_Draw_Init (void);
|
||||
void glsl_Draw_Shutdown (void);
|
||||
void glsl_Draw_Character (int x, int y, unsigned ch);
|
||||
void glsl_Draw_String (int x, int y, const char *str);
|
||||
void glsl_Draw_nString (int x, int y, const char *str, int count);
|
||||
void glsl_Draw_AltString (int x, int y, const char *str);
|
||||
void glsl_Draw_ConsoleBackground (int lines, byte alpha);
|
||||
void glsl_Draw_Crosshair (void);
|
||||
void glsl_Draw_CrosshairAt (int ch, int x, int y);
|
||||
void glsl_Draw_TileClear (int x, int y, int w, int h);
|
||||
void glsl_Draw_Fill (int x, int y, int w, int h, int c);
|
||||
void glsl_Draw_TextBox (int x, int y, int width, int lines, byte alpha);
|
||||
void glsl_Draw_FadeScreen (void);
|
||||
void glsl_Draw_BlendScreen (quat_t color);
|
||||
struct qpic_s *glsl_Draw_CachePic (const char *path, qboolean alpha);
|
||||
void glsl_Draw_UncachePic (const char *path);
|
||||
struct qpic_s *glsl_Draw_MakePic (int width, int height, const byte *data);
|
||||
void glsl_Draw_DestroyPic (struct qpic_s *pic);
|
||||
struct qpic_s *glsl_Draw_PicFromWad (const char *name);
|
||||
void glsl_Draw_Pic (int x, int y, struct qpic_s *pic);
|
||||
void glsl_Draw_Picf (float x, float y, struct qpic_s *pic);
|
||||
void glsl_Draw_SubPic(int x, int y, struct qpic_s *pic,
|
||||
int srcx, int srcy, int width, int height);
|
||||
|
||||
void GLSL_Set2D (void);
|
||||
void GLSL_Set2DScaled (void);
|
||||
|
@ -34,4 +60,4 @@ void GLSL_End2D (void);
|
|||
void GLSL_DrawReset (void);
|
||||
void GLSL_FlushText (void);
|
||||
|
||||
#endif//__gl_draw_h
|
||||
#endif//__QF_GLSL_qf_draw_h
|
||||
|
|
37
include/QF/GLSL/qf_main.h
Normal file
37
include/QF/GLSL/qf_main.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
qf_main.h
|
||||
|
||||
glsl main stuff from the renderer.
|
||||
|
||||
Copyright (C) 2021 Bill Currie <bill@taniwha.org>
|
||||
|
||||
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:
|
||||
|
||||
Free Software Foundation, Inc.
|
||||
59 Temple Place - Suite 330
|
||||
Boston, MA 02111-1307, USA
|
||||
|
||||
*/
|
||||
|
||||
#ifndef __QF_GLSL_qf_main_h
|
||||
#define __QF_GLSL_qf_main_h
|
||||
|
||||
void glsl_R_NewMap (model_t *worldmodel, model_t **models, int num_models);
|
||||
void glsl_R_RenderView (void);
|
||||
void glsl_R_ClearState (void);
|
||||
void glsl_R_ViewChanged (void);
|
||||
void glsl_R_LineGraph (int x, int y, int *h_vals, int count, int height);
|
||||
|
||||
#endif//__QF_GLSL_qf_main_h
|
|
@ -27,8 +27,8 @@
|
|||
Boston, MA 02111-1307, USA
|
||||
|
||||
*/
|
||||
#ifndef __QF_GLSL_qf_bsp_h
|
||||
#define __QF_GLSL_qf_bsp_h
|
||||
#ifndef __QF_GLSL_qf_particles_h
|
||||
#define __QF_GLSL_qf_particles_h
|
||||
|
||||
#include "QF/GLSL/types.h"
|
||||
|
||||
|
@ -38,4 +38,8 @@ typedef struct {
|
|||
byte color[4];
|
||||
} partvert_t;
|
||||
|
||||
#endif//__QF_GLSL_qf_bsp_h
|
||||
void glsl_R_DrawParticles (void);
|
||||
void glsl_R_Particles_Init_Cvars (void);
|
||||
void glsl_R_InitParticles (void);
|
||||
|
||||
#endif//__QF_GLSL_qf_particles_h
|
||||
|
|
|
@ -32,5 +32,8 @@
|
|||
|
||||
struct entity_s;
|
||||
void glsl_R_DrawSprite (struct entity_s *ent);
|
||||
void glsl_R_SpriteBegin (void);
|
||||
void glsl_R_SpriteEnd (void);
|
||||
void glsl_R_InitSprites (void);
|
||||
|
||||
#endif//__QF_GLSL_qf_sprite_h
|
||||
|
|
|
@ -80,15 +80,17 @@ include_qf_gl = \
|
|||
include/QF/GL/defines.h \
|
||||
include/QF/GL/extensions.h \
|
||||
include/QF/GL/funcs.h \
|
||||
include/QF/GL/qf_alias.h \
|
||||
include/QF/GL/qf_draw.h \
|
||||
include/QF/GL/qf_explosions.h \
|
||||
include/QF/GL/qf_funcs_list.h \
|
||||
include/QF/GL/qf_iqm.h \
|
||||
include/QF/GL/qf_lightmap.h \
|
||||
include/QF/GL/qf_particles.h \
|
||||
include/QF/GL/qf_rlight.h \
|
||||
include/QF/GL/qf_rmain.h \
|
||||
include/QF/GL/qf_rsurf.h \
|
||||
include/QF/GL/qf_sky.h \
|
||||
include/QF/GL/qf_sprite.h \
|
||||
include/QF/GL/qf_textures.h \
|
||||
include/QF/GL/qf_vid.h \
|
||||
include/QF/GL/types.h
|
||||
|
@ -102,6 +104,7 @@ include_qf_glsl = \
|
|||
include/QF/GLSL/qf_funcs_list.h \
|
||||
include/QF/GLSL/qf_iqm.h \
|
||||
include/QF/GLSL/qf_lightmap.h \
|
||||
include/QF/GLSL/qf_main.h \
|
||||
include/QF/GLSL/qf_particles.h \
|
||||
include/QF/GLSL/qf_sprite.h \
|
||||
include/QF/GLSL/qf_textures.h \
|
||||
|
|
|
@ -84,7 +84,6 @@ libs_video_renderer_librender_gl_la_SOURCES = \
|
|||
libs/video/renderer/gl/gl_sky_clip.c \
|
||||
libs/video/renderer/gl/gl_textures.c \
|
||||
libs/video/renderer/gl/gl_warp.c \
|
||||
libs/video/renderer/gl/namehack.h \
|
||||
libs/video/renderer/gl/qfgl_ext.c \
|
||||
libs/video/renderer/gl/vid_common_gl.c \
|
||||
libs/video/renderer/gl/vtxarray.c
|
||||
|
@ -119,7 +118,6 @@ libs_video_renderer_librender_glsl_la_SOURCES = \
|
|||
libs/video/renderer/glsl/glsl_shader.c \
|
||||
libs/video/renderer/glsl/glsl_sprite.c \
|
||||
libs/video/renderer/glsl/glsl_textures.c \
|
||||
libs/video/renderer/glsl/namehack.h \
|
||||
libs/video/renderer/glsl/qfglsl.c \
|
||||
libs/video/renderer/glsl/quakeforge.glsl \
|
||||
libs/video/renderer/glsl/vid_common_glsl.c
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
@ -53,7 +50,7 @@
|
|||
|
||||
#include "QF/GL/defines.h"
|
||||
#include "QF/GL/funcs.h"
|
||||
#include "QF/GL/qf_explosions.h"
|
||||
#include "QF/GL/qf_particles.h"
|
||||
#include "QF/GL/qf_textures.h"
|
||||
#include "QF/GL/qf_vid.h"
|
||||
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
@ -47,6 +44,7 @@
|
|||
#include "QF/sys.h"
|
||||
#include "QF/GL/defines.h"
|
||||
#include "QF/GL/funcs.h"
|
||||
#include "QF/GL/qf_rmain.h"
|
||||
#include "QF/GL/qf_textures.h"
|
||||
|
||||
#include "r_internal.h"
|
||||
|
|
|
@ -29,9 +29,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
@ -55,6 +52,7 @@
|
|||
|
||||
#include "QF/GL/defines.h"
|
||||
#include "QF/GL/funcs.h"
|
||||
#include "QF/GL/qf_alias.h"
|
||||
#include "QF/GL/qf_rlight.h"
|
||||
#include "QF/GL/qf_rmain.h"
|
||||
#include "QF/GL/qf_rsurf.h"
|
||||
|
|
|
@ -31,9 +31,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
@ -46,6 +43,7 @@
|
|||
|
||||
#include "QF/GL/defines.h"
|
||||
#include "QF/GL/funcs.h"
|
||||
#include "QF/GL/qf_sprite.h"
|
||||
|
||||
#include "compat.h"
|
||||
#include "r_internal.h"
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
@ -56,11 +53,14 @@
|
|||
|
||||
#include "QF/GL/defines.h"
|
||||
#include "QF/GL/funcs.h"
|
||||
#include "QF/GL/qf_alias.h"
|
||||
#include "QF/GL/qf_draw.h"
|
||||
#include "QF/GL/qf_iqm.h"
|
||||
#include "QF/GL/qf_particles.h"
|
||||
#include "QF/GL/qf_rlight.h"
|
||||
#include "QF/GL/qf_rmain.h"
|
||||
#include "QF/GL/qf_rsurf.h"
|
||||
#include "QF/GL/qf_sprite.h"
|
||||
#include "QF/GL/qf_vid.h"
|
||||
|
||||
#include "compat.h"
|
||||
|
@ -89,9 +89,6 @@ static unsigned int GLErr_StackOverflow;
|
|||
static unsigned int GLErr_StackUnderflow;
|
||||
static unsigned int GLErr_Unknown;
|
||||
|
||||
extern void (*R_DrawSpriteModel) (struct entity_s *ent);
|
||||
|
||||
|
||||
static unsigned int
|
||||
R_TestErrors (unsigned int numerous)
|
||||
{
|
||||
|
@ -258,7 +255,7 @@ R_DrawEntitiesOnList (void)
|
|||
qfglInterleavedArrays (GL_T2F_C4UB_V3F, 0, gl_spriteVertexArray);
|
||||
for (size_t i = 0; i < r_ent_queue->ent_queues[mod_sprite].size; i++) { \
|
||||
entity_t *ent = r_ent_queue->ent_queues[mod_sprite].a[i]; \
|
||||
R_DrawSpriteModel (ent);
|
||||
gl_R_DrawSpriteModel (ent);
|
||||
}
|
||||
qfglDisable (GL_ALPHA_TEST);
|
||||
}
|
||||
|
@ -324,7 +321,7 @@ R_DrawViewModel (void)
|
|||
qfglDepthRange (gldepthmin, gldepthmax);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
gl_R_SetupFrame (void)
|
||||
{
|
||||
R_AnimateLight ();
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
@ -56,8 +53,13 @@
|
|||
#include "QF/vid.h"
|
||||
#include "QF/GL/defines.h"
|
||||
#include "QF/GL/funcs.h"
|
||||
#include "QF/GL/qf_draw.h"
|
||||
#include "QF/GL/qf_particles.h"
|
||||
#include "QF/GL/qf_rlight.h"
|
||||
#include "QF/GL/qf_rmain.h"
|
||||
#include "QF/GL/qf_rsurf.h"
|
||||
#include "QF/GL/qf_sky.h"
|
||||
#include "QF/GL/qf_sprite.h"
|
||||
#include "QF/GL/qf_textures.h"
|
||||
#include "QF/GL/qf_vid.h"
|
||||
|
||||
|
@ -128,7 +130,7 @@ R_Envmap_f (void)
|
|||
gl_ctx->end_rendering ();*/
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
gl_R_LoadSky_f (void)
|
||||
{
|
||||
if (Cmd_Argc () != 2) {
|
||||
|
@ -139,6 +141,34 @@ gl_R_LoadSky_f (void)
|
|||
gl_R_LoadSkys (Cmd_Argv (1));
|
||||
}
|
||||
|
||||
/*
|
||||
R_TimeRefresh_f
|
||||
|
||||
For program optimization
|
||||
LordHavoc: improved appearance and accuracy of timerefresh
|
||||
*/
|
||||
static void
|
||||
gl_R_TimeRefresh_f (void)
|
||||
{
|
||||
/*FIXME update for simd
|
||||
double start, stop, time;
|
||||
int i;
|
||||
|
||||
gl_ctx->end_rendering ();
|
||||
|
||||
start = Sys_DoubleTime ();
|
||||
for (i = 0; i < 128; i++) {
|
||||
r_refdef.viewangles[1] = i * (360.0 / 128.0);
|
||||
gl_R_RenderView ();
|
||||
gl_ctx->end_rendering ();
|
||||
}
|
||||
|
||||
stop = Sys_DoubleTime ();
|
||||
time = stop - start;
|
||||
Sys_Printf ("%g seconds (%g fps)\n", time, 128 / time);
|
||||
*/
|
||||
}
|
||||
|
||||
void
|
||||
gl_R_Init (void)
|
||||
{
|
||||
|
@ -237,31 +267,3 @@ void
|
|||
gl_R_ViewChanged (void)
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
R_TimeRefresh_f
|
||||
|
||||
For program optimization
|
||||
LordHavoc: improved appearance and accuracy of timerefresh
|
||||
*/
|
||||
void
|
||||
gl_R_TimeRefresh_f (void)
|
||||
{
|
||||
/*FIXME update for simd
|
||||
double start, stop, time;
|
||||
int i;
|
||||
|
||||
gl_ctx->end_rendering ();
|
||||
|
||||
start = Sys_DoubleTime ();
|
||||
for (i = 0; i < 128; i++) {
|
||||
r_refdef.viewangles[1] = i * (360.0 / 128.0);
|
||||
gl_R_RenderView ();
|
||||
gl_ctx->end_rendering ();
|
||||
}
|
||||
|
||||
stop = Sys_DoubleTime ();
|
||||
time = stop - start;
|
||||
Sys_Printf ("%g seconds (%g fps)\n", time, 128 / time);
|
||||
*/
|
||||
}
|
||||
|
|
|
@ -29,9 +29,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
@ -329,9 +326,6 @@ gl_R_DrawWaterSurfaces (void)
|
|||
if (!waterchain)
|
||||
return;
|
||||
|
||||
// go back to the world matrix
|
||||
qfglLoadMatrixf (gl_r_world_matrix);
|
||||
|
||||
if (wateralpha < 1.0) {
|
||||
qfglDepthMask (GL_FALSE);
|
||||
color_white[3] = wateralpha * 255;
|
||||
|
@ -342,18 +336,20 @@ gl_R_DrawWaterSurfaces (void)
|
|||
for (s = waterchain; s; s = s->tex_chain) {
|
||||
gltex_t *tex;
|
||||
surf = s->surface;
|
||||
if (s->transform)
|
||||
if (s->transform) {
|
||||
qfglPushMatrix ();
|
||||
qfglLoadMatrixf (s->transform);
|
||||
else
|
||||
qfglLoadMatrixf (gl_r_world_matrix);
|
||||
}
|
||||
tex = surf->texinfo->texture->render;
|
||||
if (i != tex->gl_texturenum) {
|
||||
i = tex->gl_texturenum;
|
||||
qfglBindTexture (GL_TEXTURE_2D, i);
|
||||
}
|
||||
GL_EmitWaterPolys (surf);
|
||||
if (s->transform) {
|
||||
qfglPopMatrix ();
|
||||
}
|
||||
}
|
||||
qfglLoadMatrixf (gl_r_world_matrix);
|
||||
|
||||
waterchain = NULL;
|
||||
waterchain_tail = &waterchain;
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
|
|
|
@ -29,9 +29,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#include "QF/cvar.h"
|
||||
#include "QF/sys.h"
|
||||
|
||||
|
|
|
@ -1,110 +0,0 @@
|
|||
#ifdef NH_DEFINE
|
||||
#undef NH_DEFINE
|
||||
#define Draw_Init gl_Draw_Init
|
||||
#define Draw_Character gl_Draw_Character
|
||||
#define Draw_String gl_Draw_String
|
||||
#define Draw_nString gl_Draw_nString
|
||||
#define Draw_AltString gl_Draw_AltString
|
||||
#define Draw_ConsoleBackground gl_Draw_ConsoleBackground
|
||||
#define Draw_Crosshair gl_Draw_Crosshair
|
||||
#define Draw_CrosshairAt gl_Draw_CrosshairAt
|
||||
#define Draw_TileClear gl_Draw_TileClear
|
||||
#define Draw_Fill gl_Draw_Fill
|
||||
#define Draw_TextBox gl_Draw_TextBox
|
||||
#define Draw_FadeScreen gl_Draw_FadeScreen
|
||||
#define Draw_BlendScreen gl_Draw_BlendScreen
|
||||
#define Draw_CachePic gl_Draw_CachePic
|
||||
#define Draw_UncachePic gl_Draw_UncachePic
|
||||
#define Draw_MakePic gl_Draw_MakePic
|
||||
#define Draw_DestroyPic gl_Draw_DestroyPic
|
||||
#define Draw_PicFromWad gl_Draw_PicFromWad
|
||||
#define Draw_Pic gl_Draw_Pic
|
||||
#define Draw_Picf gl_Draw_Picf
|
||||
#define Draw_SubPic gl_Draw_SubPic
|
||||
#define R_AddTexture gl_R_AddTexture
|
||||
#define R_BlendLightmaps gl_R_BlendLightmaps
|
||||
#define R_CalcLightmaps gl_R_CalcLightmaps
|
||||
#define R_ClearState gl_R_ClearState
|
||||
#define R_ClearTextures gl_R_ClearTextures
|
||||
#define R_DrawAliasModel gl_R_DrawAliasModel
|
||||
#define R_DrawBrushModel gl_R_DrawBrushModel
|
||||
#define R_DrawParticles gl_R_DrawParticles
|
||||
#define R_DrawSky gl_R_DrawSky
|
||||
#define R_DrawSkyChain gl_R_DrawSkyChain
|
||||
#define R_DrawSpriteModel gl_R_DrawSpriteModel
|
||||
#define R_DrawWaterSurfaces gl_R_DrawWaterSurfaces
|
||||
#define R_DrawWorld gl_R_DrawWorld
|
||||
#define R_InitBubble gl_R_InitBubble
|
||||
#define R_InitGraphTextures gl_R_InitGraphTextures
|
||||
#define R_InitParticles gl_R_InitParticles
|
||||
#define R_InitSky gl_R_InitSky
|
||||
#define R_InitSprites gl_R_InitSprites
|
||||
#define R_InitSurfaceChains gl_R_InitSurfaceChains
|
||||
#define R_LineGraph gl_R_LineGraph
|
||||
#define R_LoadSky_f gl_R_LoadSky_f
|
||||
#define R_LoadSkys gl_R_LoadSkys
|
||||
#define R_NewMap gl_R_NewMap
|
||||
#define R_Particle_New gl_R_Particle_New
|
||||
#define R_Particle_NewRandom gl_R_Particle_NewRandom
|
||||
#define R_Particles_Init_Cvars gl_R_Particles_Init_Cvars
|
||||
#define R_ReadPointFile_f gl_R_ReadPointFile_f
|
||||
#define R_RenderDlights gl_R_RenderDlights
|
||||
#define R_RenderView gl_R_RenderView
|
||||
#define R_RotateForEntity gl_R_RotateForEntity
|
||||
#define R_SetupFrame gl_R_SetupFrame
|
||||
#define R_TimeRefresh_f gl_R_TimeRefresh_f
|
||||
#define R_ViewChanged gl_R_ViewChanged
|
||||
#define SCR_CaptureBGR gl_SCR_CaptureBGR
|
||||
#define SCR_ScreenShot gl_SCR_ScreenShot
|
||||
#define SCR_ScreenShot_f gl_SCR_ScreenShot_f
|
||||
#define R_RenderFrame gl_R_RenderFrame
|
||||
#define c_alias_polys gl_c_alias_polys
|
||||
#define c_brush_polys gl_c_brush_polys
|
||||
#define r_easter_eggs_f gl_r_easter_eggs_f
|
||||
#define r_particles_style_f gl_r_particles_style_f
|
||||
#define r_world_matrix gl_r_world_matrix
|
||||
#else
|
||||
#undef R_AddTexture
|
||||
#undef R_BlendLightmaps
|
||||
#undef R_CalcLightmaps
|
||||
#undef R_ClearState
|
||||
#undef R_ClearTextures
|
||||
#undef R_DrawAliasModel
|
||||
#undef R_DrawBrushModel
|
||||
#undef R_DrawParticles
|
||||
#undef R_DrawSky
|
||||
#undef R_DrawSkyChain
|
||||
#undef R_DrawSpriteModel
|
||||
#undef R_DrawWaterSurfaces
|
||||
#undef R_DrawWorld
|
||||
#undef R_Init
|
||||
#undef R_InitBubble
|
||||
#undef R_InitGraphTextures
|
||||
#undef R_InitParticles
|
||||
#undef R_InitSky
|
||||
#undef R_InitSprites
|
||||
#undef R_InitSurfaceChains
|
||||
#undef R_LineGraph
|
||||
#undef R_LoadSky_f
|
||||
#undef R_LoadSkys
|
||||
#undef R_NewMap
|
||||
#undef R_Particle_New
|
||||
#undef R_Particle_NewRandom
|
||||
#undef R_Particles_Init_Cvars
|
||||
#undef R_ReadPointFile_f
|
||||
#undef R_RenderDlights
|
||||
#undef R_RenderView
|
||||
#undef R_RotateForEntity
|
||||
#undef R_SetupFrame
|
||||
#undef R_TimeRefresh_f
|
||||
#undef R_ViewChanged
|
||||
#undef SCR_CaptureBGR
|
||||
#undef SCR_ScreenShot
|
||||
#undef SCR_ScreenShot_f
|
||||
#undef R_RenderFrame
|
||||
#undef c_alias_polys
|
||||
#undef c_brush_polys
|
||||
#undef r_easter_eggs_f
|
||||
#undef r_particles_style_f
|
||||
#undef r_world_matrix
|
||||
#endif
|
|
@ -31,9 +31,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
|
|
@ -31,9 +31,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
@ -303,7 +300,7 @@ GET_RELEASE (elements_t, elements)
|
|||
GET_RELEASE (instsurf_t, static_instsurf)
|
||||
GET_RELEASE (instsurf_t, instsurf)
|
||||
|
||||
void
|
||||
static void
|
||||
glsl_R_AddTexture (texture_t *tx)
|
||||
{
|
||||
int i;
|
||||
|
@ -422,7 +419,7 @@ register_textures (mod_brush_t *brush)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
glsl_R_ClearTextures (void)
|
||||
{
|
||||
r_num_texture_chains = 0;
|
||||
|
@ -1183,7 +1180,7 @@ glsl_R_DrawWorld (void)
|
|||
}
|
||||
|
||||
void
|
||||
glsl_R_DrawWaterSurfaces ()
|
||||
glsl_R_DrawWaterSurfaces (void)
|
||||
{
|
||||
instsurf_t *is;
|
||||
msurface_t *surf;
|
||||
|
|
|
@ -31,9 +31,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
|
|
@ -31,9 +31,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
|
|
@ -33,9 +33,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
|
|
@ -31,9 +31,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include "string.h"
|
||||
#endif
|
||||
|
@ -54,8 +51,11 @@
|
|||
#include "QF/GLSL/funcs.h"
|
||||
#include "QF/GLSL/qf_alias.h"
|
||||
#include "QF/GLSL/qf_bsp.h"
|
||||
#include "QF/GLSL/qf_draw.h"
|
||||
#include "QF/GLSL/qf_iqm.h"
|
||||
#include "QF/GLSL/qf_lightmap.h"
|
||||
#include "QF/GLSL/qf_main.h"
|
||||
#include "QF/GLSL/qf_particles.h"
|
||||
#include "QF/GLSL/qf_sprite.h"
|
||||
#include "QF/GLSL/qf_textures.h"
|
||||
|
||||
|
@ -93,7 +93,7 @@ glsl_R_ViewChanged (void)
|
|||
mmulf (proj, depth_range, proj);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
glsl_R_SetupFrame (void)
|
||||
{
|
||||
R_AnimateLight ();
|
||||
|
@ -227,6 +227,28 @@ glsl_R_RenderView (void)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
glsl_R_TimeRefresh_f (void)
|
||||
{
|
||||
/* FIXME update for simd
|
||||
double start, stop, time;
|
||||
int i;
|
||||
|
||||
glsl_ctx->end_rendering ();
|
||||
|
||||
start = Sys_DoubleTime ();
|
||||
for (i = 0; i < 128; i++) {
|
||||
r_refdef.viewangles[1] = i * (360.0 / 128.0);
|
||||
glsl_R_RenderView ();
|
||||
glsl_ctx->end_rendering ();
|
||||
}
|
||||
|
||||
stop = Sys_DoubleTime ();
|
||||
time = stop - start;
|
||||
Sys_Printf ("%g seconds (%g fps)\n", time, 128 / time);
|
||||
*/
|
||||
}
|
||||
|
||||
void
|
||||
glsl_R_Init (void)
|
||||
{
|
||||
|
@ -279,25 +301,3 @@ glsl_R_ClearState (void)
|
|||
R_ClearDlights ();
|
||||
R_ClearParticles ();
|
||||
}
|
||||
|
||||
void
|
||||
glsl_R_TimeRefresh_f (void)
|
||||
{
|
||||
/* FIXME update for simd
|
||||
double start, stop, time;
|
||||
int i;
|
||||
|
||||
glsl_ctx->end_rendering ();
|
||||
|
||||
start = Sys_DoubleTime ();
|
||||
for (i = 0; i < 128; i++) {
|
||||
r_refdef.viewangles[1] = i * (360.0 / 128.0);
|
||||
glsl_R_RenderView ();
|
||||
glsl_ctx->end_rendering ();
|
||||
}
|
||||
|
||||
stop = Sys_DoubleTime ();
|
||||
time = stop - start;
|
||||
Sys_Printf ("%g seconds (%g fps)\n", time, 128 / time);
|
||||
*/
|
||||
}
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
|
|
@ -31,9 +31,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
@ -263,7 +260,7 @@ glsl_R_DrawSprite (entity_t *ent)
|
|||
|
||||
// All sprites are drawn in a batch, so avoid thrashing the gl state
|
||||
void
|
||||
R_SpriteBegin (void)
|
||||
glsl_R_SpriteBegin (void)
|
||||
{
|
||||
mat4f_t mat;
|
||||
quat_t fog;
|
||||
|
@ -298,7 +295,7 @@ R_SpriteBegin (void)
|
|||
}
|
||||
|
||||
void
|
||||
R_SpriteEnd (void)
|
||||
glsl_R_SpriteEnd (void)
|
||||
{
|
||||
qfeglDisableVertexAttribArray (quake_sprite.vertexa.location);
|
||||
qfeglDisableVertexAttribArray (quake_sprite.vertexb.location);
|
||||
|
|
|
@ -29,9 +29,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "namehack.h"
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
|
|
@ -1,113 +0,0 @@
|
|||
#ifdef NH_DEFINE
|
||||
#undef NH_DEFINE
|
||||
#define Draw_Init glsl_Draw_Init
|
||||
#define Draw_Character glsl_Draw_Character
|
||||
#define Draw_String glsl_Draw_String
|
||||
#define Draw_nString glsl_Draw_nString
|
||||
#define Draw_AltString glsl_Draw_AltString
|
||||
#define Draw_ConsoleBackground glsl_Draw_ConsoleBackground
|
||||
#define Draw_Crosshair glsl_Draw_Crosshair
|
||||
#define Draw_CrosshairAt glsl_Draw_CrosshairAt
|
||||
#define Draw_TileClear glsl_Draw_TileClear
|
||||
#define Draw_Fill glsl_Draw_Fill
|
||||
#define Draw_TextBox glsl_Draw_TextBox
|
||||
#define Draw_FadeScreen glsl_Draw_FadeScreen
|
||||
#define Draw_BlendScreen glsl_Draw_BlendScreen
|
||||
#define Draw_CachePic glsl_Draw_CachePic
|
||||
#define Draw_UncachePic glsl_Draw_UncachePic
|
||||
#define Draw_MakePic glsl_Draw_MakePic
|
||||
#define Draw_DestroyPic glsl_Draw_DestroyPic
|
||||
#define Draw_PicFromWad glsl_Draw_PicFromWad
|
||||
#define Draw_Pic glsl_Draw_Pic
|
||||
#define Draw_Picf glsl_Draw_Picf
|
||||
#define Draw_SubPic glsl_Draw_SubPic
|
||||
#define R_AddTexture glsl_R_AddTexture
|
||||
#define R_BlendLightmaps glsl_R_BlendLightmaps
|
||||
#define R_BuildLightMap glsl_R_BuildLightMap
|
||||
#define R_CalcLightmaps glsl_R_CalcLightmaps
|
||||
#define R_ClearState glsl_R_ClearState
|
||||
#define R_ClearTextures glsl_R_ClearTextures
|
||||
#define R_DrawAliasModel glsl_R_DrawAliasModel
|
||||
#define R_DrawBrushModel glsl_R_DrawBrushModel
|
||||
#define R_DrawParticles glsl_R_DrawParticles
|
||||
#define R_DrawSky glsl_R_DrawSky
|
||||
#define R_DrawSkyChain glsl_R_DrawSkyChain
|
||||
#define R_DrawSpriteModel glsl_R_DrawSpriteModel
|
||||
#define R_DrawWaterSurfaces glsl_R_DrawWaterSurfaces
|
||||
#define R_DrawWorld glsl_R_DrawWorld
|
||||
#define R_InitBubble glsl_R_InitBubble
|
||||
#define R_InitGraphTextures glsl_R_InitGraphTextures
|
||||
#define R_InitParticles glsl_R_InitParticles
|
||||
#define R_InitSky glsl_R_InitSky
|
||||
#define R_InitSprites glsl_R_InitSprites
|
||||
#define R_LineGraph glsl_R_LineGraph
|
||||
#define R_LoadSky_f glsl_R_LoadSky_f
|
||||
#define R_LoadSkys glsl_R_LoadSkys
|
||||
#define R_NewMap glsl_R_NewMap
|
||||
#define R_Particle_New glsl_R_Particle_New
|
||||
#define R_Particle_NewRandom glsl_R_Particle_NewRandom
|
||||
#define R_Particles_Init_Cvars glsl_R_Particles_Init_Cvars
|
||||
#define R_ReadPointFile_f glsl_R_ReadPointFile_f
|
||||
#define R_RenderDlights glsl_R_RenderDlights
|
||||
#define R_RenderView glsl_R_RenderView
|
||||
#define R_RotateForEntity glsl_R_RotateForEntity
|
||||
#define R_SetupFrame glsl_R_SetupFrame
|
||||
#define R_SpriteBegin glsl_R_SpriteBegin
|
||||
#define R_SpriteEnd glsl_R_SpriteEnd
|
||||
#define R_TimeRefresh_f glsl_R_TimeRefresh_f
|
||||
#define R_ViewChanged glsl_R_ViewChanged
|
||||
#define SCR_CaptureBGR glsl_SCR_CaptureBGR
|
||||
#define SCR_ScreenShot glsl_SCR_ScreenShot
|
||||
#define SCR_ScreenShot_f glsl_SCR_ScreenShot_f
|
||||
#define R_RenderFrame glsl_R_RenderFrame
|
||||
#define c_alias_polys glsl_c_alias_polys
|
||||
#define c_brush_polys glsl_c_brush_polys
|
||||
#define r_easter_eggs_f glsl_r_easter_eggs_f
|
||||
#define r_particles_style_f glsl_r_particles_style_f
|
||||
#define r_world_matrix glsl_r_world_matrix
|
||||
#else
|
||||
#undef R_AddTexture
|
||||
#undef R_BlendLightmaps
|
||||
#undef R_BuildLightMap
|
||||
#undef R_CalcLightmaps
|
||||
#undef R_ClearState
|
||||
#undef R_ClearTextures
|
||||
#undef R_DrawAliasModel
|
||||
#undef R_DrawBrushModel
|
||||
#undef R_DrawParticles
|
||||
#undef R_DrawSky
|
||||
#undef R_DrawSkyChain
|
||||
#undef R_DrawSpriteModel
|
||||
#undef R_DrawWaterSurfaces
|
||||
#undef R_DrawWorld
|
||||
#undef R_Init
|
||||
#undef R_InitBubble
|
||||
#undef R_InitGraphTextures
|
||||
#undef R_InitParticles
|
||||
#undef R_InitSky
|
||||
#undef R_InitSprites
|
||||
#undef R_InitSurfaceChains
|
||||
#undef R_LineGraph
|
||||
#undef R_LoadSky_f
|
||||
#undef R_LoadSkys
|
||||
#undef R_NewMap
|
||||
#undef R_Particle_New
|
||||
#undef R_Particle_NewRandom
|
||||
#undef R_Particles_Init_Cvars
|
||||
#undef R_ReadPointFile_f
|
||||
#undef R_RenderDlights
|
||||
#undef R_RenderView
|
||||
#undef R_RotateForEntity
|
||||
#undef R_SetupFrame
|
||||
#undef R_TimeRefresh_f
|
||||
#undef R_ViewChanged
|
||||
#undef SCR_CaptureBGR
|
||||
#undef SCR_ScreenShot
|
||||
#undef SCR_ScreenShot_f
|
||||
#undef R_RenderFrame
|
||||
#undef c_alias_polys
|
||||
#undef c_brush_polys
|
||||
#undef r_easter_eggs_f
|
||||
#undef r_particles_style_f
|
||||
#undef r_world_matrix
|
||||
#endif
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "gl/namehack.h"
|
||||
|
||||
#include "QF/cvar.h"
|
||||
|
||||
#include "QF/plugin/general.h"
|
||||
|
@ -38,6 +35,7 @@
|
|||
|
||||
#include "QF/GL/funcs.h"
|
||||
#include "QF/GL/qf_draw.h"
|
||||
#include "QF/GL/qf_rmain.h"
|
||||
#include "QF/GL/qf_rsurf.h"
|
||||
#include "QF/GL/qf_vid.h"
|
||||
|
||||
|
@ -47,8 +45,6 @@
|
|||
#include "vid_internal.h"
|
||||
#include "vid_gl.h"
|
||||
|
||||
#include "gl/namehack.h"
|
||||
|
||||
gl_ctx_t *gl_ctx;
|
||||
|
||||
static void
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#define NH_DEFINE
|
||||
#include "glsl/namehack.h"
|
||||
|
||||
#include "QF/plugin/general.h"
|
||||
#include "QF/plugin/vid_render.h"
|
||||
|
||||
|
@ -38,6 +35,7 @@
|
|||
#include "QF/GLSL/defines.h"
|
||||
#include "QF/GLSL/qf_bsp.h"
|
||||
#include "QF/GLSL/qf_draw.h"
|
||||
#include "QF/GLSL/qf_main.h"
|
||||
#include "QF/GLSL/qf_vid.h"
|
||||
|
||||
#include "mod_internal.h"
|
||||
|
@ -45,8 +43,6 @@
|
|||
#include "vid_internal.h"
|
||||
#include "vid_gl.h"
|
||||
|
||||
#include "glsl/namehack.h"
|
||||
|
||||
gl_ctx_t *glsl_ctx;
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue