MeshFaceFlagConstants.h

Go to the documentation of this file.
00001 //
00002 // Copyright 2010 Autodesk, Inc.  All rights reserved.
00003 //
00004 // Use of this software is subject to the terms of the Autodesk license
00005 // agreement provided at the time of installation or download, or which
00006 // otherwise accompanies this software in either electronic or hard copy form.  
00007 //
00008 
00009 #pragma once
00010 
00014 #define EDGE_VIS            1   //!< Edge is visible
00015 #define EDGE_INVIS          0   //!< Edge is invisible
00016 
00017 
00019 
00020 #define VIS_BIT         0x0001
00021 #define VIS_MASK            0x0007
00022 
00023 
00027 #define EDGE_A      (1<<0)
00028 #define EDGE_B      (1<<1)
00029 #define EDGE_C      (1<<2)
00030 #define EDGE_ALL    (EDGE_A|EDGE_B|EDGE_C)
00031 
00032 
00033 #define FACE_HIDDEN (1<<3)  //!< Face visibility bit. If the bit is 1, the face is hidden.
00034 #define HAS_TVERTS  (1<<4)  //!< \deprecated Replaced by mapSupport(). Texture vertices bit: If the bit is 1, texture vertices are present. 
00035 #define FACE_WORK   (1<<5)  
00036 #define FACE_STRIP  (1<<6)
00037 
00041 #define FACE_NORM_A (1<<8)
00042 #define FACE_NORM_B (1<<9)
00043 #define FACE_NORM_C (1<<10)
00044 #define FACE_NORM_MASK  0x0700
00045 
00046 
00047 #define FACE_INFOREGROUND   (1<<11)  //!< Used to track faces that are in the foreground.
00048 #define FACE_BACKFACING     (1<<12)  //!<Used to track which faces are back facing. A temporary flag.
00049 
00050 
00054 #define FACE_MATID_SHIFT    16      //!< The number of bits to shift the flags to access the material.
00055 #define FACE_MATID_MASK     0xFFFF  //!< A mask used to access the material ID.
00056 
00057 
00058 
00062 #define COMP_TRANSFORM  0x0001  //!< If set, it forces recalculate of model->screen transform. If reset, will attempt to use cache
00063 #define COMP_IGN_RECT   0x0002  //!< If set, it forces all polys to be rendered. If reset, only those intersecting the box will be rendered.
00064 #define COMP_LIGHTING   0x0004  //!< If set, it forces re-lighting of all verts (as when a light moves). If reset, only the moved verts will be re-lighted.
00065 #define COMP_ALL        0x00ff  //!< Combination of COMP_TRANSFORM, COMP_IGN_RECT and COMP_LIGHTING
00066 
00068 #define COMP_OBJSELECTED    (1<<8)
00069 
00070 #define COMP_OBJFROZEN      (1<<9)
00071 
00072 
00077 #define NORCT_MASK          0x000000ffUL
00078 #define SPECIFIED_NORMAL    0x00004000UL
00079 #define OUT_LEFT            0x00010000UL
00080 #define OUT_RIGHT           0x00020000UL
00081 #define OUT_TOP             0x00040000UL
00082 #define OUT_BOTTOM          0x00080000UL
00083 #define RECT_MASK           0x000f0000UL
00084 #define RND_MASK            0xfff00000UL
00085 #define RND_NOR0            0x00100000UL
00086 #define RND_NOR(n)          (RND_NOR0 << (n))
00087