From 473a3f42333d03a1d5c4abcbbd4d3f86b81ba1f3 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Tue, 24 Dec 2024 15:04:18 -0500 Subject: Update for dependency name change Signed-off-by: Andrew Opalach --- src/context.h | 6 +++--- src/gl.cc | 2 +- src/mauri.cc | 8 ++++---- src/objects/pass.cc | 2 +- src/util.h | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/context.h b/src/context.h index 5dfcc8b..a64dde7 100644 --- a/src/context.h +++ b/src/context.h @@ -4,7 +4,7 @@ extern "C" { #include #include -#include +#include } #include "gl.h" @@ -18,7 +18,7 @@ static void should_close_callback(void *userdata); class Context { public: - Context() : start(aki_get_timestamp()) {} + Context() : start(nn_get_timestamp()) {} ~Context() { if (this->window) this->window->free(&this->window); @@ -96,7 +96,7 @@ class Context auto current_time() const -> f64 { - return (aki_get_timestamp() - this->start) / 1000000.f; + return (nn_get_timestamp() - this->start) / 1000000.f; } auto check_error() -> void diff --git a/src/gl.cc b/src/gl.cc index 96f00e9..d753142 100644 --- a/src/gl.cc +++ b/src/gl.cc @@ -400,7 +400,7 @@ auto RenderTexture::save_pixels(const void *ptr, s32 width, s32 height, bool dxt { for (s32 i = 0; i < width * height; i++) { - this->pixels[i] = aki_htonl(((u32 *)ptr)[i]); + this->pixels[i] = nn_htonl(((u32 *)ptr)[i]); } return; } diff --git a/src/mauri.cc b/src/mauri.cc index 077b060..e562a76 100644 --- a/src/mauri.cc +++ b/src/mauri.cc @@ -1,5 +1,5 @@ extern "C" { -#include +#include #include } @@ -29,7 +29,7 @@ auto main(s32 argc, char *argv[]) -> s32 auto wmain(s32 argc, wchar_t **argv) -> s32 #endif { - if (!aki_common_init()) return EXIT_FAILURE; + if (!nn_common_init()) return EXIT_FAILURE; janus::ArgParser args(HELP_TEXT, "0.13"); @@ -109,11 +109,11 @@ auto wmain(s32 argc, wchar_t **argv) -> s32 Engine *engine = new Engine(scene, 1.f, true); - u64 begin = aki_get_timestamp(); + u64 begin = nn_get_timestamp(); scene->load(engine); - u64 duration = aki_get_timestamp() - begin; + u64 duration = nn_get_timestamp() - begin; info("scene loaded in %.2fs", duration / 1000000.f); if (asset_manager()->prepare_output) asset_manager()->dump(args.getString("target")); diff --git a/src/objects/pass.cc b/src/objects/pass.cc index 4d2fd0f..0ed32ae 100644 --- a/src/objects/pass.cc +++ b/src/objects/pass.cc @@ -347,7 +347,7 @@ auto RenderPass::draw(Engine *engine) -> void #ifdef FRAME_STEP adjusted_target->buffer->blit(0, context()->width(), context()->height()); context()->swap_buffers(); - aki_thread_sleep(AKI_TS_FROM_USEC(1000000)); + nn_thread_sleep(NNWT_TS_FROM_USEC(1000000)); #endif break; } diff --git a/src/util.h b/src/util.h index 42c94a6..db954c0 100644 --- a/src/util.h +++ b/src/util.h @@ -3,7 +3,7 @@ extern "C" { #include -#include +#include } #include "log.h" -- cgit v1.2.3-101-g0448