X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=libs%2Fgoat3d%2Fsrc%2Fg3danm.h;fp=libs%2Fgoat3d%2Fsrc%2Fg3danm.h;h=36da0186e12bc163f8562057b2f710b9f9775b35;hb=d5f45e3128c537f272615cf76242e1dfebccdee7;hp=0000000000000000000000000000000000000000;hpb=dd7ce87b0ad2b8a1b4758bcc9354e993b71c8599;p=raydungeon diff --git a/libs/goat3d/src/g3danm.h b/libs/goat3d/src/g3danm.h new file mode 100644 index 0000000..36da018 --- /dev/null +++ b/libs/goat3d/src/g3danm.h @@ -0,0 +1,41 @@ +/* +goat3d - 3D scene, and animation file format library. +Copyright (C) 2013-2023 John Tsiombikas + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with this program. If not, see . +*/ +#ifndef G3DANM_H_ +#define G3DANM_H_ + +#include "goat3d.h" +#include "track.h" + +struct goat3d_track { + char *name; + enum goat3d_track_type type; + struct anm_track trk[4]; + struct goat3d_node *node; /* node associated with this track */ +}; + +struct goat3d_anim { + char *name; + struct goat3d_track **tracks; /* dynarr */ +}; + +int g3dimpl_anim_init(struct goat3d_anim *anim); +void g3dimpl_anim_destroy(struct goat3d_anim *anim); + +const char *g3dimpl_trktypestr(enum goat3d_track_type type); + +#endif /* G3DANM_H_ */