#pragma once #include "../internal.hpp" #include "../gfx/gx.hpp" static aurora::Module Log("aurora::gx"); using aurora::gfx::gx::g_gxState; template static inline void update_gx_state(T& val, T newVal) { if (val != newVal) { val = std::move(newVal); g_gxState.stateDirty = true; } } static inline aurora::Vec4 from_gx_color(GXColor color) { return { static_cast(color.r) / 255.f, static_cast(color.g) / 255.f, static_cast(color.b) / 255.f, static_cast(color.a) / 255.f, }; }