refresh: split models file to maps.c

This commit is contained in:
Denis Pauk 2023-12-27 23:15:35 +02:00
parent 22d36d6bfe
commit 083ea68a80
4 changed files with 1142 additions and 1109 deletions

View file

@ -1040,6 +1040,7 @@ REFGL1_OBJS_ := \
src/client/refresh/files/mesh.o \
src/client/refresh/files/light.o \
src/client/refresh/files/surf.o \
src/client/refresh/files/maps.o \
src/client/refresh/files/models.o \
src/client/refresh/files/pcx.o \
src/client/refresh/files/stb.o \
@ -1077,6 +1078,7 @@ REFGL3_OBJS_ := \
src/client/refresh/files/mesh.o \
src/client/refresh/files/light.o \
src/client/refresh/files/surf.o \
src/client/refresh/files/maps.o \
src/client/refresh/files/models.o \
src/client/refresh/files/pcx.o \
src/client/refresh/files/stb.o \
@ -1120,6 +1122,7 @@ REFGL4_OBJS_ := \
src/client/refresh/files/mesh.o \
src/client/refresh/files/light.o \
src/client/refresh/files/surf.o \
src/client/refresh/files/maps.o \
src/client/refresh/files/models.o \
src/client/refresh/files/pcx.o \
src/client/refresh/files/stb.o \
@ -1165,6 +1168,7 @@ REFSOFT_OBJS_ := \
src/client/refresh/files/mesh.o \
src/client/refresh/files/light.o \
src/client/refresh/files/surf.o \
src/client/refresh/files/maps.o \
src/client/refresh/files/models.o \
src/client/refresh/files/pcx.o \
src/client/refresh/files/stb.o \
@ -1209,6 +1213,7 @@ REFVK_OBJS_ := \
src/client/refresh/files/mesh.o \
src/client/refresh/files/light.o \
src/client/refresh/files/surf.o \
src/client/refresh/files/maps.o \
src/client/refresh/files/models.o \
src/client/refresh/files/pcx.o \
src/client/refresh/files/stb.o \

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -65,9 +65,6 @@ typedef struct
unsigned char data; /* unbounded */
} pcx_t;
/* .MD5 model file format */
#define IDMD5HEADER (('V' << 24) + ('5' << 16) + ('D' << 8) + 'M')
/* .MDL triangle model file format */
#define IDMDLHEADER (('O' << 24) + ('P' << 16) + ('D' << 8) + 'I')
@ -244,6 +241,9 @@ typedef struct dkm_header_s
int ofs_end; /* end of file */
} dkm_header_t;
/* .MD5 model file format */
#define IDMD5HEADER (('V' << 24) + ('5' << 16) + ('D' << 8) + 'M')
/* Internal model render format */
typedef struct