summaryrefslogtreecommitdiff
path: root/src/fakerw/rpskin.h
blob: 1ffc9f278b7a8846fa4d1d2f600cd53778171594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <rphanim.h>

//struct RpSkin;
typedef rw::Skin RpSkin;

struct RwMatrixWeights
{
	RwReal w0;
	RwReal w1;
	RwReal w2;
	RwReal w3;
};

RwBool RpSkinPluginAttach(void);

RwUInt32 RpSkinGetNumBones( RpSkin *skin );
const RwMatrixWeights *RpSkinGetVertexBoneWeights( RpSkin *skin );
const RwUInt32 *RpSkinGetVertexBoneIndices( RpSkin *skin );
const RwMatrix *RpSkinGetSkinToBoneMatrices( RpSkin *skin );

RpSkin *RpSkinGeometryGetSkin( RpGeometry *geometry );

RpAtomic *RpSkinAtomicSetHAnimHierarchy( RpAtomic *atomic, RpHAnimHierarchy *hierarchy );
RpHAnimHierarchy *RpSkinAtomicGetHAnimHierarchy( const RpAtomic *atomic );