consts.go 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. Texture2D = 0x0DE1
  40. UnsignedByte = 0x1401
  41. Float = 0x1406
  42. RED = 0x1903
  43. RGBA = 0x1908
  44. Nearest = 0x2600
  45. Linear = 0x2601
  46. TextureMagFilter = 0x2800
  47. TextureMinFilter = 0x2801
  48. TextureWrapS = 0x2802
  49. TextureWrapT = 0x2803
  50. ConstantAlpha = 0x8003
  51. OneMinusConstantAlpha = 0x8004
  52. ClampToEdge = 0x812F
  53. Texture0 = 0x84C0
  54. StaticDraw = 0x88E4
  55. DynamicDraw = 0x88E8
  56. FragmentShader = 0x8B30
  57. VertexShader = 0x8B31
  58. AttachedShaders = 0x8B85
  59. ActiveUniformMaxLength = 0x8B87
  60. ActiveAttributeMaxLength = 0x8B8A
  61. ArrayBuffer = 0x8892
  62. CompileStatus = 0x8B81
  63. LinkStatus = 0x8B82
  64. InfoLogLength = 0x8B84
  65. ShaderSourceLength = 0x8B88
  66. DepthBufferBit = 0x00000100
  67. ColorBufferBit = 0x00004000
  68. )