diff options
| author | 2024-12-24 15:04:18 -0500 | |
|---|---|---|
| committer | 2024-12-24 16:56:02 -0500 | |
| commit | 473a3f42333d03a1d5c4abcbbd4d3f86b81ba1f3 (patch) | |
| tree | baea7f4cc4d28064d27023affdea99439d948db9 /src | |
| parent | 37a45ee3ae3a7b6b1754a5199ca1750529b09575 (diff) | |
| download | mauri-473a3f42333d03a1d5c4abcbbd4d3f86b81ba1f3.tar.gz mauri-473a3f42333d03a1d5c4abcbbd4d3f86b81ba1f3.tar.bz2 mauri-473a3f42333d03a1d5c4abcbbd4d3f86b81ba1f3.zip | |
Update for dependency name change
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src')
| -rw-r--r-- | src/context.h | 6 | ||||
| -rw-r--r-- | src/gl.cc | 2 | ||||
| -rw-r--r-- | src/mauri.cc | 8 | ||||
| -rw-r--r-- | src/objects/pass.cc | 2 | ||||
| -rw-r--r-- | src/util.h | 2 |
5 files changed, 10 insertions, 10 deletions
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 <stl/window.h> #include <stl/gl.h> -#include <aki/thread.h> +#include <nnwt/thread.h> } #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 @@ -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 <aki/common.h> +#include <nnwt/common.h> #include <stl/window.h> } @@ -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; } @@ -3,7 +3,7 @@ extern "C" { #include <al/types.h> -#include <aki/socket.h> +#include <nnwt/socket.h> } #include "log.h" |