mirror of
https://github.com/encounter/aurora.git
synced 2026-07-09 18:19:33 -07:00
9087a409da
* Add API for checking if textures have an available replacement * Add test stubs for arm64 * GXIsTexObjReplaced -> has_replacement
15 lines
590 B
C++
15 lines
590 B
C++
#pragma once
|
|
|
|
#include "texture.hpp"
|
|
#include <optional>
|
|
|
|
namespace aurora::gfx::texture_replacement {
|
|
void initialize() noexcept;
|
|
void shutdown() noexcept;
|
|
std::optional<TextureHandle> find_replacement(const GXTexObj_& obj) noexcept;
|
|
std::optional<TextureHandle> find_replacement(const GXTexObj_& obj, const GXTlutObj_& tlut) noexcept;
|
|
bool has_replacement(const GXTexObj_& obj) noexcept;
|
|
bool has_replacement(const GXTexObj_& obj, const GXTlutObj_& tlut) noexcept;
|
|
std::string build_texture_replacement_name(const GXTexObj_& obj) noexcept;
|
|
} // namespace aurora::gfx::texture_replacement
|