Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Feb 4, 2024
1 parent b3a3644 commit 113ec4c
Show file tree
Hide file tree
Showing 12 changed files with 6,140 additions and 3,119 deletions.
43 changes: 40 additions & 3 deletions glad/files/egl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,8 @@
<enum value="0x3375" name="EGL_STREAM_IMAGE_REMOVE_NV"/>
<enum value="0x3376" name="EGL_STREAM_IMAGE_AVAILABLE_NV"/>
<enum value="0x3377" name="EGL_DRM_RENDER_NODE_FILE_EXT"/>
<unused start="0x3378" end="0x339F"/>
<enum value="0x3378" name="EGL_STREAM_CONSUMER_IMAGE_USE_SCANOUT_NV" />
<unused start="0x3379" end="0x339F"/>
</enums>

<enums namespace="EGL" start="0x33A0" end="0x33AF" vendor="ANGLE" comment="Reserved for Shannon Woods (Bug 13175)">
Expand Down Expand Up @@ -1073,6 +1074,21 @@
<unused start="0x3531" end="0x353F"/>
</enums>

<enums namespace="EGL" start="0x3540" end="0x354F" vendor="EXT" comment="Reserved for Chris Glover (EGL_EXT_gl_colorspace_bt2020)">
<enum value="0x3540" name="EGL_GL_COLORSPACE_BT2020_HLG_EXT"/>
<unused start="0x3541" end="0x354F"/>
</enums>

<enums namespace="EGL" start="0x3550" end="0x355F" vendor="QNX" comment="Reserved for Mike Gorchak of QNX (QNX platform and native buffer)">
<enum value="0x3550" name="EGL_PLATFORM_SCREEN_QNX"/>
<enum value="0x3551" name="EGL_NATIVE_BUFFER_QNX"/>
<unused start="0x3552" end="0x355F"/>
</enums>

<enums namespace="EGL" start="0x3560" end="0x356F" vendor="SAMSUNG" comment="Reserved for Jeff Vigil of Samsung (private extensions)">
<unused start="0x3560" end="0x356F"/>
</enums>

<!-- Please remember that new enumerant allocations must be obtained by
request to the Khronos API registrar (see comments at the top of this
file) File requests in the Khronos Bugzilla, EGL project, Registry
Expand All @@ -1082,8 +1098,8 @@

<!-- Reservable for future use. To generate a new range, allocate multiples
of 16 starting at the lowest available point in this block. -->
<enums namespace="EGL" start="0x3540" end="0x3FFF" vendor="KHR" comment="Reserved for future use">
<unused start="0x3540" end="0x3FFF"/>
<enums namespace="EGL" start="0x3570" end="0x3FFF" vendor="KHR" comment="Reserved for future use">
<unused start="0x3570" end="0x3FFF"/>
</enums>

<enums namespace="EGL" start="0x8F70" end="0x8F7F" vendor="HI" comment="For Mark Callow, Khronos bug 4055. Shared with GL.">
Expand Down Expand Up @@ -2496,6 +2512,11 @@
<command name="eglQueryDisplayAttribEXT"/>
</require>
</extension>
<extension name="EGL_EXT_gl_colorspace_bt2020_hlg" supported="egl">
<require>
<enum name="EGL_GL_COLORSPACE_BT2020_HLG_EXT"/>
</require>
</extension>
<extension name="EGL_EXT_gl_colorspace_bt2020_linear" supported="egl">
<require>
<enum name="EGL_GL_COLORSPACE_BT2020_LINEAR_EXT"/>
Expand Down Expand Up @@ -2668,6 +2689,7 @@
<enum name="EGL_PROTECTED_CONTENT_EXT"/>
</require>
</extension>
<extension name="EGL_EXT_query_reset_notification_strategy" supported="egl"/>
<extension name="EGL_EXT_stream_consumer_egloutput" supported="egl">
<require>
<command name="eglStreamConsumerOutputEXT"/>
Expand Down Expand Up @@ -3533,5 +3555,20 @@
<enum name="EGL_DEVICE_EXT"/>
</require>
</extension>
<extension name="EGL_NV_stream_consumer_eglimage_use_scanout_attrib" supported="egl">
<require>
<enum name="EGL_STREAM_CONSUMER_IMAGE_USE_SCANOUT_NV"/>
</require>
</extension>
<extension name="EGL_QNX_platform_screen" supported="egl">
<require>
<enum name="EGL_PLATFORM_SCREEN_QNX"/>
</require>
</extension>
<extension name="EGL_QNX_image_native_buffer" supported="egl">
<require>
<enum name="EGL_NATIVE_BUFFER_QNX"/>
</require>
</extension>
</extensions>
</registry>
6 changes: 6 additions & 0 deletions glad/files/eglplatform.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ typedef HDC EGLNativeDisplayType;
typedef HBITMAP EGLNativePixmapType;
typedef HWND EGLNativeWindowType;

#elif defined(__QNX__)

typedef khronos_uintptr_t EGLNativeDisplayType;
typedef struct _screen_pixmap* EGLNativePixmapType; /* screen_pixmap_t */
typedef struct _screen_window* EGLNativeWindowType; /* screen_window_t */

#elif defined(__EMSCRIPTEN__)

typedef int EGLNativeDisplayType;
Expand Down
4,390 changes: 2,270 additions & 2,120 deletions glad/files/gl.xml

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion glad/files/glx.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ typedef unsigned __int64 uint64_t;
#endif]]></type>
<type name="int32_t" requires="inttypes"/>
<type name="int64_t" requires="inttypes"/>
<!-- Dummy placeholders for X types -->
<!-- Dummy placeholders for X / OpenGL types -->
<type name="Bool"/>
<type name="Colormap"/>
<type name="Display"/>
Expand All @@ -61,6 +61,7 @@ typedef unsigned __int64 uint64_t;
<type name="Screen"/>
<type name="Status"/>
<type name="Window"/>
<type name="XID"/>
<type name="XVisualInfo"/>
<type name="GLbitfield"/>
<type name="GLboolean"/>
Expand Down
Loading

0 comments on commit 113ec4c

Please sign in to comment.