27#include "SDL_stdinc.h"
33 ( ( ( x ) < 0 ) ? -( x ) : ( x ) )
35 ( ( ( x ) < 0. ) ? -( x ) : ( x ) )
38 ( ( ( x ) > ( y ) ) ? ( x ) : ( y ) )
40 ( ( ( x ) > ( y ) ) ? ( y ) : ( x ) )
41#define CLAMP( a, b, x ) \
49 ( ( ( x ) > 0 ) ? 1 : -1 )
51 ( ( ( x ) > 0. ) ? 1. : -1. )
53#define pow2( x ) ( ( x ) * ( x ) )
62#define STRMAX_SHORT 1024
64#define DOUBLE_TOL 1e-6
76void naev_toggleFullscreen(
void );
86void naev_doRenderLoadscreen(
void );
void naev_renderLoadscreen(void)
Renders the loadscreen if necessary.
int naev_versionCompare(const char *version)
Compares the version against the current naev version.
const char * naev_version(int long_version)
Returns the version in a human readable string.
void update_routine(double dt, int dohooks)
Actually runs the updates.
int naev_shouldRenderLoadscreen(void)
Whether or not we want to render the loadscreen.
void fps_display(double dt)
Displays FPS on the screen.
void naev_quit(void)
Flags naev to quit.
double fps_current(void)
Gets the current FPS.
void naev_resize(void)
Wrapper for gl_resize that handles non-GL reinitialization.
int naev_versionCompareTarget(const char *version, const char *target)
Does a comparison with a specific target.
int naev_isQuit(void)
Get if Naev is trying to quit.
double naev_getrealdt(void)
Gets the last delta-tick.
void fps_setPos(double x, double y)
Sets the position to display the FPS.