Defines

MeshFaceFlagConstants.h File Reference

Go to the source code of this file.

Defines

#define  EDGE_VIS   1
  Edge is visible.
#define  EDGE_INVIS   0
  Edge is invisible.
#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.
#define  HAS_TVERTS   (1<<4)
#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.
#define  FACE_BACKFACING   (1<<12)
  Used to track which faces are back facing.
#define  FACE_MATID_SHIFT   16
  The number of bits to shift the flags to access the material.
#define  FACE_MATID_MASK   0xFFFF
  A mask used to access the material ID.
#define  COMP_TRANSFORM   0x0001
  If set, it forces recalculate of model->screen transform.
#define  COMP_IGN_RECT   0x0002
  If set, it forces all polys to be rendered.
#define  COMP_LIGHTING   0x0004
  If set, it forces re-lighting of all verts (as when a light moves).
#define  COMP_ALL   0x00ff
  Combination of COMP_TRANSFORM, COMP_IGN_RECT and COMP_LIGHTING.
#define  COMP_OBJSELECTED   (1<<8)
  If set, the node being displayed by this mesh is selected.
#define  COMP_OBJFROZEN   (1<<9)
  If set, the node being displayed by this mesh is frozen.
#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))

Define Documentation

#define FACE_HIDDEN   (1<<3)

Face visibility bit.

If the bit is 1, the face is hidden.

Definition at line 33 of file MeshFaceFlagConstants.h.

#define HAS_TVERTS   (1<<4)
Deprecated:
Replaced by mapSupport().

Texture vertices bit: If the bit is 1, texture vertices are present.

Definition at line 34 of file MeshFaceFlagConstants.h.

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

Used to track faces that are in the foreground.

Definition at line 47 of file MeshFaceFlagConstants.h.

#define FACE_BACKFACING   (1<<12)

Used to track which faces are back facing.

A temporary flag.

Definition at line 48 of file MeshFaceFlagConstants.h.