diff --git a/include/visual/atlas.hpp b/include/visual/atlas.hpp index a182fda5..dfb94b63 100644 --- a/include/visual/atlas.hpp +++ b/include/visual/atlas.hpp @@ -45,7 +45,7 @@ public: const float width; const float height; - glez::texture texture; + draw::Texture texture; }; texture_atlas &atlas(); diff --git a/src/hacks/Walkbot.cpp b/src/hacks/Walkbot.cpp index 0c828573..609c36d2 100644 --- a/src/hacks/Walkbot.cpp +++ b/src/hacks/Walkbot.cpp @@ -1075,7 +1075,7 @@ void DrawNode(index_t node, bool draw_back) if (not draw::WorldToScreen(n.xyz(), wts)) return; - glez::draw::outlined_string(wts.x, wts.y, std::to_string(node).c_str(), *fonts::menu, *color, colors::black, nullptr, nullptr); + draw::String(wts.x, wts.y, *color, std::to_string(node).c_str()); } } diff --git a/src/visual/atlas.cpp b/src/visual/atlas.cpp index 2dde36b0..4dfad0bf 100644 --- a/src/visual/atlas.cpp +++ b/src/visual/atlas.cpp @@ -16,7 +16,7 @@ sprite::sprite(float x, float y, float w, float h, texture_atlas &atlas) : nx(x) } void sprite::draw(float scrx, float scry, float scrw, float scrh, const rgba_t &rgba) { - glez::draw::rect_textured(scrx, scry, scrw, scrh, rgba, atlas.texture, nx, ny, nw, nh, 0); + draw::RectangleTextured(scrx, scry, scrw, scrh, rgba, atlas.texture, nx, ny, nw, nh, 0); } texture_atlas::texture_atlas(std::string filename, float width, float height) : width(width), height(height), texture(filename) diff --git a/src/visual/fidgetspinner.cpp b/src/visual/fidgetspinner.cpp index 028ad486..ab4a120c 100644 --- a/src/visual/fidgetspinner.cpp +++ b/src/visual/fidgetspinner.cpp @@ -83,7 +83,7 @@ void DrawSpinner() angle += speed_scale * real_speed; int state = min(3, int(spinning_speed / 250)); - glez::draw::rect_textured(draw::width / 2 - size * 0.5f, draw::height / 2 - size * 0.5f, size, size, colors::white, textures::atlas().texture, 64 * state, (3 + (v9mode ? 0 : 1)) * 64, 64, 64, angle); + draw::RectangleTextured(draw::width / 2 - size * 0.5f, draw::height / 2 - size * 0.5f, size, size, colors::white, textures::atlas().texture, 64 * state, (3 + (v9mode ? 0 : 1)) * 64, 64, 64, angle); if (angle > PI * 4) angle -= PI * 4; } diff --git a/src/visual/menu/menu/Text.cpp b/src/visual/menu/menu/Text.cpp index 04320765..455d0639 100644 --- a/src/visual/menu/menu/Text.cpp +++ b/src/visual/menu/menu/Text.cpp @@ -1,7 +1,7 @@ #include