*/
+#ifndef MODEL_ALIAS_H
+#define MODEL_ALIAS_H
+
/*
==============================================================================
#include "modelgen.h"
-/*
-typedef struct
-{
- int firstpose;
- int numposes;
- float interval;
- trivertx_t bboxmin;
- trivertx_t bboxmax;
- int frame;
- char name[16];
-} maliasframedesc_t;
-
-typedef struct
-{
- trivertx_t bboxmin;
- trivertx_t bboxmax;
- int frame;
-} maliasgroupframedesc_t;
-
-typedef struct
-{
- int numframes;
- int intervals;
- maliasgroupframedesc_t frames[1];
-} maliasgroup_t;
-
-typedef struct mtriangle_s {
- int facesfront;
- int vertindex[3];
-} mtriangle_t;
-*/
-
typedef struct {
int ident;
int version;
int ofs_end; // end of file
} md2_t;
-#define ALIASTYPE_MDL 1
-#define ALIASTYPE_MD2 2
-#define ALIASTYPE_ZYM 3
+// LordHavoc: Q1 and Q2 models are converted to the same internal format
+#define ALIASTYPE_MDLMD2 1
+#define ALIASTYPE_ZYM 2
extern void Mod_LoadAliasModel (struct model_s *mod, void *buffer);
extern void Mod_LoadQ2AliasModel (struct model_s *mod, void *buffer);
extern void Mod_AliasInit(void);
#include "model_zymotic.h"
+
+#endif
+