mirror of
https://github.com/sal063/AC6_recomp
synced 2026-08-14 20:44:00 -04:00
Initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// ac6recomp - ReXGlue Recompiled Project
|
||||
//
|
||||
// This file is yours to edit. 'rexglue migrate' will NOT overwrite it.
|
||||
// Customize your app by overriding virtual hooks from rex::ReXApp.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <rex/cvar.h>
|
||||
#include <rex/rex_app.h>
|
||||
|
||||
REXCVAR_DECLARE(bool, vfetch_index_rounding_bias);
|
||||
|
||||
class Ac6recompApp : public rex::ReXApp {
|
||||
public:
|
||||
using rex::ReXApp::ReXApp;
|
||||
|
||||
static std::unique_ptr<rex::ui::WindowedApp> Create(
|
||||
rex::ui::WindowedAppContext& ctx) {
|
||||
return std::unique_ptr<Ac6recompApp>(new Ac6recompApp(ctx, "ac6recomp",
|
||||
PPCImageConfig));
|
||||
}
|
||||
|
||||
protected:
|
||||
void OnPreSetup(rex::RuntimeConfig& config) override {
|
||||
// Fix black triangles caused by vertex fetch index precision (RCP).
|
||||
REXCVAR_SET(vfetch_index_rounding_bias, true);
|
||||
}
|
||||
|
||||
// void OnPostSetup() override {}
|
||||
// void OnCreateDialogs(rex::ui::ImGuiDrawer* drawer) override {}
|
||||
// void OnShutdown() override {}
|
||||
// void OnConfigurePaths(rex::PathConfig& paths) override {}
|
||||
};
|
||||
@@ -0,0 +1,10 @@
|
||||
// ac6recomp - ReXGlue Recompiled Project
|
||||
//
|
||||
// This file is yours to edit. 'rexglue migrate' will NOT overwrite it.
|
||||
|
||||
#include "generated/ac6recomp_config.h"
|
||||
#include "generated/ac6recomp_init.h"
|
||||
|
||||
#include "ac6recomp_app.h"
|
||||
|
||||
REX_DEFINE_APP(ac6recomp, Ac6recompApp::Create)
|
||||
Reference in New Issue
Block a user