CMakeLists.txt: don't precompile stb_ds.h, precompile SDL.h

This commit is contained in:
2024-10-13 18:14:36 +03:00
parent 1a7322dccf
commit f96d521af2
4 changed files with 5 additions and 3 deletions

View File

@ -125,7 +125,6 @@ int clampi(int i, int min, int max) {
}
int64_t file_to_bytes(const char *path, unsigned char **buf_out) {
SDL_RWops *handle = PHYSFSRWOPS_openRead(path);
@ -272,10 +271,12 @@ void tick_timer(int *value) {
*value = MAX(*value - 1, 0);
}
void tick_ftimer(float *value) {
*value = MAX(*value - ((float)ctx.delta_time / (float)ctx.clocks_per_second), 0.0f);
}
bool repeat_ftimer(float *value, float at) {
*value -= (float)ctx.delta_time / (float)ctx.clocks_per_second;
if (*value < 0.0f) {