EglConsts.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. // ReSharper disable UnusedMember.Global
  2. // ReSharper disable IdentifierTypo
  3. namespace Avalonia.OpenGL
  4. {
  5. public static class EglConsts
  6. {
  7. public const int EGL_ALPHA_SIZE = 0x3021;
  8. public const int EGL_BAD_ACCESS = 0x3002;
  9. public const int EGL_BAD_ALLOC = 0x3003;
  10. public const int EGL_BAD_ATTRIBUTE = 0x3004;
  11. public const int EGL_BAD_CONFIG = 0x3005;
  12. public const int EGL_BAD_CONTEXT = 0x3006;
  13. public const int EGL_BAD_CURRENT_SURFACE = 0x3007;
  14. public const int EGL_BAD_DISPLAY = 0x3008;
  15. public const int EGL_BAD_MATCH = 0x3009;
  16. public const int EGL_BAD_NATIVE_PIXMAP = 0x300A;
  17. public const int EGL_BAD_NATIVE_WINDOW = 0x300B;
  18. public const int EGL_BAD_PARAMETER = 0x300C;
  19. public const int EGL_BAD_SURFACE = 0x300D;
  20. public const int EGL_BLUE_SIZE = 0x3022;
  21. public const int EGL_BUFFER_SIZE = 0x3020;
  22. public const int EGL_CONFIG_CAVEAT = 0x3027;
  23. public const int EGL_CONFIG_ID = 0x3028;
  24. public const int EGL_CORE_NATIVE_ENGINE = 0x305B;
  25. public const int EGL_DEPTH_SIZE = 0x3025;
  26. public const int EGL_DONT_CARE = -1;
  27. public const int EGL_DRAW = 0x3059;
  28. public const int EGL_EXTENSIONS = 0x3055;
  29. public const int EGL_FALSE = 0;
  30. public const int EGL_GREEN_SIZE = 0x3023;
  31. public const int EGL_HEIGHT = 0x3056;
  32. public const int EGL_LARGEST_PBUFFER = 0x3058;
  33. public const int EGL_LEVEL = 0x3029;
  34. public const int EGL_MAX_PBUFFER_HEIGHT = 0x302A;
  35. public const int EGL_MAX_PBUFFER_PIXELS = 0x302B;
  36. public const int EGL_MAX_PBUFFER_WIDTH = 0x302C;
  37. public const int EGL_NATIVE_RENDERABLE = 0x302D;
  38. public const int EGL_NATIVE_VISUAL_ID = 0x302E;
  39. public const int EGL_NATIVE_VISUAL_TYPE = 0x302F;
  40. public const int EGL_NONE = 0x3038;
  41. public const int EGL_NON_CONFORMANT_CONFIG = 0x3051;
  42. public const int EGL_NOT_INITIALIZED = 0x3001;
  43. public const int EGL_NO_CONTEXT = 0;
  44. public const int EGL_NO_DISPLAY = 0;
  45. public const int EGL_NO_SURFACE = 0;
  46. public const int EGL_PBUFFER_BIT = 0x0001;
  47. public const int EGL_PIXMAP_BIT = 0x0002;
  48. public const int EGL_READ = 0x305A;
  49. public const int EGL_RED_SIZE = 0x3024;
  50. public const int EGL_SAMPLES = 0x3031;
  51. public const int EGL_SAMPLE_BUFFERS = 0x3032;
  52. public const int EGL_SLOW_CONFIG = 0x3050;
  53. public const int EGL_STENCIL_SIZE = 0x3026;
  54. public const int EGL_SUCCESS = 0x3000;
  55. public const int EGL_SURFACE_TYPE = 0x3033;
  56. public const int EGL_TRANSPARENT_BLUE_VALUE = 0x3035;
  57. public const int EGL_TRANSPARENT_GREEN_VALUE = 0x3036;
  58. public const int EGL_TRANSPARENT_RED_VALUE = 0x3037;
  59. public const int EGL_TRANSPARENT_RGB = 0x3052;
  60. public const int EGL_TRANSPARENT_TYPE = 0x3034;
  61. public const int EGL_TRUE = 1;
  62. public const int EGL_VENDOR = 0x3053;
  63. public const int EGL_VERSION = 0x3054;
  64. public const int EGL_WIDTH = 0x3057;
  65. public const int EGL_WINDOW_BIT = 0x0004;
  66. public const int EGL_BACK_BUFFER = 0x3084;
  67. public const int EGL_BIND_TO_TEXTURE_RGB = 0x3039;
  68. public const int EGL_BIND_TO_TEXTURE_RGBA = 0x303A;
  69. public const int EGL_CONTEXT_LOST = 0x300E;
  70. public const int EGL_MIN_SWAP_INTERVAL = 0x303B;
  71. public const int EGL_MAX_SWAP_INTERVAL = 0x303C;
  72. public const int EGL_MIPMAP_TEXTURE = 0x3082;
  73. public const int EGL_MIPMAP_LEVEL = 0x3083;
  74. public const int EGL_NO_TEXTURE = 0x305C;
  75. public const int EGL_TEXTURE_2D = 0x305F;
  76. public const int EGL_TEXTURE_FORMAT = 0x3080;
  77. public const int EGL_TEXTURE_RGB = 0x305D;
  78. public const int EGL_TEXTURE_RGBA = 0x305E;
  79. public const int EGL_TEXTURE_TARGET = 0x3081;
  80. public const int EGL_ALPHA_FORMAT = 0x3088;
  81. public const int EGL_ALPHA_FORMAT_NONPRE = 0x308B;
  82. public const int EGL_ALPHA_FORMAT_PRE = 0x308C;
  83. public const int EGL_ALPHA_MASK_SIZE = 0x303E;
  84. public const int EGL_BUFFER_PRESERVED = 0x3094;
  85. public const int EGL_BUFFER_DESTROYED = 0x3095;
  86. public const int EGL_CLIENT_APIS = 0x308D;
  87. public const int EGL_COLORSPACE = 0x3087;
  88. public const int EGL_COLORSPACE_sRGB = 0x3089;
  89. public const int EGL_COLORSPACE_LINEAR = 0x308A;
  90. public const int EGL_COLOR_BUFFER_TYPE = 0x303F;
  91. public const int EGL_CONTEXT_CLIENT_TYPE = 0x3097;
  92. public const int EGL_DISPLAY_SCALING = 10000;
  93. public const int EGL_HORIZONTAL_RESOLUTION = 0x3090;
  94. public const int EGL_LUMINANCE_BUFFER = 0x308F;
  95. public const int EGL_LUMINANCE_SIZE = 0x303D;
  96. public const int EGL_OPENGL_ES_BIT = 0x0001;
  97. public const int EGL_OPENVG_BIT = 0x0002;
  98. public const int EGL_OPENGL_ES_API = 0x30A0;
  99. public const int EGL_OPENVG_API = 0x30A1;
  100. public const int EGL_OPENVG_IMAGE = 0x3096;
  101. public const int EGL_PIXEL_ASPECT_RATIO = 0x3092;
  102. public const int EGL_RENDERABLE_TYPE = 0x3040;
  103. public const int EGL_RENDER_BUFFER = 0x3086;
  104. public const int EGL_RGB_BUFFER = 0x308E;
  105. public const int EGL_SINGLE_BUFFER = 0x3085;
  106. public const int EGL_SWAP_BEHAVIOR = 0x3093;
  107. public const int EGL_UNKNOWN = -1;
  108. public const int EGL_VERTICAL_RESOLUTION = 0x3091;
  109. public const int EGL_CONFORMANT = 0x3042;
  110. public const int EGL_CONTEXT_CLIENT_VERSION = 0x3098;
  111. public const int EGL_MATCH_NATIVE_PIXMAP = 0x3041;
  112. public const int EGL_OPENGL_ES2_BIT = 0x0004;
  113. public const int EGL_VG_ALPHA_FORMAT = 0x3088;
  114. public const int EGL_VG_ALPHA_FORMAT_NONPRE = 0x308B;
  115. public const int EGL_VG_ALPHA_FORMAT_PRE = 0x308C;
  116. public const int EGL_VG_ALPHA_FORMAT_PRE_BIT = 0x0040;
  117. public const int EGL_VG_COLORSPACE = 0x3087;
  118. public const int EGL_VG_COLORSPACE_sRGB = 0x3089;
  119. public const int EGL_VG_COLORSPACE_LINEAR = 0x308A;
  120. public const int EGL_VG_COLORSPACE_LINEAR_BIT = 0x0020;
  121. public const int EGL_DEFAULT_DISPLAY = 0;
  122. public const int EGL_MULTISAMPLE_RESOLVE_BOX_BIT = 0x0200;
  123. public const int EGL_MULTISAMPLE_RESOLVE = 0x3099;
  124. public const int EGL_MULTISAMPLE_RESOLVE_DEFAULT = 0x309A;
  125. public const int EGL_MULTISAMPLE_RESOLVE_BOX = 0x309B;
  126. public const int EGL_OPENGL_API = 0x30A2;
  127. public const int EGL_OPENGL_BIT = 0x0008;
  128. public const int EGL_SWAP_BEHAVIOR_PRESERVED_BIT = 0x0400;
  129. public const int EGL_CONTEXT_MAJOR_VERSION = 0x3098;
  130. public const int EGL_CONTEXT_MINOR_VERSION = 0x30FB;
  131. public const int EGL_CONTEXT_OPENGL_PROFILE_MASK = 0x30FD;
  132. public const int EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY = 0x31BD;
  133. public const int EGL_NO_RESET_NOTIFICATION = 0x31BE;
  134. public const int EGL_LOSE_CONTEXT_ON_RESET = 0x31BF;
  135. public const int EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT = 0x00000001;
  136. public const int EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT = 0x00000002;
  137. public const int EGL_CONTEXT_OPENGL_DEBUG = 0x31B0;
  138. public const int EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE = 0x31B1;
  139. public const int EGL_CONTEXT_OPENGL_ROBUST_ACCESS = 0x31B2;
  140. public const int EGL_OPENGL_ES3_BIT = 0x00000040;
  141. public const int EGL_CL_EVENT_HANDLE = 0x309C;
  142. public const int EGL_SYNC_CL_EVENT = 0x30FE;
  143. public const int EGL_SYNC_CL_EVENT_COMPLETE = 0x30FF;
  144. public const int EGL_SYNC_PRIOR_COMMANDS_COMPLETE = 0x30F0;
  145. public const int EGL_SYNC_TYPE = 0x30F7;
  146. public const int EGL_SYNC_STATUS = 0x30F1;
  147. public const int EGL_SYNC_CONDITION = 0x30F8;
  148. public const int EGL_SIGNALED = 0x30F2;
  149. public const int EGL_UNSIGNALED = 0x30F3;
  150. public const int EGL_SYNC_FLUSH_COMMANDS_BIT = 0x0001;
  151. public const int EGL_TIMEOUT_EXPIRED = 0x30F5;
  152. public const int EGL_CONDITION_SATISFIED = 0x30F6;
  153. public const int EGL_NO_SYNC = 0;
  154. public const int EGL_SYNC_FENCE = 0x30F9;
  155. public const int EGL_GL_COLORSPACE = 0x309D;
  156. public const int EGL_GL_COLORSPACE_SRGB = 0x3089;
  157. public const int EGL_GL_COLORSPACE_LINEAR = 0x308A;
  158. public const int EGL_GL_RENDERBUFFER = 0x30B9;
  159. public const int EGL_GL_TEXTURE_2D = 0x30B1;
  160. public const int EGL_GL_TEXTURE_LEVEL = 0x30BC;
  161. public const int EGL_GL_TEXTURE_3D = 0x30B2;
  162. public const int EGL_GL_TEXTURE_ZOFFSET = 0x30BD;
  163. public const int EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X = 0x30B3;
  164. public const int EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 0x30B4;
  165. public const int EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x30B5;
  166. public const int EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x30B6;
  167. public const int EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 0x30B7;
  168. public const int EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x30B8;
  169. public const int EGL_IMAGE_PRESERVED = 0x30D2;
  170. public const int EGL_NO_IMAGE = 0;
  171. public const int EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE = 0x3207;
  172. public const int EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE = 0x3208;
  173. //EGL_ANGLE_platform_angle
  174. public const int EGL_PLATFORM_ANGLE_ANGLE = 0x3202;
  175. public const int EGL_PLATFORM_ANGLE_TYPE_ANGLE = 0x3203;
  176. public const int EGL_PLATFORM_ANGLE_MAX_VERSION_MAJOR_ANGLE = 0x3204;
  177. public const int EGL_PLATFORM_ANGLE_MAX_VERSION_MINOR_ANGLE = 0x3205;
  178. public const int EGL_PLATFORM_ANGLE_DEBUG_LAYERS_ENABLED = 0x3451;
  179. public const int EGL_PLATFORM_ANGLE_TYPE_DEFAULT_ANGLE = 0x3206;
  180. public const int EGL_PLATFORM_ANGLE_DEVICE_TYPE_HARDWARE_ANGLE = 0x320A;
  181. public const int EGL_PLATFORM_ANGLE_DEVICE_TYPE_NULL_ANGLE = 0x345E;
  182. public const int EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE = 0x320D;
  183. public const int EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE = 0x320E;
  184. //EGL_ANGLE_platform_angle_d3d
  185. public const int EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE = 0x3209;
  186. public const int EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE = 0x320F;
  187. public const int EGL_PLATFORM_ANGLE_DEVICE_TYPE_D3D_WARP_ANGLE = 0x320B;
  188. public const int EGL_PLATFORM_ANGLE_DEVICE_TYPE_D3D_REFERENCE_ANGLE = 0x320C;
  189. //EXT_device_query
  190. public const int EGL_DEVICE_EXT = 0x322C;
  191. //ANGLE_device_d3d
  192. public const int EGL_D3D9_DEVICE_ANGLE = 0x33A0;
  193. public const int EGL_D3D11_DEVICE_ANGLE = 0x33A1;
  194. public const int EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE = 0x3200;
  195. public const int EGL_D3D_TEXTURE_ANGLE = 0x33A3;
  196. }
  197. }