mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
f0ceea8b2e
* wip, taking a break to work on asm stuff first * the goal code for sparticle * mips2c the first sparticle asm function * temp * particle processing no longer crashing * temp * working texture cache for vi1 and hud textures * sprites * cleanup 1 * temp * temp * add zstd library * temp * working * tests * include fix * uncomment * better decomp of sparticle stuff, part 1 * update references
26 lines
651 B
C++
26 lines
651 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include "common/common_types.h"
|
|
#include "common/util/Serializer.h"
|
|
|
|
class TextureConverter {
|
|
public:
|
|
TextureConverter();
|
|
void upload(const u8* data, u32 dest, u32 size_vram_words);
|
|
void download_rgba8888(u8* result,
|
|
u32 vram_addr,
|
|
u32 goal_tex_width,
|
|
u32 w,
|
|
u32 h,
|
|
u32 psm,
|
|
u32 clut_psm,
|
|
u32 clut_vram_addr,
|
|
u32 expected_size_bytes);
|
|
void serialize(Serializer& ser);
|
|
|
|
private:
|
|
std::vector<u8> m_vram;
|
|
};
|