consts.go 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // Copyright 2014 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package gl
  5. /*
  6. Partially generated from the Khronos OpenGL API specification in XML
  7. format, which is covered by the license:
  8. Copyright (c) 2013-2014 The Khronos Group Inc.
  9. Permission is hereby granted, free of charge, to any person obtaining a
  10. copy of this software and/or associated documentation files (the
  11. "Materials"), to deal in the Materials without restriction, including
  12. without limitation the rights to use, copy, modify, merge, publish,
  13. distribute, sublicense, and/or sell copies of the Materials, and to
  14. permit persons to whom the Materials are furnished to do so, subject to
  15. the following conditions:
  16. The above copyright notice and this permission notice shall be included
  17. in all copies or substantial portions of the Materials.
  18. THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  19. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  20. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  21. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  22. CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  23. TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  24. MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  25. */
  26. // Contains Khronos OpenGL API specification constants.
  27. const (
  28. False = 0
  29. True = 1
  30. One = 1
  31. Triangles = 0x0004
  32. TriangleStrip = 0x0005
  33. SrcAlpha = 0x0302
  34. OneMinusSrcAlpha = 0x0303
  35. Front = 0x0404
  36. DepthTest = 0x0B71
  37. Blend = 0x0BE2
  38. ScissorTest = 0x0C11
  39. UnpackAlignment = 0x0CF5
  40. Texture2D = 0x0DE1
  41. UnsignedByte = 0x1401
  42. Float = 0x1406
  43. RED = 0x1903
  44. RGBA = 0x1908
  45. LUMINANCE = 0x1909
  46. Nearest = 0x2600
  47. Linear = 0x2601
  48. TextureMagFilter = 0x2800
  49. TextureMinFilter = 0x2801
  50. TextureWrapS = 0x2802
  51. TextureWrapT = 0x2803
  52. ConstantAlpha = 0x8003
  53. OneMinusConstantAlpha = 0x8004
  54. ClampToEdge = 0x812F
  55. Texture0 = 0x84C0
  56. StaticDraw = 0x88E4
  57. DynamicDraw = 0x88E8
  58. FragmentShader = 0x8B30
  59. VertexShader = 0x8B31
  60. AttachedShaders = 0x8B85
  61. ActiveUniformMaxLength = 0x8B87
  62. ActiveAttributeMaxLength = 0x8B8A
  63. ArrayBuffer = 0x8892
  64. CompileStatus = 0x8B81
  65. LinkStatus = 0x8B82
  66. InfoLogLength = 0x8B84
  67. ShaderSourceLength = 0x8B88
  68. DepthBufferBit = 0x00000100
  69. ColorBufferBit = 0x00004000
  70. )