mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-24 13:49:01 -04:00
a6f059827b
* Game ABI / headers refactoring * Delete dusk/imgui.h
26 lines
449 B
C++
26 lines
449 B
C++
#pragma once
|
|
|
|
#include <dolphin/types.h>
|
|
|
|
namespace batch {
|
|
|
|
struct LeafTemplate {
|
|
static constexpr u32 kMaxVtx = 192;
|
|
static constexpr u32 kMaxPosRefs = 64;
|
|
|
|
struct Vtx {
|
|
u8 pos;
|
|
u8 nrm;
|
|
u8 clr;
|
|
u8 tex;
|
|
};
|
|
Vtx vtx[kMaxVtx];
|
|
u16 vtxCount = 0;
|
|
u8 posRefs[kMaxPosRefs];
|
|
u8 posRefCount = 0;
|
|
};
|
|
|
|
void decode_leaf_template(const u8* dl, u32 size, LeafTemplate& out);
|
|
|
|
} // namespace batch
|