jak-project/decompiler/data/TextureDB.h
water111 083202929c
[graphics] tfrag3 renderer (#978)
* begin work

* work

* working objs

* exporting

* it works

* before some time of day fixes

* add time of day interp and also fix zbuffer

* some small blending fixes

* improve randomess

* clean up extraction and missing blend mode

* culling, time of day, more level fixes

* more cleanup

* cleanup memory usage

* windows fix
2021-12-04 12:33:18 -05:00

29 lines
655 B
C++

#pragma once
#include <vector>
#include <unordered_map>
#include <string>
#include "common/common_types.h"
namespace decompiler {
struct TextureDB {
struct TextureData {
u16 w, h;
std::string name;
u32 page;
std::vector<u32> rgba_bytes;
};
std::unordered_map<u32, TextureData> textures;
std::unordered_map<u32, std::string> tpage_names;
void add_texture(u32 tpage,
u32 texid,
const std::vector<u32>& data,
u16 w,
u16 h,
const std::string& tex_name,
const std::string& tpage_name);
};
} // namespace decompiler