shengine pre-release
shengine by mrsinho
|
#include <GLFW/glfw3.h>
#include "shengine/shEngine.h"
#include "shengine/shTime.h"
#include <unistd.h>
Macros | |
#define | GLFW_INCLUDE_NONE |
Functions | |
uint8_t | shGetTime (ShTime *p_time) |
Gets the current time in the shengine framework. | |
uint8_t | shSetTime (double now, ShTime *p_time) |
Sets the time in the shengine framework. | |
uint8_t | shCallOnTick (ShTime *p_time, double seconds, uint32_t tick_idx, ShTimeFunc *p_func, void *p_arg, uint64_t *p_return_value) |
Calls a function on a tick in the shengine framework. | |
void | shSleep (uint32_t ms) |
Sleeps for a specified number of milliseconds. | |
#define GLFW_INCLUDE_NONE |
uint8_t shCallOnTick | ( | ShTime * | p_time, |
double | seconds, | ||
uint32_t | tick_idx, | ||
ShTimeFunc * | p_func, | ||
void * | p_arg, | ||
uint64_t * | p_return_value | ||
) |
Calls a function on a tick in the shengine
framework.
p_time | Pointer to a valid ShTime structure. |
seconds | Time interval in seconds for the tick. |
tick_idx | Index of the tick. |
p_func | Pointer to the time function to call. |
p_arg | Pointer to an argument for the time function. |
p_return_value | Pointer to store the return value of the time function. |
uint8_t shGetTime | ( | ShTime * | p_time | ) |
Gets the current time in the shengine
framework.
p_time | Pointer to a valid ShTime structure. |
uint8_t shSetTime | ( | double | now, |
ShTime * | p_time | ||
) |
Sets the time in the shengine
framework.
now | Current time to set. |
p_time | Pointer to a valid ShTime structure. |
void shSleep | ( | uint32_t | ms | ) |
Sleeps for a specified number of milliseconds.
ms | Number of milliseconds to sleep. |