jak-project/game/graphics/texture/TextureConverter.h
water111 f0ceea8b2e
[sparticle] 2d hud particles (#849)
* 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
2021-09-26 11:41:58 -04:00

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;
};