Functions | |
float | hal_gfx_get_time (void) |
Return system timestamp in second, need to porting. More... | |
float | hal_gfx_get_wall_time (void) |
Return system timestamp in millisecond, need to porting. More... | |
hal_gfx_buffer_t | hal_gfx_load_file (const char *filename, int length, void *buffer) |
load file to buffer, need to porting More... | |
int | hal_gfx_save_file (const char *filename, int length, void *buffer) |
save buffer to file, need to porting More... | |
unsigned int | hal_gfx_rand (void) |
generate a random number, need to porting More... | |
void | hal_gfx_calculate_fps (void) |
calculate the fps, need to porting More... | |
float | hal_gfx_calculate_fps_ext (float start_time, uint32_t frame) |
calculate the fps, need to porting More... | |
void * | hal_gfx_memcpy (void *destination, const void *source, size_t num) |
memcpy function, need to porting More... | |
void hal_gfx_calculate_fps | ( | void | ) |
calculate the fps, need to porting
float hal_gfx_calculate_fps_ext | ( | float | start_time, |
uint32_t | frame | ||
) |
calculate the fps, need to porting
[in] | start_time | start timestamp in ms |
[in] | frame | frame count from start_time |
float hal_gfx_get_time | ( | void | ) |
Return system timestamp in second, need to porting.
float hal_gfx_get_wall_time | ( | void | ) |
Return system timestamp in millisecond, need to porting.
hal_gfx_buffer_t hal_gfx_load_file | ( | const char * | filename, |
int | length, | ||
void * | buffer | ||
) |
load file to buffer, need to porting
void* hal_gfx_memcpy | ( | void * | destination, |
const void * | source, | ||
size_t | num | ||
) |
memcpy function, need to porting
[in] | destination | destination address |
[in] | source | source address |
[in] | num | copy data in bytes |
unsigned int hal_gfx_rand | ( | void | ) |
generate a random number, need to porting
int hal_gfx_save_file | ( | const char * | filename, |
int | length, | ||
void * | buffer | ||
) |
save buffer to file, need to porting