Curation round 4: popups, Seeds/Random, Game, KeyConfigs, offline NetplayManager, Console, TextureCache, render passes
Six agents took over PopupButtons/PopupQueue/AchievementOverlay, Seeds with the global Random (now seeded from the clock as in the original), Game (g_game exists from Manager::Init on), KeyConfigs, an offline NetplayManager, Console's output and printing, TextureCache, the color-mod and sprite shader passes, mod shaders and reload_resource_paths. An integration pass moved callers to the new APIs (0 errors, 0 warnings with -Wall -Wextra). build/isaac loads the 34 installed mods and stops at ScoreSheet::ScoreSheet in Game's constructor; with the remaining stubs skipped under gdb the intro cutscene plays through and the main menu's frame loop runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ddf913f304
commit
fd8b965350
110 files changed
+6500
-40129
No files matched your search
+6
-2
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "anm2.h"
|
||||
#include "kage_graphics.h"
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
@@ -38,14 +39,17 @@ enum ModBanStatus
|
||||
MOD_BAN_NEEDS_RESTART
|
||||
};
|
||||
|
||||
// A shader a mod's shaders.xml declares: its GLSL and the vertex parameters it takes, each with its float count.
|
||||
// The KAGE shader and render target it owns belong to the graphics round, so their members stop the game for now.
|
||||
// A shader a mod's shaders.xml declares: its GLSL and the vertex parameters it takes, each with its float count, the
|
||||
// KAGE shader built from them and the render target Game::Render draws through it.
|
||||
// Destruction, which frees both, is the default.
|
||||
struct ModShader
|
||||
{
|
||||
std::map<std::string, int> parameters;
|
||||
std::unique_ptr<KAGE::Graphics::Shader> shader;
|
||||
std::string fragmentSource;
|
||||
std::string name;
|
||||
std::string vertexSource;
|
||||
KAGE::Graphics::ImagePtr renderTarget;
|
||||
int parametersSize = 0;
|
||||
|
||||
void load();
|
||||
|
||||
Reference in new issue
Block a user