]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_iqm.h
cvar: r_texture_dds_load_dxt1_noalpha; if set, DXT1 alpha detection is disabled,...
[xonotic/darkplaces.git] / model_iqm.h
index 39249f88e05da64cf578a93dbb5222b404ab446a..a56829b4a1ddfc24f80a9aa9962fef3f25e87f8c 100644 (file)
@@ -11,7 +11,7 @@ typedef struct iqmheader_s
        unsigned int num_meshes, ofs_meshes;
        unsigned int num_vertexarrays, num_vertexes, ofs_vertexarrays;
        unsigned int num_triangles, ofs_triangles, ofs_neighbors;
-       unsigned int num_joints, ofs_joints, ofs_inversebasepose;
+       unsigned int num_joints, ofs_joints;
        unsigned int num_poses, ofs_poses;
        unsigned int num_anims, ofs_anims;
        unsigned int num_frames, num_framechannels, ofs_frames, ofs_bounds;
@@ -48,6 +48,9 @@ iqmmesh_t;
 #define IQM_FLOAT   7
 #define IQM_DOUBLE  8
 
+// animflags
+#define IQM_LOOP 1
+
 typedef struct iqmtriangle_s
 {
        unsigned int vertex[3];
@@ -58,7 +61,7 @@ typedef struct iqmjoint_s
 {
        unsigned int name;
        signed int parent;
-       float origin[3], rotation[3];
+       float origin[3], rotation[3], scale[3];
 }
 iqmjoint_t;
 
@@ -66,7 +69,7 @@ typedef struct iqmpose_s
 {
        signed int parent;
        unsigned int channelmask;
-       float channeloffset[6], channelscale[6];
+       float channeloffset[9], channelscale[9];
 }
 iqmpose_t;
 
@@ -74,7 +77,7 @@ typedef struct iqmanim_s
 {
        unsigned int name;
        unsigned int first_frame, num_frames;
-       unsigned int framerate;
+       float framerate;
        unsigned int flags;
 }
 iqmanim_t;