twn_util.h: make return structs comply to type naming
This commit is contained in:
@ -79,12 +79,14 @@ TWN_API int32_t timer_tick_frames(int32_t frames_left);
|
||||
/* note that it should be decremented only on the next tick after its creation */
|
||||
TWN_API float timer_tick_seconds(float seconds_left);
|
||||
|
||||
TWN_API struct timer_elapse_frames_result {
|
||||
typedef struct TimerElapseFramesResult {
|
||||
bool elapsed; int32_t frames_left;
|
||||
} timer_elapse_frames(int32_t frames_left, int32_t interval);
|
||||
} TimerElapseFramesResult;
|
||||
TWN_API TimerElapseFramesResult timer_elapse_frames(int32_t frames_left, int32_t interval);
|
||||
|
||||
TWN_API struct timer_elapse_seconds_result {
|
||||
typedef struct TimerElapseSecondsResult {
|
||||
bool elapsed; float seconds_left;
|
||||
} timer_elapse_seconds(float seconds_left, float interval);
|
||||
} TimerElapseSecondsResult;
|
||||
TWN_API TimerElapseSecondsResult timer_elapse_seconds(float seconds_left, float interval);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user