#include <windows.h>
#include <iostream>
#include <fstream>
#include <string>
#include "types.h"
#include "functions.h"
#include "constants.h"
Defines | |
#define | NOMINMAX |
Functions | |
animation_t * | getanimation (animationlibrary_t *library, char *_lpcstrName) |
register a bone and its children to a given keyframe | |
keyframe_t * | makekeyframe (int _iidx, char *_lpcstrName, float _fduration, vec3f _offset, bone_t *root) |
in a given keyframe library, replace a keyframe identified by its name by another one | |
int | fillkeyframe (keyframe_t *newkeyframe, bone_t *root) |
generate a new keyframe for a given root bone and its children | |
int | replacekeyframe (keyframelibrary_t *library, char *_lpcstrName, keyframe_t *_newkeyframe) |
acquire a handle to a keyframe identified by its name | |
keyframe_t * | getkeyframe (keyframelibrary_t *library, char *_lpcstrName) |
update a model over time | |
int | loadanimations (std::string filename, animationlibrary_t *library) |
load vertex / bone associations | |
int | updateanimation (model_t *model, float now) |
create a vertex mapper based on the models bone structure | |
int | loadkeyframes (std::string filename, keyframelibrary_t *library) |
load a skeleton from a file |
#define NOMINMAX |
int fillkeyframe | ( | keyframe_t * | newkeyframe, | |
bone_t * | root | |||
) |
generate a new keyframe for a given root bone and its children
animation_t* getanimation | ( | animationlibrary_t * | library, | |
char * | _lpcstrName | |||
) |
register a bone and its children to a given keyframe
keyframe_t* getkeyframe | ( | keyframelibrary_t * | library, | |
char * | _lpcstrName | |||
) |
update a model over time
int loadanimations | ( | std::string | filename, | |
animationlibrary_t * | library | |||
) |
load vertex / bone associations
int loadkeyframes | ( | std::string | filename, | |
keyframelibrary_t * | library | |||
) |
load a skeleton from a file
keyframe_t* makekeyframe | ( | int | _iidx, | |
char * | _lpcstrName, | |||
float | _fduration, | |||
vec3f | _offset, | |||
bone_t * | root | |||
) |
in a given keyframe library, replace a keyframe identified by its name by another one
int replacekeyframe | ( | keyframelibrary_t * | library, | |
char * | _lpcstrName, | |||
keyframe_t * | _newkeyframe | |||
) |
acquire a handle to a keyframe identified by its name
int updateanimation | ( | model_t * | model, | |
float | now | |||
) |
create a vertex mapper based on the models bone structure