Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
2.9 KiB

  1. //============ Copyright (c) Valve Corporation, All rights reserved. ============
  2. //
  3. // glmgrext.h
  4. // helper file for extension testing and runtime importing of entry points
  5. //
  6. //===============================================================================
  7. #pragma once
  8. #ifdef OSX
  9. #include <OpenGL/gl.h>
  10. #include <OpenGL/glext.h>
  11. #elif defined(DX_TO_GL_ABSTRACTION)
  12. #include <GL/gl.h>
  13. #include <GL/glext.h>
  14. #else
  15. #error
  16. #endif
  17. #ifndef GL_EXT_framebuffer_sRGB
  18. #define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9
  19. #define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA
  20. #endif
  21. #ifndef ARB_texture_rg
  22. #define GL_COMPRESSED_RED 0x8225
  23. #define GL_COMPRESSED_RG 0x8226
  24. #define GL_RG 0x8227
  25. #define GL_RG_INTEGER 0x8228
  26. #define GL_R8 0x8229
  27. #define GL_R16 0x822A
  28. #define GL_RG8 0x822B
  29. #define GL_RG16 0x822C
  30. #define GL_R16F 0x822D
  31. #define GL_R32F 0x822E
  32. #define GL_RG16F 0x822F
  33. #define GL_RG32F 0x8230
  34. #define GL_R8I 0x8231
  35. #define GL_R8UI 0x8232
  36. #define GL_R16I 0x8233
  37. #define GL_R16UI 0x8234
  38. #define GL_R32I 0x8235
  39. #define GL_R32UI 0x8236
  40. #define GL_RG8I 0x8237
  41. #define GL_RG8UI 0x8238
  42. #define GL_RG16I 0x8239
  43. #define GL_RG16UI 0x823A
  44. #define GL_RG32I 0x823B
  45. #define GL_RG32UI 0x823C
  46. #endif
  47. #ifndef GL_EXT_bindable_uniform
  48. #define GL_UNIFORM_BUFFER_EXT 0x8DEE
  49. #endif
  50. // unpublished extension enums (thus the "X")
  51. // from EXT_framebuffer_multisample_blit_scaled..
  52. #define XGL_SCALED_RESOLVE_FASTEST_EXT 0x90BA
  53. #define XGL_SCALED_RESOLVE_NICEST_EXT 0x90BB
  54. #ifndef GL_TEXTURE_MINIMIZE_STORAGE_APPLE
  55. #define GL_TEXTURE_MINIMIZE_STORAGE_APPLE 0x85B6
  56. #endif
  57. #ifndef GL_ALL_COMPLETED_NV
  58. #define GL_ALL_COMPLETED_NV 0x84F2
  59. #endif
  60. #ifndef GL_MAP_READ_BIT
  61. #define GL_MAP_READ_BIT 0x0001
  62. #endif
  63. #ifndef GL_MAP_WRITE_BIT
  64. #define GL_MAP_WRITE_BIT 0x0002
  65. #endif
  66. #ifndef GL_MAP_INVALIDATE_RANGE_BIT
  67. #define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
  68. #endif
  69. #ifndef GL_MAP_INVALIDATE_BUFFER_BIT
  70. #define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
  71. #endif
  72. #ifndef GL_MAP_FLUSH_EXPLICIT_BIT
  73. #define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
  74. #endif
  75. #ifndef GL_MAP_UNSYNCHRONIZED_BIT
  76. #define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
  77. #endif
  78. #ifndef GL_MAP_PERSISTENT_BIT
  79. #define GL_MAP_PERSISTENT_BIT 0x0040
  80. #endif
  81. #ifndef GL_MAP_COHERENT_BIT
  82. #define GL_MAP_COHERENT_BIT 0x0080
  83. #endif