jak-project/decompiler/data/tpage.h
water111 ac52be1a6c
[shrub] Fix bug with gs-prim settings (#2899)
Fix the bug described in
https://github.com/open-goal/jak-project/issues/2882 where some shrubs
are transparent when they shouldn't be. The problem was that we never
carefully looked at the settings in `gs-prim`, which has a bit to
enable/disable alpha blending entirely. Now it should be correct for
both jak 1 and jak 2. To see this change, you'll need to re-extract.

Also adds a setting to disable saving texture .pngs, to speed up
decompilation. I left it on for jak 1 (to avoid confusion for texture
swapping(, but off for jak 2 for now.
2023-08-13 16:06:59 -04:00

22 lines
580 B
C++

#pragma once
#include <string>
#include <unordered_set>
#include "decompiler/data/TextureDB.h"
namespace decompiler {
struct ObjectFileData;
struct TPageResultStats {
int total_textures = 0;
int successful_textures = 0;
int num_px = 0;
};
TPageResultStats process_tpage(ObjectFileData& data,
TextureDB& texture_db,
const fs::path& output_path,
const std::unordered_set<std::string>& animated_textures,
bool save_pngs);
} // namespace decompiler