CullFace.js 809 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*global define*/
  2. define([
  3. '../Core/freezeObject'
  4. ], function(
  5. freezeObject) {
  6. "use strict";
  7. /**
  8. * Determines which triangles, if any, are culled.
  9. *
  10. * @namespace
  11. * @alias CullFace
  12. */
  13. var CullFace = {
  14. /**
  15. * 0x0404. Front-facing triangles are culled.
  16. *
  17. * @type {Number}
  18. * @constant
  19. */
  20. FRONT : 0x0404,
  21. /**
  22. * 0x405. Back-facing triangles are culled.
  23. *
  24. * @type {Number}
  25. * @constant
  26. */
  27. BACK : 0x0405,
  28. /**
  29. * 0x0408. Both face- and back-facing triangles are culled.
  30. *
  31. * @type {Number}
  32. * @constant
  33. */
  34. FRONT_AND_BACK : 0x0408
  35. };
  36. return freezeObject(CullFace);
  37. });