jak-project/decompiler/level_extractor/extract_common.h
water111 5b04be2fa0
Add hfrag, clean up some background renderer stuff (#3509)
This adds hfrag, but with a few remaining issues:
- The textures aren't animated. Instead, it just uses one texture.
- The texture filtering isn't as good as at it could be.

I also cleaned up a few issues with the background renderers:
- Cleaned up some stuff that is common to hfrag, tie, tfrag, shrub
- Moved time-of-day color packing stuff to FR3 creation, rather than at
level load. This appears to reduce the frame time spikes when a level is
first drawn by about 5 or 6 ms in big levels.
- Cleaned up the x86 specific stuff used in time of day. Now there's
only one place where we have an `ifdef`, rather than spreading it all
over the rendering code.
2024-05-09 20:11:43 -04:00

13 lines
340 B
C++

#pragma once
#include <vector>
#include "common/common_types.h"
#include "common/custom_data/Tfrag3Data.h"
#include "decompiler/level_extractor/BspHeader.h"
namespace decompiler {
u32 clean_up_vertex_indices(std::vector<u32>& idx);
tfrag3::PackedTimeOfDay pack_colors(const level_tools::TimeOfDayPalette& in);
} // namespace decompiler