doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions
Model_lwo.h File Reference

Go to the source code of this file.

Classes

struct  st_lwNode
 
struct  st_lwPlugin
 
struct  st_lwKey
 
struct  st_lwEnvelope
 
struct  st_lwEParam
 
struct  st_lwVParam
 
struct  st_lwClipStill
 
struct  st_lwClipSeq
 
struct  st_lwClipAnim
 
struct  st_lwClipXRef
 
struct  st_lwClipCycle
 
struct  st_lwClip
 
struct  st_lwTMap
 
struct  st_lwImageMap
 
struct  st_lwProcedural
 
struct  st_lwGradKey
 
struct  st_lwGradient
 
struct  st_lwTexture
 
struct  st_lwTParam
 
struct  st_lwCParam
 
struct  st_lwGlow
 
struct  st_lwRMap
 
struct  st_lwLine
 
struct  st_lwSurface
 
struct  st_lwVMap
 
struct  st_lwVMapPt
 
struct  st_lwPoint
 
struct  st_lwPolVert
 
struct  st_lwPolygon
 
struct  st_lwPointList
 
struct  st_lwPolygonList
 
struct  st_lwLayer
 
struct  st_lwTagList
 
struct  st_lwObject
 

Macros

#define LWID_(a, b, c, d)   (((a)<<24)|((b)<<16)|((c)<<8)|(d))
 
#define ID_FORM   LWID_('F','O','R','M')
 
#define ID_LWO2   LWID_('L','W','O','2')
 
#define ID_LWOB   LWID_('L','W','O','B')
 
#define ID_LAYR   LWID_('L','A','Y','R')
 
#define ID_TAGS   LWID_('T','A','G','S')
 
#define ID_PNTS   LWID_('P','N','T','S')
 
#define ID_BBOX   LWID_('B','B','O','X')
 
#define ID_VMAP   LWID_('V','M','A','P')
 
#define ID_VMAD   LWID_('V','M','A','D')
 
#define ID_POLS   LWID_('P','O','L','S')
 
#define ID_PTAG   LWID_('P','T','A','G')
 
#define ID_ENVL   LWID_('E','N','V','L')
 
#define ID_CLIP   LWID_('C','L','I','P')
 
#define ID_SURF   LWID_('S','U','R','F')
 
#define ID_DESC   LWID_('D','E','S','C')
 
#define ID_TEXT   LWID_('T','E','X','T')
 
#define ID_ICON   LWID_('I','C','O','N')
 
#define ID_FACE   LWID_('F','A','C','E')
 
#define ID_CURV   LWID_('C','U','R','V')
 
#define ID_PTCH   LWID_('P','T','C','H')
 
#define ID_MBAL   LWID_('M','B','A','L')
 
#define ID_BONE   LWID_('B','O','N','E')
 
#define ID_SURF   LWID_('S','U','R','F')
 
#define ID_PART   LWID_('P','A','R','T')
 
#define ID_SMGP   LWID_('S','M','G','P')
 
#define ID_PRE   LWID_('P','R','E',' ')
 
#define ID_POST   LWID_('P','O','S','T')
 
#define ID_KEY   LWID_('K','E','Y',' ')
 
#define ID_SPAN   LWID_('S','P','A','N')
 
#define ID_TCB   LWID_('T','C','B',' ')
 
#define ID_HERM   LWID_('H','E','R','M')
 
#define ID_BEZI   LWID_('B','E','Z','I')
 
#define ID_BEZ2   LWID_('B','E','Z','2')
 
#define ID_LINE   LWID_('L','I','N','E')
 
#define ID_STEP   LWID_('S','T','E','P')
 
#define ID_STIL   LWID_('S','T','I','L')
 
#define ID_ISEQ   LWID_('I','S','E','Q')
 
#define ID_ANIM   LWID_('A','N','I','M')
 
#define ID_XREF   LWID_('X','R','E','F')
 
#define ID_STCC   LWID_('S','T','C','C')
 
#define ID_TIME   LWID_('T','I','M','E')
 
#define ID_CONT   LWID_('C','O','N','T')
 
#define ID_BRIT   LWID_('B','R','I','T')
 
#define ID_SATR   LWID_('S','A','T','R')
 
#define ID_HUE   LWID_('H','U','E',' ')
 
#define ID_GAMM   LWID_('G','A','M','M')
 
#define ID_NEGA   LWID_('N','E','G','A')
 
#define ID_IFLT   LWID_('I','F','L','T')
 
#define ID_PFLT   LWID_('P','F','L','T')
 
#define ID_COLR   LWID_('C','O','L','R')
 
#define ID_LUMI   LWID_('L','U','M','I')
 
#define ID_DIFF   LWID_('D','I','F','F')
 
#define ID_SPEC   LWID_('S','P','E','C')
 
#define ID_GLOS   LWID_('G','L','O','S')
 
#define ID_REFL   LWID_('R','E','F','L')
 
#define ID_RFOP   LWID_('R','F','O','P')
 
#define ID_RIMG   LWID_('R','I','M','G')
 
#define ID_RSAN   LWID_('R','S','A','N')
 
#define ID_TRAN   LWID_('T','R','A','N')
 
#define ID_TROP   LWID_('T','R','O','P')
 
#define ID_TIMG   LWID_('T','I','M','G')
 
#define ID_RIND   LWID_('R','I','N','D')
 
#define ID_TRNL   LWID_('T','R','N','L')
 
#define ID_BUMP   LWID_('B','U','M','P')
 
#define ID_SMAN   LWID_('S','M','A','N')
 
#define ID_SIDE   LWID_('S','I','D','E')
 
#define ID_CLRH   LWID_('C','L','R','H')
 
#define ID_CLRF   LWID_('C','L','R','F')
 
#define ID_ADTR   LWID_('A','D','T','R')
 
#define ID_SHRP   LWID_('S','H','R','P')
 
#define ID_LINE   LWID_('L','I','N','E')
 
#define ID_LSIZ   LWID_('L','S','I','Z')
 
#define ID_ALPH   LWID_('A','L','P','H')
 
#define ID_AVAL   LWID_('A','V','A','L')
 
#define ID_GVAL   LWID_('G','V','A','L')
 
#define ID_BLOK   LWID_('B','L','O','K')
 
#define ID_TYPE   LWID_('T','Y','P','E')
 
#define ID_CHAN   LWID_('C','H','A','N')
 
#define ID_NAME   LWID_('N','A','M','E')
 
#define ID_ENAB   LWID_('E','N','A','B')
 
#define ID_OPAC   LWID_('O','P','A','C')
 
#define ID_FLAG   LWID_('F','L','A','G')
 
#define ID_PROJ   LWID_('P','R','O','J')
 
#define ID_STCK   LWID_('S','T','C','K')
 
#define ID_TAMP   LWID_('T','A','M','P')
 
#define ID_TMAP   LWID_('T','M','A','P')
 
#define ID_AXIS   LWID_('A','X','I','S')
 
#define ID_CNTR   LWID_('C','N','T','R')
 
#define ID_SIZE   LWID_('S','I','Z','E')
 
#define ID_ROTA   LWID_('R','O','T','A')
 
#define ID_OREF   LWID_('O','R','E','F')
 
#define ID_FALL   LWID_('F','A','L','L')
 
#define ID_CSYS   LWID_('C','S','Y','S')
 
#define ID_IMAP   LWID_('I','M','A','P')
 
#define ID_IMAG   LWID_('I','M','A','G')
 
#define ID_WRAP   LWID_('W','R','A','P')
 
#define ID_WRPW   LWID_('W','R','P','W')
 
#define ID_WRPH   LWID_('W','R','P','H')
 
#define ID_VMAP   LWID_('V','M','A','P')
 
#define ID_AAST   LWID_('A','A','S','T')
 
#define ID_PIXB   LWID_('P','I','X','B')
 
#define ID_PROC   LWID_('P','R','O','C')
 
#define ID_COLR   LWID_('C','O','L','R')
 
#define ID_VALU   LWID_('V','A','L','U')
 
#define ID_FUNC   LWID_('F','U','N','C')
 
#define ID_FTPS   LWID_('F','T','P','S')
 
#define ID_ITPS   LWID_('I','T','P','S')
 
#define ID_ETPS   LWID_('E','T','P','S')
 
#define ID_GRAD   LWID_('G','R','A','D')
 
#define ID_GRST   LWID_('G','R','S','T')
 
#define ID_GREN   LWID_('G','R','E','N')
 
#define ID_PNAM   LWID_('P','N','A','M')
 
#define ID_INAM   LWID_('I','N','A','M')
 
#define ID_GRPT   LWID_('G','R','P','T')
 
#define ID_FKEY   LWID_('F','K','E','Y')
 
#define ID_IKEY   LWID_('I','K','E','Y')
 
#define ID_SHDR   LWID_('S','H','D','R')
 
#define ID_DATA   LWID_('D','A','T','A')
 
#define BEH_RESET   0
 
#define BEH_CONSTANT   1
 
#define BEH_REPEAT   2
 
#define BEH_OSCILLATE   3
 
#define BEH_OFFSET   4
 
#define BEH_LINEAR   5
 
#define PROJ_PLANAR   0
 
#define PROJ_CYLINDRICAL   1
 
#define PROJ_SPHERICAL   2
 
#define PROJ_CUBIC   3
 
#define PROJ_FRONT   4
 
#define WRAP_NONE   0
 
#define WRAP_EDGE   1
 
#define WRAP_REPEAT   2
 
#define WRAP_MIRROR   3
 
#define vecangle(a, b)   ( float ) idMath::ACos( dot( a, b ) )
 

Typedefs

typedef struct st_lwNode lwNode
 
typedef struct st_lwPlugin lwPlugin
 
typedef struct st_lwKey lwKey
 
typedef struct st_lwEnvelope lwEnvelope
 
typedef struct st_lwEParam lwEParam
 
typedef struct st_lwVParam lwVParam
 
typedef struct st_lwClipStill lwClipStill
 
typedef struct st_lwClipSeq lwClipSeq
 
typedef struct st_lwClipAnim lwClipAnim
 
typedef struct st_lwClipXRef lwClipXRef
 
typedef struct st_lwClipCycle lwClipCycle
 
typedef struct st_lwClip lwClip
 
typedef struct st_lwTMap lwTMap
 
typedef struct st_lwImageMap lwImageMap
 
typedef struct st_lwProcedural lwProcedural
 
typedef struct st_lwGradKey lwGradKey
 
typedef struct st_lwGradient lwGradient
 
typedef struct st_lwTexture lwTexture
 
typedef struct st_lwTParam lwTParam
 
typedef struct st_lwCParam lwCParam
 
typedef struct st_lwGlow Glow
 
typedef struct st_lwRMap lwRMap
 
typedef struct st_lwLine lwLine
 
typedef struct st_lwSurface lwSurface
 
typedef struct st_lwVMap lwVMap
 
typedef struct st_lwVMapPt lwVMapPt
 
typedef struct st_lwPoint lwPoint
 
typedef struct st_lwPolVert lwPolVert
 
typedef struct st_lwPolygon lwPolygon
 
typedef struct st_lwPointList lwPointList
 
typedef struct st_lwPolygonList lwPolygonList
 
typedef struct st_lwLayer lwLayer
 
typedef struct st_lwTagList lwTagList
 
typedef struct st_lwObject lwObject
 

Functions

lwObjectlwGetObject (const char *filename, unsigned int *failID, int *failpos)
 
void lwFreeObject (lwObject *object)
 
void lwFreeLayer (lwLayer *layer)
 
void lwFreePoints (lwPointList *point)
 
void lwFreePolygons (lwPolygonList *plist)
 
int lwGetPoints (idFile *fp, int cksize, lwPointList *point)
 
void lwGetBoundingBox (lwPointList *point, float bbox[])
 
int lwAllocPolygons (lwPolygonList *plist, int npols, int nverts)
 
int lwGetPolygons (idFile *fp, int cksize, lwPolygonList *plist, int ptoffset)
 
void lwGetPolyNormals (lwPointList *point, lwPolygonList *polygon)
 
int lwGetPointPolygons (lwPointList *point, lwPolygonList *polygon)
 
int lwResolvePolySurfaces (lwPolygonList *polygon, lwTagList *tlist, lwSurface **surf, int *nsurfs)
 
void lwGetVertNormals (lwPointList *point, lwPolygonList *polygon)
 
void lwFreeTags (lwTagList *tlist)
 
int lwGetTags (idFile *fp, int cksize, lwTagList *tlist)
 
int lwGetPolygonTags (idFile *fp, int cksize, lwTagList *tlist, lwPolygonList *plist)
 
void lwFreeVMap (lwVMap *vmap)
 
lwVMaplwGetVMap (idFile *fp, int cksize, int ptoffset, int poloffset, int perpoly)
 
int lwGetPointVMaps (lwPointList *point, lwVMap *vmap)
 
int lwGetPolyVMaps (lwPolygonList *polygon, lwVMap *vmap)
 
void lwFreeClip (lwClip *clip)
 
lwCliplwGetClip (idFile *fp, int cksize)
 
lwCliplwFindClip (lwClip *list, int index)
 
void lwFreeEnvelope (lwEnvelope *env)
 
lwEnvelopelwGetEnvelope (idFile *fp, int cksize)
 
lwEnvelopelwFindEnvelope (lwEnvelope *list, int index)
 
float lwEvalEnvelope (lwEnvelope *env, float time)
 
void lwFreePlugin (lwPlugin *p)
 
void lwFreeTexture (lwTexture *t)
 
void lwFreeSurface (lwSurface *surf)
 
int lwGetTHeader (idFile *fp, int hsz, lwTexture *tex)
 
int lwGetTMap (idFile *fp, int tmapsz, lwTMap *tmap)
 
int lwGetImageMap (idFile *fp, int rsz, lwTexture *tex)
 
int lwGetProcedural (idFile *fp, int rsz, lwTexture *tex)
 
int lwGetGradient (idFile *fp, int rsz, lwTexture *tex)
 
lwTexturelwGetTexture (idFile *fp, int bloksz, unsigned int type)
 
lwPluginlwGetShader (idFile *fp, int bloksz)
 
lwSurfacelwGetSurface (idFile *fp, int cksize)
 
lwSurfacelwDefaultSurface (void)
 
lwSurfacelwGetSurface5 (idFile *fp, int cksize, lwObject *obj)
 
int lwGetPolygons5 (idFile *fp, int cksize, lwPolygonList *plist, int ptoffset)
 
lwObjectlwGetObject5 (const char *filename, unsigned int *failID, int *failpos)
 
void lwListFree (void *list, void(*freeNode)(void *))
 
void lwListAdd (void **list, void *node)
 
void lwListInsert (void **vlist, void *vitem, int(*compare)(void *, void *))
 
float dot (float a[], float b[])
 
void cross (float a[], float b[], float c[])
 
void normalize (float v[])
 
void set_flen (int i)
 
int get_flen (void)
 
voidgetbytes (idFile *fp, int size)
 
void skipbytes (idFile *fp, int n)
 
int getI1 (idFile *fp)
 
short getI2 (idFile *fp)
 
int getI4 (idFile *fp)
 
unsigned char getU1 (idFile *fp)
 
unsigned short getU2 (idFile *fp)
 
unsigned int getU4 (idFile *fp)
 
int getVX (idFile *fp)
 
float getF4 (idFile *fp)
 
char * getS0 (idFile *fp)
 
int sgetI1 (unsigned char **bp)
 
short sgetI2 (unsigned char **bp)
 
int sgetI4 (unsigned char **bp)
 
unsigned char sgetU1 (unsigned char **bp)
 
unsigned short sgetU2 (unsigned char **bp)
 
unsigned int sgetU4 (unsigned char **bp)
 
int sgetVX (unsigned char **bp)
 
float sgetF4 (unsigned char **bp)
 
char * sgetS0 (unsigned char **bp)
 

Macro Definition Documentation

#define BEH_CONSTANT   1

Definition at line 235 of file Model_lwo.h.

#define BEH_LINEAR   5

Definition at line 239 of file Model_lwo.h.

#define BEH_OFFSET   4

Definition at line 238 of file Model_lwo.h.

#define BEH_OSCILLATE   3

Definition at line 237 of file Model_lwo.h.

#define BEH_REPEAT   2

Definition at line 236 of file Model_lwo.h.

#define BEH_RESET   0

Definition at line 234 of file Model_lwo.h.

#define ID_AAST   LWID_('A','A','S','T')

Definition at line 163 of file Model_lwo.h.

#define ID_ADTR   LWID_('A','D','T','R')

Definition at line 126 of file Model_lwo.h.

#define ID_ALPH   LWID_('A','L','P','H')

Definition at line 130 of file Model_lwo.h.

#define ID_ANIM   LWID_('A','N','I','M')

Definition at line 93 of file Model_lwo.h.

#define ID_AVAL   LWID_('A','V','A','L')

Definition at line 131 of file Model_lwo.h.

#define ID_AXIS   LWID_('A','X','I','S')

Definition at line 148 of file Model_lwo.h.

#define ID_BBOX   LWID_('B','B','O','X')

Definition at line 54 of file Model_lwo.h.

#define ID_BEZ2   LWID_('B','E','Z','2')

Definition at line 86 of file Model_lwo.h.

#define ID_BEZI   LWID_('B','E','Z','I')

Definition at line 85 of file Model_lwo.h.

#define ID_BLOK   LWID_('B','L','O','K')

Definition at line 133 of file Model_lwo.h.

#define ID_BONE   LWID_('B','O','N','E')

Definition at line 71 of file Model_lwo.h.

#define ID_BRIT   LWID_('B','R','I','T')

Definition at line 98 of file Model_lwo.h.

#define ID_BUMP   LWID_('B','U','M','P')

Definition at line 121 of file Model_lwo.h.

#define ID_CHAN   LWID_('C','H','A','N')

Definition at line 137 of file Model_lwo.h.

#define ID_CLIP   LWID_('C','L','I','P')

Definition at line 60 of file Model_lwo.h.

#define ID_CLRF   LWID_('C','L','R','F')

Definition at line 125 of file Model_lwo.h.

#define ID_CLRH   LWID_('C','L','R','H')

Definition at line 124 of file Model_lwo.h.

#define ID_CNTR   LWID_('C','N','T','R')

Definition at line 149 of file Model_lwo.h.

#define ID_COLR   LWID_('C','O','L','R')

Definition at line 168 of file Model_lwo.h.

#define ID_COLR   LWID_('C','O','L','R')

Definition at line 168 of file Model_lwo.h.

#define ID_CONT   LWID_('C','O','N','T')

Definition at line 97 of file Model_lwo.h.

#define ID_CSYS   LWID_('C','S','Y','S')

Definition at line 154 of file Model_lwo.h.

#define ID_CURV   LWID_('C','U','R','V')

Definition at line 68 of file Model_lwo.h.

#define ID_DATA   LWID_('D','A','T','A')

Definition at line 187 of file Model_lwo.h.

#define ID_DESC   LWID_('D','E','S','C')

Definition at line 62 of file Model_lwo.h.

#define ID_DIFF   LWID_('D','I','F','F')

Definition at line 109 of file Model_lwo.h.

#define ID_ENAB   LWID_('E','N','A','B')

Definition at line 139 of file Model_lwo.h.

#define ID_ENVL   LWID_('E','N','V','L')

Definition at line 59 of file Model_lwo.h.

#define ID_ETPS   LWID_('E','T','P','S')

Definition at line 173 of file Model_lwo.h.

#define ID_FACE   LWID_('F','A','C','E')

Definition at line 67 of file Model_lwo.h.

#define ID_FALL   LWID_('F','A','L','L')

Definition at line 153 of file Model_lwo.h.

#define ID_FKEY   LWID_('F','K','E','Y')

Definition at line 182 of file Model_lwo.h.

#define ID_FLAG   LWID_('F','L','A','G')

Definition at line 141 of file Model_lwo.h.

#define ID_FORM   LWID_('F','O','R','M')

Definition at line 46 of file Model_lwo.h.

#define ID_FTPS   LWID_('F','T','P','S')

Definition at line 171 of file Model_lwo.h.

#define ID_FUNC   LWID_('F','U','N','C')

Definition at line 170 of file Model_lwo.h.

#define ID_GAMM   LWID_('G','A','M','M')

Definition at line 101 of file Model_lwo.h.

#define ID_GLOS   LWID_('G','L','O','S')

Definition at line 111 of file Model_lwo.h.

#define ID_GRAD   LWID_('G','R','A','D')

Definition at line 176 of file Model_lwo.h.

#define ID_GREN   LWID_('G','R','E','N')

Definition at line 178 of file Model_lwo.h.

#define ID_GRPT   LWID_('G','R','P','T')

Definition at line 181 of file Model_lwo.h.

#define ID_GRST   LWID_('G','R','S','T')

Definition at line 177 of file Model_lwo.h.

#define ID_GVAL   LWID_('G','V','A','L')

Definition at line 132 of file Model_lwo.h.

#define ID_HERM   LWID_('H','E','R','M')

Definition at line 84 of file Model_lwo.h.

#define ID_HUE   LWID_('H','U','E',' ')

Definition at line 100 of file Model_lwo.h.

#define ID_ICON   LWID_('I','C','O','N')

Definition at line 64 of file Model_lwo.h.

#define ID_IFLT   LWID_('I','F','L','T')

Definition at line 103 of file Model_lwo.h.

#define ID_IKEY   LWID_('I','K','E','Y')

Definition at line 183 of file Model_lwo.h.

#define ID_IMAG   LWID_('I','M','A','G')

Definition at line 158 of file Model_lwo.h.

#define ID_IMAP   LWID_('I','M','A','P')

Definition at line 157 of file Model_lwo.h.

#define ID_INAM   LWID_('I','N','A','M')

Definition at line 180 of file Model_lwo.h.

#define ID_ISEQ   LWID_('I','S','E','Q')

Definition at line 92 of file Model_lwo.h.

#define ID_ITPS   LWID_('I','T','P','S')

Definition at line 172 of file Model_lwo.h.

#define ID_KEY   LWID_('K','E','Y',' ')

Definition at line 81 of file Model_lwo.h.

#define ID_LAYR   LWID_('L','A','Y','R')

Definition at line 51 of file Model_lwo.h.

#define ID_LINE   LWID_('L','I','N','E')

Definition at line 128 of file Model_lwo.h.

#define ID_LINE   LWID_('L','I','N','E')

Definition at line 128 of file Model_lwo.h.

#define ID_LSIZ   LWID_('L','S','I','Z')

Definition at line 129 of file Model_lwo.h.

#define ID_LUMI   LWID_('L','U','M','I')

Definition at line 108 of file Model_lwo.h.

#define ID_LWO2   LWID_('L','W','O','2')

Definition at line 47 of file Model_lwo.h.

#define ID_LWOB   LWID_('L','W','O','B')

Definition at line 48 of file Model_lwo.h.

#define ID_MBAL   LWID_('M','B','A','L')

Definition at line 70 of file Model_lwo.h.

#define ID_NAME   LWID_('N','A','M','E')

Definition at line 138 of file Model_lwo.h.

#define ID_NEGA   LWID_('N','E','G','A')

Definition at line 102 of file Model_lwo.h.

#define ID_OPAC   LWID_('O','P','A','C')

Definition at line 140 of file Model_lwo.h.

#define ID_OREF   LWID_('O','R','E','F')

Definition at line 152 of file Model_lwo.h.

#define ID_PART   LWID_('P','A','R','T')

Definition at line 75 of file Model_lwo.h.

#define ID_PFLT   LWID_('P','F','L','T')

Definition at line 104 of file Model_lwo.h.

#define ID_PIXB   LWID_('P','I','X','B')

Definition at line 164 of file Model_lwo.h.

#define ID_PNAM   LWID_('P','N','A','M')

Definition at line 179 of file Model_lwo.h.

#define ID_PNTS   LWID_('P','N','T','S')

Definition at line 53 of file Model_lwo.h.

#define ID_POLS   LWID_('P','O','L','S')

Definition at line 57 of file Model_lwo.h.

#define ID_POST   LWID_('P','O','S','T')

Definition at line 80 of file Model_lwo.h.

#define ID_PRE   LWID_('P','R','E',' ')

Definition at line 79 of file Model_lwo.h.

#define ID_PROC   LWID_('P','R','O','C')

Definition at line 167 of file Model_lwo.h.

#define ID_PROJ   LWID_('P','R','O','J')

Definition at line 142 of file Model_lwo.h.

#define ID_PTAG   LWID_('P','T','A','G')

Definition at line 58 of file Model_lwo.h.

#define ID_PTCH   LWID_('P','T','C','H')

Definition at line 69 of file Model_lwo.h.

#define ID_REFL   LWID_('R','E','F','L')

Definition at line 112 of file Model_lwo.h.

#define ID_RFOP   LWID_('R','F','O','P')

Definition at line 113 of file Model_lwo.h.

#define ID_RIMG   LWID_('R','I','M','G')

Definition at line 114 of file Model_lwo.h.

#define ID_RIND   LWID_('R','I','N','D')

Definition at line 119 of file Model_lwo.h.

#define ID_ROTA   LWID_('R','O','T','A')

Definition at line 151 of file Model_lwo.h.

#define ID_RSAN   LWID_('R','S','A','N')

Definition at line 115 of file Model_lwo.h.

#define ID_SATR   LWID_('S','A','T','R')

Definition at line 99 of file Model_lwo.h.

#define ID_SHDR   LWID_('S','H','D','R')

Definition at line 186 of file Model_lwo.h.

#define ID_SHRP   LWID_('S','H','R','P')

Definition at line 127 of file Model_lwo.h.

#define ID_SIDE   LWID_('S','I','D','E')

Definition at line 123 of file Model_lwo.h.

#define ID_SIZE   LWID_('S','I','Z','E')

Definition at line 150 of file Model_lwo.h.

#define ID_SMAN   LWID_('S','M','A','N')

Definition at line 122 of file Model_lwo.h.

#define ID_SMGP   LWID_('S','M','G','P')

Definition at line 76 of file Model_lwo.h.

#define ID_SPAN   LWID_('S','P','A','N')

Definition at line 82 of file Model_lwo.h.

#define ID_SPEC   LWID_('S','P','E','C')

Definition at line 110 of file Model_lwo.h.

#define ID_STCC   LWID_('S','T','C','C')

Definition at line 95 of file Model_lwo.h.

#define ID_STCK   LWID_('S','T','C','K')

Definition at line 143 of file Model_lwo.h.

#define ID_STEP   LWID_('S','T','E','P')

Definition at line 88 of file Model_lwo.h.

#define ID_STIL   LWID_('S','T','I','L')

Definition at line 91 of file Model_lwo.h.

#define ID_SURF   LWID_('S','U','R','F')

Definition at line 74 of file Model_lwo.h.

#define ID_SURF   LWID_('S','U','R','F')

Definition at line 74 of file Model_lwo.h.

#define ID_TAGS   LWID_('T','A','G','S')

Definition at line 52 of file Model_lwo.h.

#define ID_TAMP   LWID_('T','A','M','P')

Definition at line 144 of file Model_lwo.h.

#define ID_TCB   LWID_('T','C','B',' ')

Definition at line 83 of file Model_lwo.h.

#define ID_TEXT   LWID_('T','E','X','T')

Definition at line 63 of file Model_lwo.h.

#define ID_TIME   LWID_('T','I','M','E')

Definition at line 96 of file Model_lwo.h.

#define ID_TIMG   LWID_('T','I','M','G')

Definition at line 118 of file Model_lwo.h.

#define ID_TMAP   LWID_('T','M','A','P')

Definition at line 147 of file Model_lwo.h.

#define ID_TRAN   LWID_('T','R','A','N')

Definition at line 116 of file Model_lwo.h.

#define ID_TRNL   LWID_('T','R','N','L')

Definition at line 120 of file Model_lwo.h.

#define ID_TROP   LWID_('T','R','O','P')

Definition at line 117 of file Model_lwo.h.

#define ID_TYPE   LWID_('T','Y','P','E')

Definition at line 136 of file Model_lwo.h.

#define ID_VALU   LWID_('V','A','L','U')

Definition at line 169 of file Model_lwo.h.

#define ID_VMAD   LWID_('V','M','A','D')

Definition at line 56 of file Model_lwo.h.

#define ID_VMAP   LWID_('V','M','A','P')

Definition at line 162 of file Model_lwo.h.

#define ID_VMAP   LWID_('V','M','A','P')

Definition at line 162 of file Model_lwo.h.

#define ID_WRAP   LWID_('W','R','A','P')

Definition at line 159 of file Model_lwo.h.

#define ID_WRPH   LWID_('W','R','P','H')

Definition at line 161 of file Model_lwo.h.

#define ID_WRPW   LWID_('W','R','P','W')

Definition at line 160 of file Model_lwo.h.

#define ID_XREF   LWID_('X','R','E','F')

Definition at line 94 of file Model_lwo.h.

#define LWID_ (   a,
  b,
  c,
 
)    (((a)<<24)|((b)<<16)|((c)<<8)|(d))

Definition at line 44 of file Model_lwo.h.

#define PROJ_CUBIC   3

Definition at line 347 of file Model_lwo.h.

#define PROJ_CYLINDRICAL   1

Definition at line 345 of file Model_lwo.h.

#define PROJ_FRONT   4

Definition at line 348 of file Model_lwo.h.

#define PROJ_PLANAR   0

Definition at line 344 of file Model_lwo.h.

#define PROJ_SPHERICAL   2

Definition at line 346 of file Model_lwo.h.

#define vecangle (   a,
  b 
)    ( float ) idMath::ACos( dot( a, b ) )

Definition at line 649 of file Model_lwo.h.

#define WRAP_EDGE   1

Definition at line 351 of file Model_lwo.h.

#define WRAP_MIRROR   3

Definition at line 353 of file Model_lwo.h.

#define WRAP_NONE   0

Definition at line 350 of file Model_lwo.h.

#define WRAP_REPEAT   2

Definition at line 352 of file Model_lwo.h.

Typedef Documentation

typedef struct st_lwGlow Glow
typedef struct st_lwClip lwClip
typedef struct st_lwClipAnim lwClipAnim
typedef struct st_lwClipCycle lwClipCycle
typedef struct st_lwClipSeq lwClipSeq
typedef struct st_lwClipStill lwClipStill
typedef struct st_lwClipXRef lwClipXRef
typedef struct st_lwCParam lwCParam
typedef struct st_lwEnvelope lwEnvelope
typedef struct st_lwEParam lwEParam
typedef struct st_lwGradient lwGradient
typedef struct st_lwGradKey lwGradKey
typedef struct st_lwImageMap lwImageMap
typedef struct st_lwKey lwKey
typedef struct st_lwLayer lwLayer
typedef struct st_lwLine lwLine
typedef struct st_lwNode lwNode
typedef struct st_lwObject lwObject
typedef struct st_lwPlugin lwPlugin
typedef struct st_lwPoint lwPoint
typedef struct st_lwPointList lwPointList
typedef struct st_lwPolVert lwPolVert
typedef struct st_lwPolygon lwPolygon
typedef struct st_lwProcedural lwProcedural
typedef struct st_lwRMap lwRMap
typedef struct st_lwSurface lwSurface
typedef struct st_lwTagList lwTagList
typedef struct st_lwTexture lwTexture
typedef struct st_lwTMap lwTMap
typedef struct st_lwTParam lwTParam
typedef struct st_lwVMap lwVMap
typedef struct st_lwVMapPt lwVMapPt
typedef struct st_lwVParam lwVParam

Function Documentation

void cross ( float  a[],
float  b[],
float  c[] 
)

Definition at line 3889 of file Model_lwo.cpp.

float dot ( float  a[],
float  b[] 
)

Definition at line 3883 of file Model_lwo.cpp.

int get_flen ( void  )

Definition at line 1004 of file Model_lwo.cpp.

void* getbytes ( idFile fp,
int  size 
)

Definition at line 1006 of file Model_lwo.cpp.

float getF4 ( idFile fp)

Definition at line 1178 of file Model_lwo.cpp.

int getI1 ( idFile fp)

Definition at line 1041 of file Model_lwo.cpp.

short getI2 ( idFile fp)

Definition at line 1058 of file Model_lwo.cpp.

int getI4 ( idFile fp)

Definition at line 1073 of file Model_lwo.cpp.

char* getS0 ( idFile fp)

Definition at line 1197 of file Model_lwo.cpp.

unsigned char getU1 ( idFile fp)

Definition at line 1088 of file Model_lwo.cpp.

unsigned short getU2 ( idFile fp)

Definition at line 1104 of file Model_lwo.cpp.

unsigned int getU4 ( idFile fp)

Definition at line 1119 of file Model_lwo.cpp.

int getVX ( idFile fp)

Definition at line 1134 of file Model_lwo.cpp.

int lwAllocPolygons ( lwPolygonList plist,
int  npols,
int  nverts 
)

Definition at line 2479 of file Model_lwo.cpp.

lwSurface* lwDefaultSurface ( void  )

Definition at line 3628 of file Model_lwo.cpp.

float lwEvalEnvelope ( lwEnvelope env,
float  time 
)
lwClip* lwFindClip ( lwClip list,
int  index 
)

Definition at line 290 of file Model_lwo.cpp.

lwEnvelope* lwFindEnvelope ( lwEnvelope list,
int  index 
)

Definition at line 481 of file Model_lwo.cpp.

void lwFreeClip ( lwClip clip)

Definition at line 49 of file Model_lwo.cpp.

void lwFreeEnvelope ( lwEnvelope env)

Definition at line 314 of file Model_lwo.cpp.

void lwFreeLayer ( lwLayer layer)

Definition at line 1392 of file Model_lwo.cpp.

void lwFreeObject ( lwObject object)

Definition at line 1411 of file Model_lwo.cpp.

void lwFreePlugin ( lwPlugin p)

Definition at line 2896 of file Model_lwo.cpp.

void lwFreePoints ( lwPointList point)

Definition at line 2348 of file Model_lwo.cpp.

void lwFreePolygons ( lwPolygonList plist)

Definition at line 2372 of file Model_lwo.cpp.

void lwFreeSurface ( lwSurface surf)

Definition at line 2944 of file Model_lwo.cpp.

void lwFreeTags ( lwTagList tlist)

Definition at line 2773 of file Model_lwo.cpp.

void lwFreeTexture ( lwTexture t)

Definition at line 2914 of file Model_lwo.cpp.

void lwFreeVMap ( lwVMap vmap)

Definition at line 3916 of file Model_lwo.cpp.

void lwGetBoundingBox ( lwPointList point,
float  bbox[] 
)

Definition at line 2450 of file Model_lwo.cpp.

lwClip* lwGetClip ( idFile fp,
int  cksize 
)

Definition at line 90 of file Model_lwo.cpp.

lwEnvelope* lwGetEnvelope ( idFile fp,
int  cksize 
)

Definition at line 338 of file Model_lwo.cpp.

int lwGetGradient ( idFile fp,
int  rsz,
lwTexture tex 
)

Definition at line 3340 of file Model_lwo.cpp.

int lwGetImageMap ( idFile fp,
int  rsz,
lwTexture tex 
)

Definition at line 3156 of file Model_lwo.cpp.

lwObject* lwGetObject ( const char *  filename,
unsigned int failID,
int failpos 
)

Definition at line 1445 of file Model_lwo.cpp.

lwObject* lwGetObject5 ( const char *  filename,
unsigned int failID,
int failpos 
)

Definition at line 2219 of file Model_lwo.cpp.

int lwGetPointPolygons ( lwPointList point,
lwPolygonList polygon 
)

Definition at line 2634 of file Model_lwo.cpp.

int lwGetPoints ( idFile fp,
int  cksize,
lwPointList point 
)

Definition at line 2402 of file Model_lwo.cpp.

int lwGetPointVMaps ( lwPointList point,
lwVMap vmap 
)

Definition at line 4028 of file Model_lwo.cpp.

int lwGetPolygons ( idFile fp,
int  cksize,
lwPolygonList plist,
int  ptoffset 
)

Definition at line 2522 of file Model_lwo.cpp.

int lwGetPolygons5 ( idFile fp,
int  cksize,
lwPolygonList plist,
int  ptoffset 
)

Definition at line 2128 of file Model_lwo.cpp.

int lwGetPolygonTags ( idFile fp,
int  cksize,
lwTagList tlist,
lwPolygonList plist 
)

Definition at line 2857 of file Model_lwo.cpp.

void lwGetPolyNormals ( lwPointList point,
lwPolygonList polygon 
)

Definition at line 2599 of file Model_lwo.cpp.

int lwGetPolyVMaps ( lwPolygonList polygon,
lwVMap vmap 
)

Definition at line 4080 of file Model_lwo.cpp.

int lwGetProcedural ( idFile fp,
int  rsz,
lwTexture tex 
)

Definition at line 3265 of file Model_lwo.cpp.

lwPlugin* lwGetShader ( idFile fp,
int  bloksz 
)

Definition at line 3486 of file Model_lwo.cpp.

lwSurface* lwGetSurface ( idFile fp,
int  cksize 
)

Definition at line 3655 of file Model_lwo.cpp.

lwSurface* lwGetSurface5 ( idFile fp,
int  cksize,
lwObject obj 
)

Definition at line 1821 of file Model_lwo.cpp.

int lwGetTags ( idFile fp,
int  cksize,
lwTagList tlist 
)

Definition at line 2798 of file Model_lwo.cpp.

lwTexture* lwGetTexture ( idFile fp,
int  bloksz,
unsigned int  type 
)

Definition at line 3438 of file Model_lwo.cpp.

int lwGetTHeader ( idFile fp,
int  hsz,
lwTexture tex 
)

Definition at line 2977 of file Model_lwo.cpp.

int lwGetTMap ( idFile fp,
int  tmapsz,
lwTMap tmap 
)

Definition at line 3068 of file Model_lwo.cpp.

void lwGetVertNormals ( lwPointList point,
lwPolygonList polygon 
)

Definition at line 2733 of file Model_lwo.cpp.

lwVMap* lwGetVMap ( idFile fp,
int  cksize,
int  ptoffset,
int  poloffset,
int  perpoly 
)

Definition at line 3938 of file Model_lwo.cpp.

void lwListAdd ( void **  list,
void node 
)

Definition at line 925 of file Model_lwo.cpp.

void lwListFree ( void list,
void(*)(void *)  freeNode 
)

Definition at line 905 of file Model_lwo.cpp.

void lwListInsert ( void **  vlist,
void vitem,
int(*)(void *, void *)  compare 
)

Definition at line 950 of file Model_lwo.cpp.

int lwResolvePolySurfaces ( lwPolygonList polygon,
lwTagList tlist,
lwSurface **  surf,
int nsurfs 
)

Definition at line 2676 of file Model_lwo.cpp.

void normalize ( float  v[])

Definition at line 3897 of file Model_lwo.cpp.

void set_flen ( int  i)

Definition at line 1002 of file Model_lwo.cpp.

float sgetF4 ( unsigned char **  bp)

Definition at line 1341 of file Model_lwo.cpp.

int sgetI1 ( unsigned char **  bp)

Definition at line 1243 of file Model_lwo.cpp.

short sgetI2 ( unsigned char **  bp)

Definition at line 1256 of file Model_lwo.cpp.

int sgetI4 ( unsigned char **  bp)

Definition at line 1269 of file Model_lwo.cpp.

char* sgetS0 ( unsigned char **  bp)

Definition at line 1358 of file Model_lwo.cpp.

unsigned char sgetU1 ( unsigned char **  bp)

Definition at line 1282 of file Model_lwo.cpp.

unsigned short sgetU2 ( unsigned char **  bp)

Definition at line 1294 of file Model_lwo.cpp.

unsigned int sgetU4 ( unsigned char **  bp)

Definition at line 1307 of file Model_lwo.cpp.

int sgetVX ( unsigned char **  bp)

Definition at line 1320 of file Model_lwo.cpp.

void skipbytes ( idFile fp,
int  n 
)

Definition at line 1031 of file Model_lwo.cpp.