mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-28 16:58:57 +08:00
small api cleanup
This commit is contained in:
parent
a32b08267a
commit
b939391334
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
// Error / Abort
|
||||
// error / abort
|
||||
#ifdef DEBUG
|
||||
|
||||
#include <stdlib.h>
|
||||
|
@ -20,8 +20,9 @@
|
|||
|
||||
#endif
|
||||
|
||||
#ifndef BLAH_MAX_MESSAGE
|
||||
#define BLAH_MAX_MESSAGE 1024
|
||||
// maximum length of a print/warn/error message
|
||||
#ifndef BLAH_MESSAGE
|
||||
#define BLAH_MESSAGE 1024
|
||||
#endif
|
||||
|
||||
namespace Blah
|
||||
|
|
|
@ -20,15 +20,25 @@ namespace Blah
|
|||
// time the application should pause for
|
||||
static float pause_timer;
|
||||
|
||||
// pauses the entire application for the given time
|
||||
static void pause_for(float time);
|
||||
|
||||
// returns true on the given time interval
|
||||
static bool on_interval(float time, float delta, float interval, float offset = 0);
|
||||
|
||||
// returns true on the given time interval
|
||||
static bool on_interval(float delta, float interval, float offset = 0);
|
||||
|
||||
// returns true on the given time interval
|
||||
static bool on_interval(float interval, float offset = 0);
|
||||
|
||||
// returns true when the given timestamp is passed
|
||||
static bool on_time(float time, float timestamp);
|
||||
|
||||
// returns true between time intervals
|
||||
static bool between_interval(float time, float interval, float offset = 0);
|
||||
|
||||
// returns true between time intervals
|
||||
static bool between_interval(float interval, float offset = 0);
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user