replace log.c/h with SDL_Log*
This commit is contained in:
+4
-3
@@ -15,7 +15,6 @@
|
||||
#include <glm/gtc/type_ptr.hpp>
|
||||
|
||||
#include "defer.h"
|
||||
#include "log.h"
|
||||
#include "stb_image.h"
|
||||
#include "change_directory.h"
|
||||
|
||||
@@ -100,6 +99,8 @@ static SDL_DateTime calendar_time;
|
||||
|
||||
static vec2 mouse_pos;
|
||||
|
||||
#define log_error(...) SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__)
|
||||
|
||||
float remap(float in_a, float in_b, float out_a, float out_b, float v) {
|
||||
return mix(out_a, out_b, (v - in_a) / (in_b - in_a));
|
||||
}
|
||||
@@ -389,7 +390,7 @@ static bool save_map(Map map) {
|
||||
return false;
|
||||
};
|
||||
|
||||
log("Saved map file.");
|
||||
SDL_Log("Saved map file.");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -457,7 +458,7 @@ static bool load_map(const char *name, Map *result) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
log("Loaded map file.");
|
||||
SDL_Log("Loaded map file.");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user