Subversion Repositories eduke32

Rev

Rev 8650 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8650 Rev 8716
Line 339... Line 339...
339
extern int32_t g_levelTextTime;
339
extern int32_t g_levelTextTime;
340
extern int32_t g_quitDeadline;
340
extern int32_t g_quitDeadline;
341
extern int32_t g_restorePalette;
341
extern int32_t g_restorePalette;
342
extern int32_t hud_glowingquotes;
342
extern int32_t hud_glowingquotes;
343
extern int32_t hud_showmapname;
343
extern int32_t hud_showmapname;
344
extern int32_t r_maxfps;
-
 
345
extern int32_t r_maxfpsoffset;
-
 
346
extern int32_t tempwallptr;
344
extern int32_t tempwallptr;
347
extern int32_t ticrandomseed;
345
extern int32_t ticrandomseed;
348
extern int32_t vote_map;
346
extern int32_t vote_map;
349
extern int32_t voting;
347
extern int32_t voting;
350
348
Line 354... Line 352...
354
#define CROSSHAIR_PAL (MAXPALOOKUPS-RESERVEDPALS-1)
352
#define CROSSHAIR_PAL (MAXPALOOKUPS-RESERVEDPALS-1)
355
353
356
extern palette_t CrosshairColors;
354
extern palette_t CrosshairColors;
357
extern palette_t DefaultCrosshairColors;
355
extern palette_t DefaultCrosshairColors;
358
356
359
extern uint64_t g_frameDelay;
-
 
360
static inline uint64_t calcFrameDelay(int const maxFPS, int const offset)
-
 
361
{
-
 
362
    uint64_t const perfFreq = timerGetPerformanceFrequency();
-
 
363
-
 
364
    if (maxFPS == -1)
-
 
365
        return perfFreq / (refreshfreq - ceil(refreshfreq / 60.0));
-
 
366
-
 
367
    return maxFPS ? perfFreq / (maxFPS + offset) : 0;
-
 
368
}
-
 
369
-
 
370
int32_t A_CheckInventorySprite(spritetype *s);
357
int32_t A_CheckInventorySprite(spritetype *s);
371
int32_t A_InsertSprite(int16_t whatsect, int32_t s_x, int32_t s_y, int32_t s_z, int16_t s_pn, int8_t s_s, uint8_t s_xr,
358
int32_t A_InsertSprite(int16_t whatsect, int32_t s_x, int32_t s_y, int32_t s_z, int16_t s_pn, int8_t s_s, uint8_t s_xr,
372
                       uint8_t s_yr, int16_t s_a, int16_t s_ve, int16_t s_zv, int16_t s_ow, int16_t s_ss);
359
                       uint8_t s_yr, int16_t s_a, int16_t s_ve, int16_t s_zv, int16_t s_ow, int16_t s_ss);
373
int A_Spawn(int spriteNum,int tileNum);
360
int A_Spawn(int spriteNum,int tileNum);
374
int G_DoMoveThings(void);
361
int G_DoMoveThings(void);
Line 404... Line 391...
404
void G_DrawBackground(void);
391
void G_DrawBackground(void);
405
void G_DrawFrags(void);
392
void G_DrawFrags(void);
406
void G_HandleMirror(int32_t x, int32_t y, int32_t z, fix16_t a, fix16_t horiz, int32_t smoothratio);
393
void G_HandleMirror(int32_t x, int32_t y, int32_t z, fix16_t a, fix16_t horiz, int32_t smoothratio);
407
void G_DrawRooms(int32_t playerNum,int32_t smoothratio);
394
void G_DrawRooms(int32_t playerNum,int32_t smoothratio);
408
void G_DrawTXDigiNumZ(int32_t starttile,int32_t x,int32_t y,int32_t n,int32_t s,int32_t pal,int32_t cs,int32_t x1,int32_t y1,int32_t x2,int32_t y2,int32_t z);
395
void G_DrawTXDigiNumZ(int32_t starttile,int32_t x,int32_t y,int32_t n,int32_t s,int32_t pal,int32_t cs,int32_t x1,int32_t y1,int32_t x2,int32_t y2,int32_t z);
409
int G_FPSLimit(void);
396
int engineFPSLimit(void);
410
void G_GameExit(const char *msg) ATTRIBUTE((noreturn));
397
void G_GameExit(const char *msg) ATTRIBUTE((noreturn));
411
void G_GameQuit(void);
398
void G_GameQuit(void);
412
void G_GetCrosshairColor(void);
399
void G_GetCrosshairColor(void);
413
void G_HandleLocalKeys(void);
400
void G_HandleLocalKeys(void);
414
void G_HandleSpecialKeys(void);
401
void G_HandleSpecialKeys(void);