|
SDL
2.0
|
Include dependency graph for common.c:Go to the source code of this file.
Functions | |
| int | randomInt (int min, int max) |
| float | randomFloat (float min, float max) |
| void | fatalError (const char *string) |
| double | updateDeltaTime (void) |
Variables | |
| static Uint64 | prevTime = 0 |
| void fatalError | ( | const char * | string | ) |
Definition at line 32 of file common.c.
References NULL, SDL_GetError, SDL_MESSAGEBOX_ERROR, and SDL_ShowSimpleMessageBox.
Referenced by initializeTexture(), initializeTextures(), loadSound(), and main().
| float randomFloat | ( | float | min, |
| float | max | ||
| ) |
Definition at line 26 of file common.c.
Referenced by explodeEmitter(), initializeHappyFaces(), and spawnTrailFromEmitter().
| int randomInt | ( | int | min, |
| int | max | ||
| ) |
| double updateDeltaTime | ( | void | ) |
Definition at line 42 of file common.c.
References prevTime, SDL_GetPerformanceCounter, and SDL_GetPerformanceFrequency().
Referenced by main().
|
static |
Definition at line 39 of file common.c.
Referenced by updateDeltaTime().