mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
083202929c
* 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
29 lines
655 B
C++
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
|