summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/context.h6
-rw-r--r--src/gl.cc2
-rw-r--r--src/mauri.cc8
-rw-r--r--src/objects/pass.cc2
-rw-r--r--src/util.h2
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
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 <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;
}
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 <al/types.h>
-#include <aki/socket.h>
+#include <nnwt/socket.h>
}
#include "log.h"