WEBGLDrawBuffers.hx 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * Copyright (C)2005-2019 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.extension;
  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 WEBGLDrawBuffers {
  31. /**
  32. A `GLenum` specifying a color buffer.
  33. **/
  34. static inline var COLOR_ATTACHMENT0_WEBGL : Int = 36064;
  35. static inline var COLOR_ATTACHMENT1_WEBGL : Int = 36065;
  36. static inline var COLOR_ATTACHMENT2_WEBGL : Int = 36066;
  37. static inline var COLOR_ATTACHMENT3_WEBGL : Int = 36067;
  38. static inline var COLOR_ATTACHMENT4_WEBGL : Int = 36068;
  39. static inline var COLOR_ATTACHMENT5_WEBGL : Int = 36069;
  40. static inline var COLOR_ATTACHMENT6_WEBGL : Int = 36070;
  41. static inline var COLOR_ATTACHMENT7_WEBGL : Int = 36071;
  42. static inline var COLOR_ATTACHMENT8_WEBGL : Int = 36072;
  43. static inline var COLOR_ATTACHMENT9_WEBGL : Int = 36073;
  44. static inline var COLOR_ATTACHMENT10_WEBGL : Int = 36074;
  45. static inline var COLOR_ATTACHMENT11_WEBGL : Int = 36075;
  46. static inline var COLOR_ATTACHMENT12_WEBGL : Int = 36076;
  47. static inline var COLOR_ATTACHMENT13_WEBGL : Int = 36077;
  48. static inline var COLOR_ATTACHMENT14_WEBGL : Int = 36078;
  49. static inline var COLOR_ATTACHMENT15_WEBGL : Int = 36079;
  50. /**
  51. A `GLenum` returning a draw buffer.
  52. **/
  53. static inline var DRAW_BUFFER0_WEBGL : Int = 34853;
  54. static inline var DRAW_BUFFER1_WEBGL : Int = 34854;
  55. static inline var DRAW_BUFFER2_WEBGL : Int = 34855;
  56. static inline var DRAW_BUFFER3_WEBGL : Int = 34856;
  57. static inline var DRAW_BUFFER4_WEBGL : Int = 34857;
  58. static inline var DRAW_BUFFER5_WEBGL : Int = 34858;
  59. static inline var DRAW_BUFFER6_WEBGL : Int = 34859;
  60. static inline var DRAW_BUFFER7_WEBGL : Int = 34860;
  61. static inline var DRAW_BUFFER8_WEBGL : Int = 34861;
  62. static inline var DRAW_BUFFER9_WEBGL : Int = 34862;
  63. static inline var DRAW_BUFFER10_WEBGL : Int = 34863;
  64. static inline var DRAW_BUFFER11_WEBGL : Int = 34864;
  65. static inline var DRAW_BUFFER12_WEBGL : Int = 34865;
  66. static inline var DRAW_BUFFER13_WEBGL : Int = 34866;
  67. static inline var DRAW_BUFFER14_WEBGL : Int = 34867;
  68. static inline var DRAW_BUFFER15_WEBGL : Int = 34868;
  69. /**
  70. A `GLint` indicating the maximum number of framebuffer color attachment points.
  71. **/
  72. static inline var MAX_COLOR_ATTACHMENTS_WEBGL : Int = 36063;
  73. /**
  74. A `GLint` indicating the maximum number of draw buffers.
  75. **/
  76. static inline var MAX_DRAW_BUFFERS_WEBGL : Int = 34852;
  77. /**
  78. Defines the draw buffers to which all fragment colors are written. (When using `WebGL2RenderingContext`, this method is available as `WebGL2RenderingContext.drawBuffers()` by default).
  79. **/
  80. function drawBuffersWEBGL( buffers : Array<Int> ) : Void;
  81. }