|
1 | 1 | /**
|
2 |
| - * Loader generated by glad 2.0.4 on Sun Mar 12 16:52:54 2023 |
3 |
| - * |
4 |
| - * SPDX-License-Identifier: (WTFPL OR CC0-1.0) AND Apache-2.0 |
| 2 | + * Loader generated by glad 2.0.0-beta on Tue Aug 24 22:51:07 2021 |
5 | 3 | *
|
6 | 4 | * Generator: C/C++
|
7 | 5 | * Specification: gl
|
|
16 | 14 | * - HEADER_ONLY = True
|
17 | 15 | * - LOADER = False
|
18 | 16 | * - MX = False
|
| 17 | + * - MX_GLOBAL = False |
19 | 18 | * - ON_DEMAND = False
|
20 | 19 | *
|
21 | 20 | * Commandline:
|
|
26 | 25 | *
|
27 | 26 | */
|
28 | 27 |
|
| 28 | +#ifndef GLAD_GL |
| 29 | +#define GLAD_GL |
| 30 | + |
29 | 31 | #ifndef GLAD_GL_H_
|
30 | 32 | #define GLAD_GL_H_
|
31 | 33 |
|
@@ -116,8 +118,6 @@ extern "C" {
|
116 | 118 | #define GLAD_GNUC_EXTENSION
|
117 | 119 | #endif
|
118 | 120 |
|
119 |
| -#define GLAD_UNUSED(x) (void)(x) |
120 |
| - |
121 | 121 | #ifndef GLAD_API_CALL
|
122 | 122 | #if defined(GLAD_API_CALL_EXPORT)
|
123 | 123 | #if GLAD_PLATFORM_WIN32 || defined(__CYGWIN__)
|
@@ -164,7 +164,7 @@ extern "C" {
|
164 | 164 | #define GLAD_VERSION_MAJOR(version) (version / 10000)
|
165 | 165 | #define GLAD_VERSION_MINOR(version) (version % 10000)
|
166 | 166 |
|
167 |
| -#define GLAD_GENERATOR_VERSION "2.0.4" |
| 167 | +#define GLAD_GENERATOR_VERSION "2.0.0-beta" |
168 | 168 |
|
169 | 169 | typedef void (*GLADapiproc)(void);
|
170 | 170 |
|
@@ -1637,20 +1637,6 @@ typedef int64_t khronos_int64_t;
|
1637 | 1637 | typedef uint64_t khronos_uint64_t;
|
1638 | 1638 | #define KHRONOS_SUPPORT_INT64 1
|
1639 | 1639 | #define KHRONOS_SUPPORT_FLOAT 1
|
1640 |
| -/* |
1641 |
| - * To support platform where unsigned long cannot be used interchangeably with |
1642 |
| - * inptr_t (e.g. CHERI-extended ISAs), we can use the stdint.h intptr_t. |
1643 |
| - * Ideally, we could just use (u)intptr_t everywhere, but this could result in |
1644 |
| - * ABI breakage if khronos_uintptr_t is changed from unsigned long to |
1645 |
| - * unsigned long long or similar (this results in different C++ name mangling). |
1646 |
| - * To avoid changes for existing platforms, we restrict usage of intptr_t to |
1647 |
| - * platforms where the size of a pointer is larger than the size of long. |
1648 |
| - */ |
1649 |
| -#if defined(__SIZEOF_LONG__) && defined(__SIZEOF_POINTER__) |
1650 |
| -#if __SIZEOF_POINTER__ > __SIZEOF_LONG__ |
1651 |
| -#define KHRONOS_USE_INTPTR_T |
1652 |
| -#endif |
1653 |
| -#endif |
1654 | 1640 |
|
1655 | 1641 | #elif defined(__VMS ) || defined(__sgi)
|
1656 | 1642 |
|
@@ -1733,21 +1719,14 @@ typedef unsigned short int khronos_uint16_t;
|
1733 | 1719 | * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
|
1734 | 1720 | * to be the only LLP64 architecture in current use.
|
1735 | 1721 | */
|
1736 |
| -#ifdef KHRONOS_USE_INTPTR_T |
1737 |
| -typedef intptr_t khronos_intptr_t; |
1738 |
| -typedef uintptr_t khronos_uintptr_t; |
1739 |
| -#elif defined(_WIN64) |
| 1722 | +#ifdef _WIN64 |
1740 | 1723 | typedef signed long long int khronos_intptr_t;
|
1741 | 1724 | typedef unsigned long long int khronos_uintptr_t;
|
1742 |
| -#else |
1743 |
| -typedef signed long int khronos_intptr_t; |
1744 |
| -typedef unsigned long int khronos_uintptr_t; |
1745 |
| -#endif |
1746 |
| - |
1747 |
| -#if defined(_WIN64) |
1748 | 1725 | typedef signed long long int khronos_ssize_t;
|
1749 | 1726 | typedef unsigned long long int khronos_usize_t;
|
1750 | 1727 | #else
|
| 1728 | +typedef signed long int khronos_intptr_t; |
| 1729 | +typedef unsigned long int khronos_uintptr_t; |
1751 | 1730 | typedef signed long int khronos_ssize_t;
|
1752 | 1731 | typedef unsigned long int khronos_usize_t;
|
1753 | 1732 | #endif
|
@@ -1793,70 +1772,113 @@ typedef enum {
|
1793 | 1772 | } khronos_boolean_enum_t;
|
1794 | 1773 |
|
1795 | 1774 | #endif /* __khrplatform_h_ */
|
| 1775 | + |
1796 | 1776 | typedef unsigned int GLenum;
|
| 1777 | + |
1797 | 1778 | typedef unsigned char GLboolean;
|
| 1779 | + |
1798 | 1780 | typedef unsigned int GLbitfield;
|
| 1781 | + |
1799 | 1782 | typedef void GLvoid;
|
| 1783 | + |
1800 | 1784 | typedef khronos_int8_t GLbyte;
|
| 1785 | + |
1801 | 1786 | typedef khronos_uint8_t GLubyte;
|
| 1787 | + |
1802 | 1788 | typedef khronos_int16_t GLshort;
|
| 1789 | + |
1803 | 1790 | typedef khronos_uint16_t GLushort;
|
| 1791 | + |
1804 | 1792 | typedef int GLint;
|
| 1793 | + |
1805 | 1794 | typedef unsigned int GLuint;
|
| 1795 | + |
1806 | 1796 | typedef khronos_int32_t GLclampx;
|
| 1797 | + |
1807 | 1798 | typedef int GLsizei;
|
| 1799 | + |
1808 | 1800 | typedef khronos_float_t GLfloat;
|
| 1801 | + |
1809 | 1802 | typedef khronos_float_t GLclampf;
|
| 1803 | + |
1810 | 1804 | typedef double GLdouble;
|
| 1805 | + |
1811 | 1806 | typedef double GLclampd;
|
| 1807 | + |
1812 | 1808 | typedef void *GLeglClientBufferEXT;
|
| 1809 | + |
1813 | 1810 | typedef void *GLeglImageOES;
|
| 1811 | + |
1814 | 1812 | typedef char GLchar;
|
| 1813 | + |
1815 | 1814 | typedef char GLcharARB;
|
| 1815 | + |
1816 | 1816 | #ifdef __APPLE__
|
1817 | 1817 | typedef void *GLhandleARB;
|
1818 | 1818 | #else
|
1819 | 1819 | typedef unsigned int GLhandleARB;
|
1820 | 1820 | #endif
|
| 1821 | + |
1821 | 1822 | typedef khronos_uint16_t GLhalf;
|
| 1823 | + |
1822 | 1824 | typedef khronos_uint16_t GLhalfARB;
|
| 1825 | + |
1823 | 1826 | typedef khronos_int32_t GLfixed;
|
| 1827 | + |
1824 | 1828 | #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060)
|
1825 | 1829 | typedef khronos_intptr_t GLintptr;
|
1826 | 1830 | #else
|
1827 | 1831 | typedef khronos_intptr_t GLintptr;
|
1828 | 1832 | #endif
|
| 1833 | + |
1829 | 1834 | #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060)
|
1830 | 1835 | typedef khronos_intptr_t GLintptrARB;
|
1831 | 1836 | #else
|
1832 | 1837 | typedef khronos_intptr_t GLintptrARB;
|
1833 | 1838 | #endif
|
| 1839 | + |
1834 | 1840 | #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060)
|
1835 | 1841 | typedef khronos_ssize_t GLsizeiptr;
|
1836 | 1842 | #else
|
1837 | 1843 | typedef khronos_ssize_t GLsizeiptr;
|
1838 | 1844 | #endif
|
| 1845 | + |
1839 | 1846 | #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060)
|
1840 | 1847 | typedef khronos_ssize_t GLsizeiptrARB;
|
1841 | 1848 | #else
|
1842 | 1849 | typedef khronos_ssize_t GLsizeiptrARB;
|
1843 | 1850 | #endif
|
| 1851 | + |
1844 | 1852 | typedef khronos_int64_t GLint64;
|
| 1853 | + |
1845 | 1854 | typedef khronos_int64_t GLint64EXT;
|
| 1855 | + |
1846 | 1856 | typedef khronos_uint64_t GLuint64;
|
| 1857 | + |
1847 | 1858 | typedef khronos_uint64_t GLuint64EXT;
|
| 1859 | + |
1848 | 1860 | typedef struct __GLsync *GLsync;
|
| 1861 | + |
1849 | 1862 | struct _cl_context;
|
| 1863 | + |
1850 | 1864 | struct _cl_event;
|
| 1865 | + |
1851 | 1866 | typedef void (GLAD_API_PTR *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
|
| 1867 | + |
1852 | 1868 | typedef void (GLAD_API_PTR *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
|
| 1869 | + |
1853 | 1870 | typedef void (GLAD_API_PTR *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
|
| 1871 | + |
1854 | 1872 | typedef void (GLAD_API_PTR *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,void *userParam);
|
| 1873 | + |
1855 | 1874 | typedef unsigned short GLhalfNV;
|
| 1875 | + |
1856 | 1876 | typedef GLintptr GLvdpauSurfaceNV;
|
| 1877 | + |
1857 | 1878 | typedef void (GLAD_API_PTR *GLVULKANPROCNV)(void);
|
1858 | 1879 |
|
1859 | 1880 |
|
| 1881 | + |
1860 | 1882 | #define GL_VERSION_1_0 1
|
1861 | 1883 | GLAD_API_CALL int GLAD_GL_VERSION_1_0;
|
1862 | 1884 | #define GL_VERSION_1_1 1
|
@@ -4172,9 +4194,6 @@ GLAD_API_CALL int gladLoadGL( GLADloadfunc load);
|
4172 | 4194 |
|
4173 | 4195 | /* Source */
|
4174 | 4196 | #ifdef GLAD_GL_IMPLEMENTATION
|
4175 |
| -/** |
4176 |
| - * SPDX-License-Identifier: (WTFPL OR CC0-1.0) AND Apache-2.0 |
4177 |
| - */ |
4178 | 4197 | #include <stdio.h>
|
4179 | 4198 | #include <stdlib.h>
|
4180 | 4199 | #include <string.h>
|
@@ -5788,9 +5807,9 @@ static int glad_gl_get_extensions( int version, const char **out_exts, unsigned
|
5788 | 5807 | #if GLAD_GL_IS_SOME_NEW_VERSION
|
5789 | 5808 | if(GLAD_VERSION_MAJOR(version) < 3) {
|
5790 | 5809 | #else
|
5791 |
| - GLAD_UNUSED(version); |
5792 |
| - GLAD_UNUSED(out_num_exts_i); |
5793 |
| - GLAD_UNUSED(out_exts_i); |
| 5810 | + (void) version; |
| 5811 | + (void) out_num_exts_i; |
| 5812 | + (void) out_exts_i; |
5794 | 5813 | #endif
|
5795 | 5814 | if (glad_glGetString == NULL) {
|
5796 | 5815 | return 0;
|
@@ -5978,3 +5997,6 @@ int gladLoadGL( GLADloadfunc load) {
|
5978 | 5997 |
|
5979 | 5998 | #endif /* GLAD_GL_IMPLEMENTATION */
|
5980 | 5999 |
|
| 6000 | + |
| 6001 | + |
| 6002 | +#endif // GLAD_GL |
0 commit comments