GLenum.js 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. export default {
  2. "DEPTH_BUFFER_BIT": 256,
  3. "STENCIL_BUFFER_BIT": 1024,
  4. "COLOR_BUFFER_BIT": 16384,
  5. "POINTS": 0,
  6. "LINES": 1,
  7. "LINE_LOOP": 2,
  8. "LINE_STRIP": 3,
  9. "TRIANGLES": 4,
  10. "TRIANGLE_STRIP": 5,
  11. "TRIANGLE_FAN": 6,
  12. "ZERO": 0,
  13. "ONE": 1,
  14. "SRC_COLOR": 768,
  15. "ONE_MINUS_SRC_COLOR": 769,
  16. "SRC_ALPHA": 770,
  17. "ONE_MINUS_SRC_ALPHA": 771,
  18. "DST_ALPHA": 772,
  19. "ONE_MINUS_DST_ALPHA": 773,
  20. "DST_COLOR": 774,
  21. "ONE_MINUS_DST_COLOR": 775,
  22. "SRC_ALPHA_SATURATE": 776,
  23. "FUNC_ADD": 32774,
  24. "BLEND_EQUATION": 32777,
  25. "BLEND_EQUATION_RGB": 32777,
  26. "BLEND_EQUATION_ALPHA": 34877,
  27. "FUNC_SUBTRACT": 32778,
  28. "FUNC_REVERSE_SUBTRACT": 32779,
  29. "BLEND_DST_RGB": 32968,
  30. "BLEND_SRC_RGB": 32969,
  31. "BLEND_DST_ALPHA": 32970,
  32. "BLEND_SRC_ALPHA": 32971,
  33. "CONSTANT_COLOR": 32769,
  34. "ONE_MINUS_CONSTANT_COLOR": 32770,
  35. "CONSTANT_ALPHA": 32771,
  36. "ONE_MINUS_CONSTANT_ALPHA": 32772,
  37. "BLEND_COLOR": 32773,
  38. "ARRAY_BUFFER": 34962,
  39. "ELEMENT_ARRAY_BUFFER": 34963,
  40. "ARRAY_BUFFER_BINDING": 34964,
  41. "ELEMENT_ARRAY_BUFFER_BINDING": 34965,
  42. "STREAM_DRAW": 35040,
  43. "STATIC_DRAW": 35044,
  44. "DYNAMIC_DRAW": 35048,
  45. "BUFFER_SIZE": 34660,
  46. "BUFFER_USAGE": 34661,
  47. "CURRENT_VERTEX_ATTRIB": 34342,
  48. "FRONT": 1028,
  49. "BACK": 1029,
  50. "FRONT_AND_BACK": 1032,
  51. "TEXTURE_2D": 3553,
  52. "CULL_FACE": 2884,
  53. "BLEND": 3042,
  54. "DITHER": 3024,
  55. "STENCIL_TEST": 2960,
  56. "DEPTH_TEST": 2929,
  57. "SCISSOR_TEST": 3089,
  58. "POLYGON_OFFSET_FILL": 32823,
  59. "SAMPLE_ALPHA_TO_COVERAGE": 32926,
  60. "SAMPLE_COVERAGE": 32928,
  61. "NO_ERROR": 0,
  62. "INVALID_ENUM": 1280,
  63. "INVALID_VALUE": 1281,
  64. "INVALID_OPERATION": 1282,
  65. "OUT_OF_MEMORY": 1285,
  66. "CW": 2304,
  67. "CCW": 2305,
  68. "LINE_WIDTH": 2849,
  69. "ALIASED_POINT_SIZE_RANGE": 33901,
  70. "ALIASED_LINE_WIDTH_RANGE": 33902,
  71. "CULL_FACE_MODE": 2885,
  72. "FRONT_FACE": 2886,
  73. "DEPTH_RANGE": 2928,
  74. "DEPTH_WRITEMASK": 2930,
  75. "DEPTH_CLEAR_VALUE": 2931,
  76. "DEPTH_FUNC": 2932,
  77. "STENCIL_CLEAR_VALUE": 2961,
  78. "STENCIL_FUNC": 2962,
  79. "STENCIL_FAIL": 2964,
  80. "STENCIL_PASS_DEPTH_FAIL": 2965,
  81. "STENCIL_PASS_DEPTH_PASS": 2966,
  82. "STENCIL_REF": 2967,
  83. "STENCIL_VALUE_MASK": 2963,
  84. "STENCIL_WRITEMASK": 2968,
  85. "STENCIL_BACK_FUNC": 34816,
  86. "STENCIL_BACK_FAIL": 34817,
  87. "STENCIL_BACK_PASS_DEPTH_FAIL": 34818,
  88. "STENCIL_BACK_PASS_DEPTH_PASS": 34819,
  89. "STENCIL_BACK_REF": 36003,
  90. "STENCIL_BACK_VALUE_MASK": 36004,
  91. "STENCIL_BACK_WRITEMASK": 36005,
  92. "VIEWPORT": 2978,
  93. "SCISSOR_BOX": 3088,
  94. "COLOR_CLEAR_VALUE": 3106,
  95. "COLOR_WRITEMASK": 3107,
  96. "UNPACK_ALIGNMENT": 3317,
  97. "PACK_ALIGNMENT": 3333,
  98. "MAX_TEXTURE_SIZE": 3379,
  99. "MAX_VIEWPORT_DIMS": 3386,
  100. "SUBPIXEL_BITS": 3408,
  101. "RED_BITS": 3410,
  102. "GREEN_BITS": 3411,
  103. "BLUE_BITS": 3412,
  104. "ALPHA_BITS": 3413,
  105. "DEPTH_BITS": 3414,
  106. "STENCIL_BITS": 3415,
  107. "POLYGON_OFFSET_UNITS": 10752,
  108. "POLYGON_OFFSET_FACTOR": 32824,
  109. "TEXTURE_BINDING_2D": 32873,
  110. "SAMPLE_BUFFERS": 32936,
  111. "SAMPLES": 32937,
  112. "SAMPLE_COVERAGE_VALUE": 32938,
  113. "SAMPLE_COVERAGE_INVERT": 32939,
  114. "COMPRESSED_TEXTURE_FORMATS": 34467,
  115. "DONT_CARE": 4352,
  116. "FASTEST": 4353,
  117. "NICEST": 4354,
  118. "GENERATE_MIPMAP_HINT": 33170,
  119. "BYTE": 5120,
  120. "UNSIGNED_BYTE": 5121,
  121. "SHORT": 5122,
  122. "UNSIGNED_SHORT": 5123,
  123. "INT": 5124,
  124. "UNSIGNED_INT": 5125,
  125. "FLOAT": 5126,
  126. "DEPTH_COMPONENT": 6402,
  127. "ALPHA": 6406,
  128. "RGB": 6407,
  129. "RGBA": 6408,
  130. "LUMINANCE": 6409,
  131. "LUMINANCE_ALPHA": 6410,
  132. "UNSIGNED_SHORT_4_4_4_4": 32819,
  133. "UNSIGNED_SHORT_5_5_5_1": 32820,
  134. "UNSIGNED_SHORT_5_6_5": 33635,
  135. "FRAGMENT_SHADER": 35632,
  136. "VERTEX_SHADER": 35633,
  137. "MAX_VERTEX_ATTRIBS": 34921,
  138. "MAX_VERTEX_UNIFORM_VECTORS": 36347,
  139. "MAX_VARYING_VECTORS": 36348,
  140. "MAX_COMBINED_TEXTURE_IMAGE_UNITS": 35661,
  141. "MAX_VERTEX_TEXTURE_IMAGE_UNITS": 35660,
  142. "MAX_TEXTURE_IMAGE_UNITS": 34930,
  143. "MAX_FRAGMENT_UNIFORM_VECTORS": 36349,
  144. "SHADER_TYPE": 35663,
  145. "DELETE_STATUS": 35712,
  146. "LINK_STATUS": 35714,
  147. "VALIDATE_STATUS": 35715,
  148. "ATTACHED_SHADERS": 35717,
  149. "ACTIVE_UNIFORMS": 35718,
  150. "ACTIVE_ATTRIBUTES": 35721,
  151. "SHADING_LANGUAGE_VERSION": 35724,
  152. "CURRENT_PROGRAM": 35725,
  153. "NEVER": 512,
  154. "LESS": 513,
  155. "EQUAL": 514,
  156. "LEQUAL": 515,
  157. "GREATER": 516,
  158. "NOTEQUAL": 517,
  159. "GEQUAL": 518,
  160. "ALWAYS": 519,
  161. "KEEP": 7680,
  162. "REPLACE": 7681,
  163. "INCR": 7682,
  164. "DECR": 7683,
  165. "INVERT": 5386,
  166. "INCR_WRAP": 34055,
  167. "DECR_WRAP": 34056,
  168. "VENDOR": 7936,
  169. "RENDERER": 7937,
  170. "VERSION": 7938,
  171. "NEAREST": 9728,
  172. "LINEAR": 9729,
  173. "NEAREST_MIPMAP_NEAREST": 9984,
  174. "LINEAR_MIPMAP_NEAREST": 9985,
  175. "NEAREST_MIPMAP_LINEAR": 9986,
  176. "LINEAR_MIPMAP_LINEAR": 9987,
  177. "TEXTURE_MAG_FILTER": 10240,
  178. "TEXTURE_MIN_FILTER": 10241,
  179. "TEXTURE_WRAP_S": 10242,
  180. "TEXTURE_WRAP_T": 10243,
  181. "TEXTURE": 5890,
  182. "TEXTURE_CUBE_MAP": 34067,
  183. "TEXTURE_BINDING_CUBE_MAP": 34068,
  184. "TEXTURE_CUBE_MAP_POSITIVE_X": 34069,
  185. "TEXTURE_CUBE_MAP_NEGATIVE_X": 34070,
  186. "TEXTURE_CUBE_MAP_POSITIVE_Y": 34071,
  187. "TEXTURE_CUBE_MAP_NEGATIVE_Y": 34072,
  188. "TEXTURE_CUBE_MAP_POSITIVE_Z": 34073,
  189. "TEXTURE_CUBE_MAP_NEGATIVE_Z": 34074,
  190. "MAX_CUBE_MAP_TEXTURE_SIZE": 34076,
  191. "TEXTURE0": 33984,
  192. "TEXTURE1": 33985,
  193. "TEXTURE2": 33986,
  194. "TEXTURE3": 33987,
  195. "TEXTURE4": 33988,
  196. "TEXTURE5": 33989,
  197. "TEXTURE6": 33990,
  198. "TEXTURE7": 33991,
  199. "TEXTURE8": 33992,
  200. "TEXTURE9": 33993,
  201. "TEXTURE10": 33994,
  202. "TEXTURE11": 33995,
  203. "TEXTURE12": 33996,
  204. "TEXTURE13": 33997,
  205. "TEXTURE14": 33998,
  206. "TEXTURE15": 33999,
  207. "TEXTURE16": 34000,
  208. "TEXTURE17": 34001,
  209. "TEXTURE18": 34002,
  210. "TEXTURE19": 34003,
  211. "TEXTURE20": 34004,
  212. "TEXTURE21": 34005,
  213. "TEXTURE22": 34006,
  214. "TEXTURE23": 34007,
  215. "TEXTURE24": 34008,
  216. "TEXTURE25": 34009,
  217. "TEXTURE26": 34010,
  218. "TEXTURE27": 34011,
  219. "TEXTURE28": 34012,
  220. "TEXTURE29": 34013,
  221. "TEXTURE30": 34014,
  222. "TEXTURE31": 34015,
  223. "ACTIVE_TEXTURE": 34016,
  224. "REPEAT": 10497,
  225. "CLAMP_TO_EDGE": 33071,
  226. "MIRRORED_REPEAT": 33648,
  227. "FLOAT_VEC2": 35664,
  228. "FLOAT_VEC3": 35665,
  229. "FLOAT_VEC4": 35666,
  230. "INT_VEC2": 35667,
  231. "INT_VEC3": 35668,
  232. "INT_VEC4": 35669,
  233. "BOOL": 35670,
  234. "BOOL_VEC2": 35671,
  235. "BOOL_VEC3": 35672,
  236. "BOOL_VEC4": 35673,
  237. "FLOAT_MAT2": 35674,
  238. "FLOAT_MAT3": 35675,
  239. "FLOAT_MAT4": 35676,
  240. "SAMPLER_2D": 35678,
  241. "SAMPLER_CUBE": 35680,
  242. "VERTEX_ATTRIB_ARRAY_ENABLED": 34338,
  243. "VERTEX_ATTRIB_ARRAY_SIZE": 34339,
  244. "VERTEX_ATTRIB_ARRAY_STRIDE": 34340,
  245. "VERTEX_ATTRIB_ARRAY_TYPE": 34341,
  246. "VERTEX_ATTRIB_ARRAY_NORMALIZED": 34922,
  247. "VERTEX_ATTRIB_ARRAY_POINTER": 34373,
  248. "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING": 34975,
  249. "IMPLEMENTATION_COLOR_READ_TYPE": 35738,
  250. "IMPLEMENTATION_COLOR_READ_FORMAT": 35739,
  251. "COMPILE_STATUS": 35713,
  252. "LOW_FLOAT": 36336,
  253. "MEDIUM_FLOAT": 36337,
  254. "HIGH_FLOAT": 36338,
  255. "LOW_INT": 36339,
  256. "MEDIUM_INT": 36340,
  257. "HIGH_INT": 36341,
  258. "FRAMEBUFFER": 36160,
  259. "RENDERBUFFER": 36161,
  260. "RGBA4": 32854,
  261. "RGB5_A1": 32855,
  262. "RGB565": 36194,
  263. "DEPTH_COMPONENT16": 33189,
  264. "STENCIL_INDEX8": 36168,
  265. "DEPTH_STENCIL": 34041,
  266. "RENDERBUFFER_WIDTH": 36162,
  267. "RENDERBUFFER_HEIGHT": 36163,
  268. "RENDERBUFFER_INTERNAL_FORMAT": 36164,
  269. "RENDERBUFFER_RED_SIZE": 36176,
  270. "RENDERBUFFER_GREEN_SIZE": 36177,
  271. "RENDERBUFFER_BLUE_SIZE": 36178,
  272. "RENDERBUFFER_ALPHA_SIZE": 36179,
  273. "RENDERBUFFER_DEPTH_SIZE": 36180,
  274. "RENDERBUFFER_STENCIL_SIZE": 36181,
  275. "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE": 36048,
  276. "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME": 36049,
  277. "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL": 36050,
  278. "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE": 36051,
  279. "COLOR_ATTACHMENT0": 36064,
  280. "DEPTH_ATTACHMENT": 36096,
  281. "STENCIL_ATTACHMENT": 36128,
  282. "DEPTH_STENCIL_ATTACHMENT": 33306,
  283. "NONE": 0,
  284. "FRAMEBUFFER_COMPLETE": 36053,
  285. "FRAMEBUFFER_INCOMPLETE_ATTACHMENT": 36054,
  286. "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT": 36055,
  287. "FRAMEBUFFER_INCOMPLETE_DIMENSIONS": 36057,
  288. "FRAMEBUFFER_UNSUPPORTED": 36061,
  289. "FRAMEBUFFER_BINDING": 36006,
  290. "RENDERBUFFER_BINDING": 36007,
  291. "MAX_RENDERBUFFER_SIZE": 34024,
  292. "INVALID_FRAMEBUFFER_OPERATION": 1286,
  293. "UNPACK_FLIP_Y_WEBGL": 37440,
  294. "UNPACK_PREMULTIPLY_ALPHA_WEBGL": 37441,
  295. "CONTEXT_LOST_WEBGL": 37442,
  296. "UNPACK_COLORSPACE_CONVERSION_WEBGL": 37443,
  297. "BROWSER_DEFAULT_WEBGL": 37444
  298. };