UFO: Alien Invasion
|
#include "md2.h"
#include "../../shared/ufotypes.h"
#include "../../common/mem.h"
#include "../../shared/shared.h"
#include "../../common/filesys.h"
#include "../../shared/typedefs.h"
#include "../../common/common.h"
#include "../../shared/byte.h"
Go to the source code of this file.
Macros | |
#define | CHECKMAX(val) if ((val) > ofsSkins && (val) < moveOffset) moveOffset = (val); |
Functions | |
void | MD2HeaderCheck (const dMD2Model_t *md2, const char *fileName, int bufSize) |
void | MD2SkinEdit (const byte *buf, const char *fileName, int bufSize, void *userData) |
void | MD2Info (const byte *buf, const char *fileName, int bufSize, void *userData) |
void | MD2SkinNum (const byte *buf, const char *fileName, int bufSize, void *userData) |
void | MD2GLCmdsRemove (const byte *buf, const char *fileName, int bufSize, void *userData) |
#define CHECKMAX | ( | val | ) | if ((val) > ofsSkins && (val) < moveOffset) moveOffset = (val); |
Referenced by MD2SkinNum().
Definition at line 213 of file md2.cpp.
References Com_Error(), Com_Printf(), ERR_DROP, FS_WriteFile(), LittleLong, MD2HeaderCheck(), Mem_Dup, Mem_Free, dMD2Model_t::num_glcmds, dMD2Model_t::ofs_end, dMD2Model_t::ofs_frames, dMD2Model_t::ofs_glcmds, dMD2Model_t::ofs_skins, dMD2Model_t::ofs_st, dMD2Model_t::ofs_tris, and UFO_SIZE_T.
Referenced by GLCmdsRemove().
void MD2HeaderCheck | ( | const dMD2Model_t * | md2, |
const char * | fileName, | ||
int | bufSize | ||
) |
Definition at line 11 of file md2.cpp.
References Com_Error(), ERR_DROP, IDALIASHEADER, dMD2Model_t::ident, LittleLong, MD2_ALIAS_VERSION, MD2_MAX_SKINS, MD2_MAX_TRIANGLES, MD2_MAX_VERTS, dMD2Model_t::num_skins, dMD2Model_t::num_tris, dMD2Model_t::num_verts, dMD2Model_t::ofs_end, and dMD2Model_t::version.
Referenced by MD2Check(), MD2GLCmdsRemove(), MD2Info(), MD2SkinEdit(), MD2SkinFix(), and MD2SkinNum().
Definition at line 71 of file md2.cpp.
References Com_Printf(), dMD2Model_t::framesize, i, LittleLong, MD2_MAX_SKINNAME, MD2HeaderCheck(), name, dMD2Model_t::num_frames, dMD2Model_t::num_glcmds, dMD2Model_t::num_skins, dMD2Model_t::num_st, dMD2Model_t::num_tris, dMD2Model_t::num_verts, dMD2Model_t::ofs_end, dMD2Model_t::ofs_frames, dMD2Model_t::ofs_glcmds, dMD2Model_t::ofs_skins, dMD2Model_t::ofs_st, dMD2Model_t::ofs_tris, dMD2Model_t::skinheight, dMD2Model_t::skinwidth, and dMD2Model_t::version.
Referenced by main().
Definition at line 39 of file md2.cpp.
References Com_Printf(), FILE_WRITE, FS_OpenFile(), FS_Write(), i, LittleLong, MD2_MAX_SKINNAME, MD2HeaderCheck(), Mem_Dup, Mem_Free, name, dMD2Model_t::num_skins, dMD2Model_t::ofs_skins, and va().
Referenced by main().
Definition at line 120 of file md2.cpp.
References CHECKMAX, Com_Printf(), FILE_WRITE, FS_OpenFile(), FS_Write(), i, LittleLong, MD2_MAX_SKINNAME, MD2_MAX_SKINS, MD2HeaderCheck(), Mem_Dup, Mem_Free, Mem_ReAlloc, name, dMD2Model_t::num_skins, dMD2Model_t::ofs_end, dMD2Model_t::ofs_frames, dMD2Model_t::ofs_glcmds, dMD2Model_t::ofs_skins, dMD2Model_t::ofs_st, dMD2Model_t::ofs_tris, and va().
Referenced by main().