Add skinned mesh define
parent
e4fc03e848
commit
542a1d70e7
|
@ -18,7 +18,8 @@ SOURCES += main.cpp \
|
|||
convexhull.c \
|
||||
hashtable.c \
|
||||
osutil.cpp \
|
||||
subdivide.c
|
||||
subdivide.c \
|
||||
skinnedmesh.c
|
||||
|
||||
HEADERS += mainwindow.h \
|
||||
render.h \
|
||||
|
@ -31,4 +32,5 @@ HEADERS += mainwindow.h \
|
|||
hashtable.h \
|
||||
3dstruct.h \
|
||||
osutil.h \
|
||||
subdivide.h
|
||||
subdivide.h \
|
||||
skinnedmesh.h
|
|
@ -0,0 +1,2 @@
|
|||
#include "skinnedmesh.h"
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef SKINNED_MESH_H
|
||||
#define SKINNED_MESH_H
|
||||
#include "3dstruct.h"
|
||||
#include "matrix.h"
|
||||
|
||||
#define SKINNED_MESH_MAX_BONE 4
|
||||
|
||||
typedef struct skinnedMeshVertex {
|
||||
vec3 position;
|
||||
vec3 normal;
|
||||
int boneIndices[SKINNED_MESH_MAX_BONE];
|
||||
float boneWeights[SKINNED_MESH_MAX_BONE];
|
||||
} skinnedMeshVertex;
|
||||
|
||||
typedef struct skinnedMeshBone {
|
||||
vec3 translation;
|
||||
vec3 rotation;
|
||||
matrix toRoot;
|
||||
} skinnedMeshBone;
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue