Loading

Paste #pljamjupf

  1. //! Bitflags for drawing operations
  2. enum THDrawFlags
  3. {
  4.     /** Sprite drawing flags **/
  5.     /* Where possible, designed to be the same values used by TH data files */
  6.  
  7.     //! Draw with the left becoming the right and vice versa
  8.     THDF_FlipHorizontal = 1 <<  0,
  9.     //! Draw with the top becoming the bottom and vice versa
  10.     THDF_FlipVertical   = 1 <<  1,
  11.     //! Draw with 50% transparency
  12.     THDF_Alpha50        = 1 <<  2,
  13.     //! Draw with 75% transparency
  14.     THDF_Alpha75        = 1 <<  3,
  15.     //! Draw using a remapped palette
  16.     THDF_AltPalette     = 1 <<  4,
  17.  
  18.     /** Object attached to tile flags **/
  19.     /* (should be set prior to attaching to a tile) */
  20.  
  21.     //! Attach to the early sprite list (right-to-left pass)
  22.     THDF_EarlyList      = 1 << 10,
  23.     //! Keep this sprite at the bottom of the attached list
  24.     THDF_ListBottom     = 1 << 11,
  25.     //! Hit-test using bounding-box precision rather than pixel-perfect
  26.     THDF_BoundBoxHitTest= 1 << 12,
  27.     //! Apply a cropping operation prior to drawing
  28.     THDF_Crop           = 1 << 13,
  29. };

Comments