fix symbol collision

This commit is contained in:
Denis Pauk 2020-10-07 21:44:01 +03:00 committed by Yamagi
parent 85b9f84b3d
commit 01918110d7
7 changed files with 83 additions and 83 deletions

View File

@ -186,7 +186,7 @@ extern int registration_sequence;
extern qvksampler_t vk_current_sampler; extern qvksampler_t vk_current_sampler;
extern qvksampler_t vk_current_lmap_sampler; extern qvksampler_t vk_current_lmap_sampler;
void R_Shutdown( void ); void RE_Shutdown( void );
void Vk_ScreenShot_f (void); void Vk_ScreenShot_f (void);
void R_DrawAliasModel (entity_t *e, model_t *currentmodel); void R_DrawAliasModel (entity_t *e, model_t *currentmodel);
@ -196,7 +196,7 @@ void R_DrawBeam( entity_t *e );
void R_DrawWorld (void); void R_DrawWorld (void);
void R_RenderDlights (void); void R_RenderDlights (void);
void R_DrawAlphaSurfaces (void); void R_DrawAlphaSurfaces (void);
void R_InitParticleTexture (void); void RE_InitParticleTexture (void);
void Draw_InitLocal (void); void Draw_InitLocal (void);
void Vk_SubdivideSurface (msurface_t *fa); void Vk_SubdivideSurface (msurface_t *fa);
qboolean R_CullBox (vec3_t mins, vec3_t maxs); qboolean R_CullBox (vec3_t mins, vec3_t maxs);
@ -209,20 +209,20 @@ void R_ClearSkyBox (void);
void R_DrawSkyBox (void); void R_DrawSkyBox (void);
void R_MarkLights (dlight_t *light, int bit, mnode_t *node); void R_MarkLights (dlight_t *light, int bit, mnode_t *node);
struct image_s *Draw_FindPic (char *name); struct image_s *RE_Draw_FindPic (char *name);
void Draw_GetPicSize (int *w, int *h, char *name); void RE_Draw_GetPicSize (int *w, int *h, char *name);
void Draw_PicScaled (int x, int y, char *name, float scale); void RE_Draw_PicScaled (int x, int y, char *name, float scale);
void Draw_StretchPic (int x, int y, int w, int h, char *name); void RE_Draw_StretchPic (int x, int y, int w, int h, char *name);
void Draw_CharScaled (int x, int y, int c, float scale); void RE_Draw_CharScaled (int x, int y, int c, float scale);
void Draw_TileClear (int x, int y, int w, int h, char *name); void RE_Draw_TileClear (int x, int y, int w, int h, char *name);
void Draw_Fill (int x, int y, int w, int h, int c); void RE_Draw_Fill (int x, int y, int w, int h, int c);
void Draw_FadeScreen (void); void RE_Draw_FadeScreen (void);
void Draw_StretchRaw (int x, int y, int w, int h, int cols, int rows, byte *data); void RE_Draw_StretchRaw (int x, int y, int w, int h, int cols, int rows, byte *data);
qboolean RE_EndWorldRenderpass( void ); qboolean RE_EndWorldRenderpass( void );
struct image_s *R_RegisterSkin (char *name); struct image_s *RE_RegisterSkin (char *name);
void LoadPCX (char *filename, byte **pic, byte **palette, int *width, int *height); void LoadPCX (char *filename, byte **pic, byte **palette, int *width, int *height);
image_t *Vk_LoadPic(char *name, byte *pic, int width, int realwidth, image_t *Vk_LoadPic(char *name, byte *pic, int width, int realwidth,
@ -237,11 +237,11 @@ void Vk_InitImages (void);
void Vk_ShutdownImages (void); void Vk_ShutdownImages (void);
void Vk_FreeUnusedImages (void); void Vk_FreeUnusedImages (void);
void R_BeginRegistration (char *model); void RE_BeginRegistration (char *model);
struct model_s *R_RegisterModel (char *name); struct model_s *RE_RegisterModel (char *name);
struct image_s *R_RegisterSkin (char *name); struct image_s *RE_RegisterSkin (char *name);
void R_SetSky (char *name, float rotate, vec3_t axis); void RE_SetSky (char *name, float rotate, vec3_t axis);
void R_EndRegistration (void); void RE_EndRegistration (void);
void Mat_Identity(float *matrix); void Mat_Identity(float *matrix);
void Mat_Mul(float *m1, float *m2, float *res); void Mat_Mul(float *m1, float *m2, float *res);

View File

@ -44,14 +44,14 @@ void Draw_InitLocal (void)
/* /*
================ ================
Draw_CharScaled RE_Draw_CharScaled
Draws one 8*8 graphics character with 0 being transparent. Draws one 8*8 graphics character with 0 being transparent.
It can be clipped to the top of the screen to allow the console to be It can be clipped to the top of the screen to allow the console to be
smoothly scrolled off. smoothly scrolled off.
================ ================
*/ */
void Draw_CharScaled (int x, int y, int num, float scale) void RE_Draw_CharScaled (int x, int y, int num, float scale)
{ {
int row, col; int row, col;
float frow, fcol, size; float frow, fcol, size;
@ -79,10 +79,10 @@ void Draw_CharScaled (int x, int y, int num, float scale)
/* /*
============= =============
Draw_FindPic RE_Draw_FindPic
============= =============
*/ */
image_t *Draw_FindPic (char *name) image_t *RE_Draw_FindPic (char *name)
{ {
image_t *vk; image_t *vk;
@ -101,14 +101,14 @@ image_t *Draw_FindPic (char *name)
/* /*
============= =============
Draw_GetPicSize RE_Draw_GetPicSize
============= =============
*/ */
void Draw_GetPicSize (int *w, int *h, char *name) void RE_Draw_GetPicSize (int *w, int *h, char *name)
{ {
image_t *vk; image_t *vk;
vk = Draw_FindPic(name); vk = RE_Draw_FindPic(name);
if (!vk) if (!vk)
{ {
*w = *h = -1; *w = *h = -1;
@ -121,14 +121,14 @@ void Draw_GetPicSize (int *w, int *h, char *name)
/* /*
============= =============
Draw_StretchPic RE_Draw_StretchPic
============= =============
*/ */
void Draw_StretchPic (int x, int y, int w, int h, char *name) void RE_Draw_StretchPic (int x, int y, int w, int h, char *name)
{ {
image_t *vk; image_t *vk;
vk = Draw_FindPic(name); vk = RE_Draw_FindPic(name);
if (!vk) if (!vk)
{ {
R_Printf(PRINT_ALL, "%s(): Can't find pic: %s\n", __func__, name); R_Printf(PRINT_ALL, "%s(): Can't find pic: %s\n", __func__, name);
@ -145,36 +145,36 @@ void Draw_StretchPic (int x, int y, int w, int h, char *name)
/* /*
============= =============
Draw_PicScaled RE_Draw_PicScaled
============= =============
*/ */
void Draw_PicScaled (int x, int y, char *pic, float factor) void RE_Draw_PicScaled (int x, int y, char *pic, float factor)
{ {
image_t *vk; image_t *vk;
vk = Draw_FindPic(pic); vk = RE_Draw_FindPic(pic);
if (!vk) if (!vk)
{ {
R_Printf(PRINT_ALL, "%s(): Can't find pic: %s\n", __func__, pic); R_Printf(PRINT_ALL, "%s(): Can't find pic: %s\n", __func__, pic);
return; return;
} }
Draw_StretchPic(x, y, vk->width*factor, vk->height*factor, pic); RE_Draw_StretchPic(x, y, vk->width*factor, vk->height*factor, pic);
} }
/* /*
============= =============
Draw_TileClear RE_Draw_TileClear
This repeats a 64*64 tile graphic to fill the screen around a sized down This repeats a 64*64 tile graphic to fill the screen around a sized down
refresh window. refresh window.
============= =============
*/ */
void Draw_TileClear (int x, int y, int w, int h, char *name) void RE_Draw_TileClear (int x, int y, int w, int h, char *name)
{ {
image_t *image; image_t *image;
image = Draw_FindPic(name); image = RE_Draw_FindPic(name);
if (!image) if (!image)
{ {
R_Printf(PRINT_ALL, "%s(): Can't find pic: %s\n", __func__, name); R_Printf(PRINT_ALL, "%s(): Can't find pic: %s\n", __func__, name);
@ -191,12 +191,12 @@ void Draw_TileClear (int x, int y, int w, int h, char *name)
/* /*
============= =============
Draw_Fill RE_Draw_Fill
Fills a box of pixels with a single color Fills a box of pixels with a single color
============= =============
*/ */
void Draw_Fill (int x, int y, int w, int h, int c) void RE_Draw_Fill (int x, int y, int w, int h, int c)
{ {
union union
{ {
@ -219,11 +219,11 @@ void Draw_Fill (int x, int y, int w, int h, int c)
/* /*
================ ================
Draw_FadeScreen RE_Draw_FadeScreen
================ ================
*/ */
void Draw_FadeScreen (void) void RE_Draw_FadeScreen (void)
{ {
float imgTransform[] = { 0.f, 0.f, vid.width, vid.height, 0.f, 0.f, 0.f, .8f }; float imgTransform[] = { 0.f, 0.f, vid.width, vid.height, 0.f, 0.f, 0.f, .8f };
@ -236,7 +236,7 @@ void Draw_FadeScreen (void)
/* /*
============= =============
Draw_StretchRaw RE_Draw_StretchRaw
============= =============
*/ */
extern unsigned r_rawpalette[256]; extern unsigned r_rawpalette[256];
@ -244,7 +244,7 @@ extern qvktexture_t vk_rawTexture;
static unsigned raw_image32[512 * 512]; static unsigned raw_image32[512 * 512];
void Draw_StretchRaw (int x, int y, int w, int h, int cols, int rows, byte *data) void RE_Draw_StretchRaw (int x, int y, int w, int h, int cols, int rows, byte *data)
{ {
int i, j; int i, j;

View File

@ -1551,10 +1551,10 @@ image_t *Vk_FindImage (char *name, imagetype_t type, qvksampler_t *samplerType)
/* /*
=============== ===============
R_RegisterSkin RE_RegisterSkin
=============== ===============
*/ */
struct image_s *R_RegisterSkin (char *name) struct image_s *RE_RegisterSkin (char *name)
{ {
return Vk_FindImage (name, it_skin, NULL); return Vk_FindImage (name, it_skin, NULL);
} }

View File

@ -1073,13 +1073,13 @@ static void Mod_LoadSpriteModel (model_t *mod, void *buffer)
/* /*
===================== =====================
R_BeginRegistration RE_BeginRegistration
Specifies the model that will be used as the world Specifies the model that will be used as the world
===================== =====================
*/ */
void void
R_BeginRegistration (char *map) RE_BeginRegistration (char *map)
{ {
char fullname[MAX_QPATH]; char fullname[MAX_QPATH];
cvar_t *flushmap; cvar_t *flushmap;
@ -1102,11 +1102,11 @@ R_BeginRegistration (char *map)
/* /*
===================== =====================
R_RegisterModel RE_RegisterModel
===================== =====================
*/ */
struct model_s *R_RegisterModel (char *name) struct model_s *RE_RegisterModel (char *name)
{ {
model_t *mod; model_t *mod;
dmdl_t *pheader; dmdl_t *pheader;
@ -1148,11 +1148,11 @@ struct model_s *R_RegisterModel (char *name)
/* /*
===================== =====================
R_EndRegistration RE_EndRegistration
===================== =====================
*/ */
void R_EndRegistration (void) void RE_EndRegistration (void)
{ {
int i; int i;
model_t *mod; model_t *mod;

View File

@ -1280,10 +1280,10 @@ qboolean R_SetMode (void)
/* /*
=============== ===============
R_Init RE_Init
=============== ===============
*/ */
static qboolean R_Init( void ) static qboolean RE_Init( void )
{ {
R_Printf(PRINT_ALL, "Refresh: " REF_VERSION "\n"); R_Printf(PRINT_ALL, "Refresh: " REF_VERSION "\n");
@ -1306,7 +1306,7 @@ static qboolean R_Init( void )
Vk_InitImages(); Vk_InitImages();
Mod_Init(); Mod_Init();
R_InitParticleTexture(); RE_InitParticleTexture();
Draw_InitLocal(); Draw_InitLocal();
R_Printf(PRINT_ALL, "Successfully initialized Vulkan!\n"); R_Printf(PRINT_ALL, "Successfully initialized Vulkan!\n");
@ -1315,13 +1315,13 @@ static qboolean R_Init( void )
} }
/* /*
** R_ShutdownContext ** RE_ShutdownContext
** **
** This routine does all OS specific shutdown procedures for the Vulkan ** This routine does all OS specific shutdown procedures for the Vulkan
** subsystem. ** subsystem.
** **
*/ */
static void R_ShutdownContext( void ) static void RE_ShutdownContext( void )
{ {
// Shutdown Vulkan subsystem // Shutdown Vulkan subsystem
@ -1330,10 +1330,10 @@ static void R_ShutdownContext( void )
/* /*
=============== ===============
R_Shutdown RE_Shutdown
=============== ===============
*/ */
void R_Shutdown (void) void RE_Shutdown (void)
{ {
ri.Cmd_RemoveCommand("vk_strings"); ri.Cmd_RemoveCommand("vk_strings");
ri.Cmd_RemoveCommand("vk_mem"); ri.Cmd_RemoveCommand("vk_mem");
@ -1348,7 +1348,7 @@ void R_Shutdown (void)
Mod_FreeAll(); Mod_FreeAll();
Vk_ShutdownImages(); Vk_ShutdownImages();
R_ShutdownContext(); RE_ShutdownContext();
} }
/* /*
@ -1549,7 +1549,7 @@ void R_DrawBeam( entity_t *e )
//=================================================================== //===================================================================
static int static int
R_InitContext(void *win) RE_InitContext(void *win)
{ {
char title[40] = {0}; char title[40] = {0};
@ -1587,7 +1587,7 @@ qboolean Vkimp_CreateSurface(SDL_Window *window)
} }
static qboolean static qboolean
R_IsVsyncActive(void) RE_IsVsyncActive(void)
{ {
if (r_vsync->value) if (r_vsync->value)
{ {
@ -1599,7 +1599,7 @@ R_IsVsyncActive(void)
} }
} }
static int R_PrepareForWindow(void) static int RE_PrepareForWindow(void)
{ {
if (SDL_Vulkan_LoadLibrary(NULL)) if (SDL_Vulkan_LoadLibrary(NULL))
{ {
@ -1628,31 +1628,31 @@ GetRefAPI(refimport_t imp)
refexport.api_version = API_VERSION; refexport.api_version = API_VERSION;
refexport.BeginRegistration = R_BeginRegistration; refexport.BeginRegistration = RE_BeginRegistration;
refexport.RegisterModel = R_RegisterModel; refexport.RegisterModel = RE_RegisterModel;
refexport.RegisterSkin = R_RegisterSkin; refexport.RegisterSkin = RE_RegisterSkin;
refexport.DrawFindPic = Draw_FindPic; refexport.DrawFindPic = RE_Draw_FindPic;
refexport.SetSky = R_SetSky; refexport.SetSky = RE_SetSky;
refexport.EndRegistration = R_EndRegistration; refexport.EndRegistration = RE_EndRegistration;
refexport.RenderFrame = RE_RenderFrame; refexport.RenderFrame = RE_RenderFrame;
refexport.DrawGetPicSize = Draw_GetPicSize; refexport.DrawGetPicSize = RE_Draw_GetPicSize;
refexport.DrawPicScaled = Draw_PicScaled; refexport.DrawPicScaled = RE_Draw_PicScaled;
refexport.DrawStretchPic = Draw_StretchPic; refexport.DrawStretchPic = RE_Draw_StretchPic;
refexport.DrawCharScaled = Draw_CharScaled; refexport.DrawCharScaled = RE_Draw_CharScaled;
refexport.DrawTileClear = Draw_TileClear; refexport.DrawTileClear = RE_Draw_TileClear;
refexport.DrawFill = Draw_Fill; refexport.DrawFill = RE_Draw_Fill;
refexport.DrawFadeScreen= Draw_FadeScreen; refexport.DrawFadeScreen= RE_Draw_FadeScreen;
refexport.DrawStretchRaw = Draw_StretchRaw; refexport.DrawStretchRaw = RE_Draw_StretchRaw;
refexport.Init = R_Init; refexport.Init = RE_Init;
refexport.IsVSyncActive = R_IsVsyncActive; refexport.IsVSyncActive = RE_IsVsyncActive;
refexport.Shutdown = R_Shutdown; refexport.Shutdown = RE_Shutdown;
refexport.InitContext = R_InitContext; refexport.InitContext = RE_InitContext;
refexport.ShutdownContext = R_ShutdownContext; refexport.ShutdownContext = RE_ShutdownContext;
refexport.PrepareForWindow = R_PrepareForWindow; refexport.PrepareForWindow = RE_PrepareForWindow;
refexport.SetPalette = RE_SetPalette; refexport.SetPalette = RE_SetPalette;
refexport.BeginFrame = RE_BeginFrame; refexport.BeginFrame = RE_BeginFrame;

View File

@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/* /*
================== ==================
R_InitParticleTexture RE_InitParticleTexture
================== ==================
*/ */
static byte dottexture[8][8] = static byte dottexture[8][8] =
@ -39,7 +39,7 @@ static byte dottexture[8][8] =
{0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0},
}; };
void R_InitParticleTexture (void) void RE_InitParticleTexture (void)
{ {
int x,y,i; int x,y,i;
byte data[8][8][4]; byte data[8][8][4];

View File

@ -662,12 +662,12 @@ void R_DrawSkyBox (void)
/* /*
============ ============
R_SetSky RE_SetSky
============ ============
*/ */
// 3dstudio environment map names // 3dstudio environment map names
static char *suf[6] = {"rt", "bk", "lf", "ft", "up", "dn"}; static char *suf[6] = {"rt", "bk", "lf", "ft", "up", "dn"};
void R_SetSky (char *name, float rotate, vec3_t axis) void RE_SetSky (char *name, float rotate, vec3_t axis)
{ {
int i; int i;
char pathname[MAX_QPATH]; char pathname[MAX_QPATH];