mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp
synced 2025-10-05 16:12:49 +02:00
* Update runtime for hook and callback sorting, update version number * Actually update version number * Automatically open mods menu when dragging a mod which also prevents issues when installing a mod from the launcher menu * Update RT64 to add texture pack shift configuration and fix minimized memory leak * Update runtime for return hook getter exports * Actually update rt64 * Update RT64 to fix texture pack ordering * Implement optional dependencies, fix memory slotmaps, bump version number to 1.2.1-dev * Add command-line option to show console output on Windows. (#632) * Add new raphnet adapter revision to controller DB * Add another mayflash N64 adapter to the controller database file * Update runtime after merge for optional dependencies * Update runtime for optional dependency mod callback fix * Add mayflash magic NS to controller database * Update RT64 for extended address fix and x11 dependency removal * Update RT64 to fix build issue caused by x11 * Update runtime to remove unnnecessary x11 includes * Fix more x11 define compilation issues * Fix the x86-64 CPU requirement listing in the readme (#634) * Transform tagging for keaton grass tornado * Interpolation for sword trails * Switch RT64 to gEXVertex fix branch (temporary until merge) * Add 8bitdo 64 bluetooth controller to database * Add export to get bowstring transform ID * Update RT64 to fix linux dev mode menu and texture streaming race condition * Fix all the interpolation glitches in the Gibdo Mask cutscene (#641) * Fix the actor extension API breaking when registering an extension for actor type 0 first * Remove slotmap submodule and integrate header directly after submodule URL changed * Transform tagging for ObjGrass * Adding autosave events. (#611) * Adding autosave events. Dead simple. * Update autosaving.c to include @recomp_event comments * Prevent autosaves during minigames and fix holding powder keg on autosave load (#640) * Update runtime for more accurate VI and switch to improved pacing RT64 branch (#644) * Update runtime for more accurate VI and switch to improved pacing RT64 branch * Update N64ModernRuntime and RT64 after merge * Update recompiler to match runtime symbol list * Remove unused gibdo patch file --------- Co-authored-by: Darío <dariosamo@gmail.com> Co-authored-by: Reonu <15913880+Reonu@users.noreply.github.com>
62 lines
2.4 KiB
C++
62 lines
2.4 KiB
C++
#ifndef __ZELDA_RENDER_H__
|
|
#define __ZELDA_RENDER_H__
|
|
|
|
#include <unordered_set>
|
|
#include <filesystem>
|
|
|
|
#include "common/rt64_user_configuration.h"
|
|
#include "ultramodern/renderer_context.hpp"
|
|
#include "librecomp/mods.hpp"
|
|
|
|
namespace RT64 {
|
|
struct Application;
|
|
}
|
|
|
|
namespace zelda64 {
|
|
namespace renderer {
|
|
inline const std::string special_option_texture_pack_enabled = "_recomp_texture_pack_enabled";
|
|
|
|
class RT64Context final : public ultramodern::renderer::RendererContext {
|
|
public:
|
|
~RT64Context() override;
|
|
RT64Context(uint8_t *rdram, ultramodern::renderer::WindowHandle window_handle, bool developer_mode);
|
|
|
|
bool valid() override { return static_cast<bool>(app); }
|
|
|
|
bool update_config(const ultramodern::renderer::GraphicsConfig &old_config, const ultramodern::renderer::GraphicsConfig &new_config) override;
|
|
|
|
void enable_instant_present() override;
|
|
void send_dl(const OSTask *task) override;
|
|
void update_screen() override;
|
|
void shutdown() override;
|
|
uint32_t get_display_framerate() const override;
|
|
float get_resolution_scale() const override;
|
|
|
|
private:
|
|
std::unique_ptr<RT64::Application> app;
|
|
std::unordered_set<std::string> enabled_texture_packs;
|
|
std::unordered_set<std::string> secondary_disabled_texture_packs;
|
|
|
|
void check_texture_pack_actions();
|
|
};
|
|
|
|
std::unique_ptr<ultramodern::renderer::RendererContext> create_render_context(uint8_t *rdram, ultramodern::renderer::WindowHandle window_handle, bool developer_mode);
|
|
|
|
RT64::UserConfiguration::Antialiasing RT64MaxMSAA();
|
|
bool RT64SamplePositionsSupported();
|
|
bool RT64HighPrecisionFBEnabled();
|
|
|
|
void trigger_texture_pack_update();
|
|
void enable_texture_pack(const recomp::mods::ModContext& context, const recomp::mods::ModHandle& mod);
|
|
void disable_texture_pack(const recomp::mods::ModHandle& mod);
|
|
void secondary_enable_texture_pack(const std::string& mod_id);
|
|
void secondary_disable_texture_pack(const std::string& mod_id);
|
|
|
|
// Texture pack enable option. Must be an enum with two options.
|
|
// The first option is treated as disabled and the second option is treated as enabled.
|
|
bool is_texture_pack_enable_config_option(const recomp::mods::ConfigOption& option, bool show_errors);
|
|
}
|
|
}
|
|
|
|
#endif
|