MeshFaceFlagConstants.h File Reference

MeshFaceFlagConstants.h File Reference

Macros

#define EDGE_VIS   1
 Edge is visible. More...
 
#define EDGE_INVIS   0
 Edge is invisible. More...
 
#define VIS_BIT   0x0001
 
#define VIS_MASK   0x0007
 
#define EDGE_A   (1<<0)
 
#define EDGE_B   (1<<1)
 
#define EDGE_C   (1<<2)
 
#define EDGE_ALL   (EDGE_A|EDGE_B|EDGE_C)
 
#define FACE_HIDDEN   (1<<3)
 Face visibility bit. More...
 
#define HAS_TVERTS   (1<<4)
 Do not use. More...
 
#define FACE_WORK   (1<<5)
 
#define FACE_STRIP   (1<<6)
 
#define FACE_NORM_A   (1<<8)
 
#define FACE_NORM_B   (1<<9)
 
#define FACE_NORM_C   (1<<10)
 
#define FACE_NORM_MASK   0x0700
 
#define FACE_INFOREGROUND   (1<<11)
 Used to track faces that are in the foreground. More...
 
#define FACE_BACKFACING   (1<<12)
 Used to track which faces are back facing. More...
 
#define FACE_MATID_SHIFT   16
 The number of bits to shift the flags to access the material. More...
 
#define FACE_MATID_MASK   0xFFFF
 A mask used to access the material ID. More...
 
#define COMP_TRANSFORM   0x0001
 If set, it forces recalculate of model->screen transform. More...
 
#define COMP_IGN_RECT   0x0002
 If set, it forces all polys to be rendered. More...
 
#define COMP_LIGHTING   0x0004
 If set, it forces re-lighting of all verts (as when a light moves). More...
 
#define COMP_ALL   0x00ff
 Combination of COMP_TRANSFORM, COMP_IGN_RECT and COMP_LIGHTING. More...
 
#define COMP_OBJSELECTED   (1<<8)
 If set, the node being displayed by this mesh is selected. More...
 
#define COMP_OBJFROZEN   (1<<9)
 If set, the node being displayed by this mesh is frozen. More...
 
#define NORCT_MASK   0x000000ffUL
 
#define SPECIFIED_NORMAL   0x00004000UL
 
#define OUT_LEFT   0x00010000UL
 
#define OUT_RIGHT   0x00020000UL
 
#define OUT_TOP   0x00040000UL
 
#define OUT_BOTTOM   0x00080000UL
 
#define RECT_MASK   0x000f0000UL
 
#define RND_MASK   0xfff00000UL
 
#define RND_NOR0   0x00100000UL
 
#define RND_NOR(n)    (RND_NOR0 << (n))
 

Macro Definition Documentation

#define FACE_HIDDEN   (1<<3)

Face visibility bit.

If the bit is 1, the face is hidden.

#define HAS_TVERTS   (1<<4)

Do not use.

Replaced by mapSupport(). Texture vertices bit: If the bit is 1, texture vertices are present.

#define FACE_WORK   (1<<5)
#define FACE_STRIP   (1<<6)
#define FACE_INFOREGROUND   (1<<11)

Used to track faces that are in the foreground.

#define FACE_BACKFACING   (1<<12)

Used to track which faces are back facing.

A temporary flag.