mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(component): create texture buffer in CCharacterComponent::Initialize
This commit is contained in:
parent
bcf6f34e81
commit
5bd90ecf29
@ -2,6 +2,7 @@
|
||||
#include "component/Texture.hpp"
|
||||
#include "component/Util.hpp"
|
||||
#include "db/Db.hpp"
|
||||
#include "gx/Texture.hpp"
|
||||
#include "model/CM2Model.hpp"
|
||||
#include "object/Types.hpp"
|
||||
#include <storm/Memory.hpp>
|
||||
@ -11,6 +12,7 @@ st_race* CCharacterComponent::s_chrVarArray;
|
||||
uint32_t CCharacterComponent::s_chrVarArrayLength;
|
||||
EGxTexFormat CCharacterComponent::s_gxFormat;
|
||||
uint32_t CCharacterComponent::s_mipLevels;
|
||||
MipBits* CCharacterComponent::s_textureBuffer;
|
||||
uint32_t CCharacterComponent::s_textureSize;
|
||||
|
||||
int32_t s_bInRenderPrep = 0;
|
||||
@ -58,6 +60,14 @@ void CCharacterComponent::Initialize(EGxTexFormat textureFormat, uint32_t textur
|
||||
CCharacterComponent::InitDbData();
|
||||
|
||||
// TODO
|
||||
|
||||
CCharacterComponent::s_textureBuffer = TextureAllocMippedImg(
|
||||
PIXEL_ARGB8888,
|
||||
CCharacterComponent::s_textureSize,
|
||||
CCharacterComponent::s_textureSize
|
||||
);
|
||||
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CCharacterComponent::InitDbData() {
|
||||
|
||||
@ -9,6 +9,7 @@ class CACHEENTRY;
|
||||
class CharSectionsRec;
|
||||
class CM2Model;
|
||||
|
||||
struct MipBits;
|
||||
struct st_race;
|
||||
|
||||
struct ComponentData {
|
||||
@ -54,6 +55,7 @@ class CCharacterComponent {
|
||||
static uint32_t s_chrVarArrayLength;
|
||||
static EGxTexFormat s_gxFormat;
|
||||
static uint32_t s_mipLevels;
|
||||
static MipBits* s_textureBuffer;
|
||||
static uint32_t s_textureSize;
|
||||
|
||||
// Static functions
|
||||
|
||||
Loading…
Reference in New Issue
Block a user