ExtensionDrawBuffers.hx 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright (C)2005-2017 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated from mozilla\WebGLRenderingContext.webidl. Do not edit!
  23. package js.html.webgl;
  24. /**
  25. The `WEBGL_draw_buffers` extension is part of the WebGL API and enables a fragment shader to write to several textures, which is useful for deferred shading, for example.
  26. Documentation [WEBGL_draw_buffers](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
  27. @see <https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers>
  28. **/
  29. @:native("WEBGL_draw_buffers")
  30. extern class ExtensionDrawBuffers
  31. {
  32. static inline var COLOR_ATTACHMENT0_WEBGL : Int = 36064;
  33. static inline var COLOR_ATTACHMENT1_WEBGL : Int = 36065;
  34. static inline var COLOR_ATTACHMENT2_WEBGL : Int = 36066;
  35. static inline var COLOR_ATTACHMENT3_WEBGL : Int = 36067;
  36. static inline var COLOR_ATTACHMENT4_WEBGL : Int = 36068;
  37. static inline var COLOR_ATTACHMENT5_WEBGL : Int = 36069;
  38. static inline var COLOR_ATTACHMENT6_WEBGL : Int = 36070;
  39. static inline var COLOR_ATTACHMENT7_WEBGL : Int = 36071;
  40. static inline var COLOR_ATTACHMENT8_WEBGL : Int = 36072;
  41. static inline var COLOR_ATTACHMENT9_WEBGL : Int = 36073;
  42. static inline var COLOR_ATTACHMENT10_WEBGL : Int = 36074;
  43. static inline var COLOR_ATTACHMENT11_WEBGL : Int = 36075;
  44. static inline var COLOR_ATTACHMENT12_WEBGL : Int = 36076;
  45. static inline var COLOR_ATTACHMENT13_WEBGL : Int = 36077;
  46. static inline var COLOR_ATTACHMENT14_WEBGL : Int = 36078;
  47. static inline var COLOR_ATTACHMENT15_WEBGL : Int = 36079;
  48. static inline var DRAW_BUFFER0_WEBGL : Int = 34853;
  49. static inline var DRAW_BUFFER1_WEBGL : Int = 34854;
  50. static inline var DRAW_BUFFER2_WEBGL : Int = 34855;
  51. static inline var DRAW_BUFFER3_WEBGL : Int = 34856;
  52. static inline var DRAW_BUFFER4_WEBGL : Int = 34857;
  53. static inline var DRAW_BUFFER5_WEBGL : Int = 34858;
  54. static inline var DRAW_BUFFER6_WEBGL : Int = 34859;
  55. static inline var DRAW_BUFFER7_WEBGL : Int = 34860;
  56. static inline var DRAW_BUFFER8_WEBGL : Int = 34861;
  57. static inline var DRAW_BUFFER9_WEBGL : Int = 34862;
  58. static inline var DRAW_BUFFER10_WEBGL : Int = 34863;
  59. static inline var DRAW_BUFFER11_WEBGL : Int = 34864;
  60. static inline var DRAW_BUFFER12_WEBGL : Int = 34865;
  61. static inline var DRAW_BUFFER13_WEBGL : Int = 34866;
  62. static inline var DRAW_BUFFER14_WEBGL : Int = 34867;
  63. static inline var DRAW_BUFFER15_WEBGL : Int = 34868;
  64. static inline var MAX_COLOR_ATTACHMENTS_WEBGL : Int = 36063;
  65. static inline var MAX_DRAW_BUFFERS_WEBGL : Int = 34852;
  66. /**
  67. Defines the draw buffers to which all fragment colors are written. (When using `WebGL2RenderingContext`, this method is available as `WebGL2RenderingContext.drawBuffers()` by default).
  68. **/
  69. function drawBuffersWEBGL( buffers : Array<Int> ) : Void;
  70. }