Material.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*
  2. Copyright (c) 2013 Daniele Bartolini, Michele Rossi
  3. Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto
  4. Permission is hereby granted, free of charge, to any person
  5. obtaining a copy of this software and associated documentation
  6. files (the "Software"), to deal in the Software without
  7. restriction, including without limitation the rights to use,
  8. copy, modify, merge, publish, distribute, sublicense, and/or sell
  9. copies of the Software, and to permit persons to whom the
  10. Software is furnished to do so, subject to the following
  11. conditions:
  12. The above copyright notice and this permission notice shall be
  13. included in all copies or substantial portions of the Software.
  14. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  15. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  16. OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  17. NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  18. HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  19. WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  20. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  21. OTHER DEALINGS IN THE SOFTWARE.
  22. */
  23. #pragma once
  24. namespace crown
  25. {
  26. enum FogMode
  27. {
  28. FM_LINEAR = 0,
  29. FM_EXP = 1,
  30. FM_EXP2 = 2,
  31. FM_COUNT
  32. };
  33. enum CompareFunction
  34. {
  35. CF_NEVER = 0,
  36. CF_LESS = 1,
  37. CF_EQUAL = 2,
  38. CF_LEQUAL = 3,
  39. CF_GREATER = 4,
  40. CF_NOTEQUAL = 5,
  41. CF_GEQUAL = 6,
  42. CF_ALWAYS = 7,
  43. CF_COUNT
  44. };
  45. enum ShadingType
  46. {
  47. ST_FLAT = 0,
  48. ST_SMOOTH = 1,
  49. ST_COUNT
  50. };
  51. enum PolygonMode
  52. {
  53. PM_POINT = 0,
  54. PM_LINE = 1,
  55. PM_FILL = 2,
  56. PM_COUNT
  57. };
  58. enum FrontFace
  59. {
  60. FF_CW = 0,
  61. FF_CCW = 1,
  62. FF_COUNT
  63. };
  64. enum BlendEquation
  65. {
  66. BE_FUNC_ADD = 0,
  67. BE_FUNC_SUBTRACT = 1,
  68. BE_FUNC_REVERSE_SUBTRACT = 2,
  69. BE_MIN = 3,
  70. BE_MAX = 4,
  71. BE_COUNT
  72. };
  73. enum BlendFunction
  74. {
  75. BF_ZERO = 0,
  76. BF_ONE = 1,
  77. BF_SRC_COLOR = 2,
  78. BF_ONE_MINUS_SRC_COLOR = 3,
  79. BF_DST_COLOR = 4,
  80. BF_ONE_MINUS_DST_COLOR = 5,
  81. BF_SRC_ALPHA = 6,
  82. BF_ONE_MINUS_SRC_ALPHA = 7,
  83. BF_DST_ALPHA = 8,
  84. BF_ONE_MINUS_DST_ALPHA = 9,
  85. BF_CONSTANT_COLOR = 10,
  86. BF_ONE_MINUS_CONSTANT_COLOR = 11,
  87. BF_CONSTANT_ALPHA = 12,
  88. BF_ONE_MINUS_CONSTANT_ALPHA = 13,
  89. BF_SRC_ALPHA_SATURATE = 14,
  90. BF_COUNT
  91. };
  92. } // namespace crown