Bppflag.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. namespace OpenVIII
  3. {
  4. /// <summary>
  5. /// BPP indicator
  6. /// <para>4 BPP is default</para>
  7. /// <para>If 8 and 16 are set then it's 24/except in fields</para>
  8. /// <para>CLP should always be set for 4 and 8/except in fields, fields always have a clut even if not used.</para>
  9. /// </summary>
  10. [Flags]
  11. public enum Bppflag : byte
  12. {
  13. /// <summary>
  14. /// <para>4 BPP</para>
  15. /// <para>This is 0 so it will show as unset.</para>
  16. /// </summary>
  17. _4bpp = 0b0,
  18. /// <summary>
  19. /// <para>8 BPP</para>
  20. /// <para>if _8bpp and _16bpp are set then it's 24 bit</para>
  21. /// </summary>
  22. _8bpp = 0b1,
  23. /// <summary>
  24. /// <para>16 BPP</para>
  25. /// <para>if _8bpp and _16bpp are set then it's 24 bit</para>
  26. /// </summary>
  27. _16bpp = 0b10,
  28. /// <summary>
  29. /// <para>24 BPP / not used in fields</para>
  30. /// <para>Both flags must be set for this to be right</para>
  31. /// </summary>
  32. _24bpp = _8bpp | _16bpp,
  33. /// <summary>
  34. /// Color Lookup table Present / not used in fields. Fields have clut even if they aren't used.
  35. /// </summary>
  36. CLP = 0b1000,
  37. }
  38. }