OLD | NEW |
1 #ifndef __gl2ext_h_ | 1 #ifndef __gl2ext_h_ |
2 #define __gl2ext_h_ | 2 #define __gl2ext_h_ |
3 | 3 |
4 /* $Revision: 19436 $ on $Date:: 2012-10-10 10:37:04 -0700 #$ */ | 4 /* $Revision: 19436 $ on $Date:: 2012-10-10 10:37:04 -0700 #$ */ |
5 | 5 |
6 #include <GLES2/gl2chromium.h> | 6 #include <GLES2/gl2chromium.h> |
7 | 7 |
8 #ifdef __cplusplus | 8 #ifdef __cplusplus |
9 extern "C" { | 9 extern "C" { |
10 #endif | 10 #endif |
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1798 | 1798 |
1799 /*------------------------------------------------------------------------* | 1799 /*------------------------------------------------------------------------* |
1800 * VIV extension tokens | 1800 * VIV extension tokens |
1801 *------------------------------------------------------------------------*/ | 1801 *------------------------------------------------------------------------*/ |
1802 | 1802 |
1803 /* GL_VIV_shader_binary */ | 1803 /* GL_VIV_shader_binary */ |
1804 #ifndef GL_VIV_shader_binary | 1804 #ifndef GL_VIV_shader_binary |
1805 #define GL_VIV_shader_binary 1 | 1805 #define GL_VIV_shader_binary 1 |
1806 #endif | 1806 #endif |
1807 | 1807 |
1808 /* GL_EXT_framebuffer_multisample */ | |
1809 #ifndef GL_EXT_framebuffer_multisample | |
1810 #define GL_EXT_framebuffer_multisample 1 | |
1811 | |
1812 #ifndef GL_DRAW_FRAMEBUFFER_BINDING | |
1813 #define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6 | |
1814 #endif | |
1815 #ifndef GL_DRAW_FRAMEBUFFER_BINDING_EXT | |
1816 #define GL_DRAW_FRAMEBUFFER_BINDING_EXT GL_DRAW_FRAMEBUFFER_BINDING | |
1817 #endif | |
1818 #ifndef GL_FRAMEBUFFER_BINDING | |
1819 #define GL_FRAMEBUFFER_BINDING 0x8CA6 | |
1820 #endif | |
1821 #ifndef GL_FRAMEBUFFER_BINDING_EXT | |
1822 #define GL_FRAMEBUFFER_BINDING_EXT GL_FRAMEBUFFER_BINDING | |
1823 #endif | |
1824 #ifndef GL_RENDERBUFFER_BINDING | |
1825 #define GL_RENDERBUFFER_BINDING 0x8CA7 | |
1826 #endif | |
1827 #ifndef GL_RENDERBUFFER_BINDING_EXT | |
1828 #define GL_RENDERBUFFER_BINDING_EXT GL_RENDERBUFFER_BINDING | |
1829 #endif | |
1830 #ifndef GL_READ_FRAMEBUFFER | |
1831 #define GL_READ_FRAMEBUFFER 0x8CA8 | |
1832 #endif | |
1833 #ifndef GL_READ_FRAMEBUFFER_EXT | |
1834 #define GL_READ_FRAMEBUFFER_EXT GL_READ_FRAMEBUFFER | |
1835 #endif | |
1836 #ifndef GL_DRAW_FRAMEBUFFER | |
1837 #define GL_DRAW_FRAMEBUFFER 0x8CA9 | |
1838 #endif | |
1839 #ifndef GL_DRAW_FRAMEBUFFER_EXT | |
1840 #define GL_DRAW_FRAMEBUFFER_EXT GL_DRAW_FRAMEBUFFER | |
1841 #endif | |
1842 #ifndef GL_READ_FRAMEBUFFER_BINDING | |
1843 #define GL_READ_FRAMEBUFFER_BINDING 0x8CAA | |
1844 #endif | |
1845 #ifndef GL_READ_FRAMEBUFFER_BINDING_EXT | |
1846 #define GL_READ_FRAMEBUFFER_BINDING_EXT GL_READ_FRAMEBUFFER_BINDING | |
1847 #endif | |
1848 #ifndef GL_RENDERBUFFER_SAMPLES | |
1849 #define GL_RENDERBUFFER_SAMPLES 0x8CAB | |
1850 #endif | |
1851 #ifndef GL_RENDERBUFFER_SAMPLES_EXT | |
1852 #define GL_RENDERBUFFER_SAMPLES_EXT GL_RENDERBUFFER_SAMPLES | |
1853 #endif | |
1854 #ifndef GL_MAX_SAMPLES | |
1855 #define GL_MAX_SAMPLES 0x8D57 | |
1856 #endif | |
1857 #ifndef GL_MAX_SAMPLES_EXT | |
1858 #define GL_MAX_SAMPLES_EXT GL_MAX_SAMPLES | |
1859 #endif | |
1860 #ifndef GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE | |
1861 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56 | |
1862 #endif | |
1863 #ifndef GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT | |
1864 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT GL_FRAMEBUFFER_INCOMPLETE_MULT
ISAMPLE | |
1865 #endif | |
1866 | |
1867 #if 0 // Defined in GL_EXT_multisampled_render_to_texture | |
1868 #ifdef GL_GLEXT_PROTOTYPES | |
1869 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenum target,
GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); | |
1870 #endif | |
1871 typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum t
arget, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); | |
1872 #endif | |
1873 #endif | |
1874 | |
1875 #ifndef GL_EXT_framebuffer_blit | |
1876 #define GL_EXT_framebuffer_blit 1 | |
1877 #ifdef GL_GLEXT_PROTOTYPES | |
1878 GL_APICALL void GL_APIENTRY glBlitFramebufferEXT (GLint srcX0, GLint srcY0, GLin
t srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitf
ield mask, GLenum filter); | |
1879 #endif | |
1880 typedef void (GL_APIENTRYP PFNGLBLITFRAMEBUFFEREXTPROC) (GLint srcX0, GLint srcY
0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1,
GLbitfield mask, GLenum filter); | |
1881 #endif | |
1882 | |
1883 /* GL_CHROMIUM_map_sub */ | |
1884 #ifndef GL_CHROMIUM_map_sub | |
1885 #define GL_CHROMIUM_map_sub 1 | |
1886 #ifndef GL_READ_ONLY | |
1887 #define GL_READ_ONLY 0x88B8 | |
1888 #endif | |
1889 #ifndef GL_WRITE_ONLY | |
1890 #define GL_WRITE_ONLY 0x88B9 | |
1891 #endif | |
1892 #ifdef GL_GLEXT_PROTOTYPES | |
1893 GL_APICALL void* GL_APIENTRY glMapBufferSubDataCHROMIUM (GLuint target, GLintptr
offset, GLsizeiptr size, GLenum access); | |
1894 GL_APICALL void GL_APIENTRY glUnmapBufferSubDataCHROMIUM (const void* mem); | |
1895 GL_APICALL void* GL_APIENTRY glMapTexSubImage2DCHROMIUM (GLenum target, GLint le
vel, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format,
GLenum type, GLenum access); | |
1896 GL_APICALL void GL_APIENTRY glUnmapTexSubImage2DCHROMIUM (const void* mem); | |
1897 #endif | |
1898 typedef void* (GL_APIENTRYP PFNGLMAPBUFFERSUBDATACHROMIUM) (GLuint target, GLint
ptr offset, GLsizeiptr size, GLenum access); | |
1899 typedef void (GL_APIENTRYP PFNGLUNMAPBUFFERSUBDATACHROMIUM) (const void* mem); | |
1900 typedef void* (GL_APIENTRYP PFNGLMAPTEXSUBIMAGE2DCHROMIUM) (GLenum target, GLint
level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLenum access); | |
1901 typedef void (GL_APIENTRYP PFNGLUNMAPTEXSUBIMAGE2DCHROMIUM) (const void* mem); | |
1902 #endif | |
1903 | |
1904 /* GL_CHROMIUM_resize */ | |
1905 #ifndef GL_CHROMIUM_resize | |
1906 #define GL_CHROMIUM_resize 1 | |
1907 #ifdef GL_GLEXT_PROTOTYPES | |
1908 GL_APICALL void GL_APIENTRY glResizeCHROMIUM (GLuint width, GLuint height); | |
1909 #endif | |
1910 typedef void (GL_APIENTRYP PFNGLRESIZECHROMIUM) (GLuint width, GLuint height); | |
1911 #endif | |
1912 | |
1913 /* GL_CHROMIUM_request_extension */ | |
1914 /* | |
1915 * This extension allows other extensions to be turned on at run time. | |
1916 * | |
1917 * glGetRequestableExtensionsCHROMIUM returns a space-separated and | |
1918 * null-terminated string containing all of the extension names that | |
1919 * can be successfully requested on the current hardware. This may | |
1920 * include the names of extensions that have already been enabled. | |
1921 * | |
1922 * glRequestExtensionCHROMIUM requests that the given extension be | |
1923 * enabled. Call glGetString(GL_EXTENSIONS) to find out whether the | |
1924 * extension request succeeded. | |
1925 */ | |
1926 #ifndef GL_CHROMIUM_request_extension | |
1927 #define GL_CHROMIUM_request_extension 1 | |
1928 #ifdef GL_GLEXT_PROTOTYPES | |
1929 GL_APICALL const GLchar* GL_APIENTRY glGetRequestableExtensionsCHROMIUM (void); | |
1930 GL_APICALL void GL_APIENTRY glRequestExtensionCHROMIUM (const GLchar *extension)
; | |
1931 #endif | |
1932 typedef const GLchar* (GL_APIENTRYP PFNGLGETREQUESTABLEEXTENSIONSCHROMIUM) (void
); | |
1933 typedef void (GL_APIENTRYP PFNGLREQUESTEXTENSIONCHROMIUM) (const GLchar *extensi
on); | |
1934 #endif | |
1935 | |
1936 /* GL_CHROMIUM_rate_limit_offscreen_context */ | |
1937 /* | |
1938 * This extension will block if the calling context has gotten more than two | |
1939 * glRateLimit calls ahead of the GPU process. This keeps the client in sync | |
1940 * with the GPU without having to call swapbuffers, which has potentially | |
1941 * undesirable side effects. | |
1942 */ | |
1943 #ifndef GL_CHROMIUM_rate_limit_offscreen_context | |
1944 #define GL_CHROMIUM_rate_limit_offscreen_context 1 | |
1945 #ifdef GL_GLEXT_PROTOTYPES | |
1946 GL_APICALL void GL_APIENTRY glRateLimitOffscreenContextCHROMIUM (void); | |
1947 #endif | |
1948 typedef void (GL_APIENTRYP PFNGLRATELIMITOFFSCREENCONTEXTCHROMIUM) (); | |
1949 #endif | |
1950 | |
1951 /* GL_CHROMIUM_get_multiple */ | |
1952 /* | |
1953 * This extension provides functions for quering multiple GL state with a single | |
1954 * call. | |
1955 */ | |
1956 #ifndef GL_CHROMIUM_get_multiple | |
1957 #define GL_CHROMIUM_get_multiple 1 | |
1958 #ifdef GL_GLEXT_PROTOTYPES | |
1959 GL_APICALL void GL_APIENTRY glGetMultipleIntegervCHROMIUM (const GLenum* pnames,
GLuint count, GLint* results, GLsizeiptr size); | |
1960 GL_APICALL void GL_APIENTRY glGetProgramInfoCHROMIUM (GLuint program, GLsizei bu
fsize, GLsizei* size, void* info); | |
1961 #endif | |
1962 typedef void (GL_APIENTRYP PFNGLGETMULTIPLEINTEGERVCHROMIUM) (); | |
1963 typedef void (GL_APIENTRYP PFNGLGETPROGRAMINFOCHROMIUM) (); | |
1964 #endif | |
1965 | |
1966 /* GL_CHROMIUM_flipy */ | |
1967 /* | |
1968 * This extension provides GL_UNPACK_FLIP_Y_CHROMIUM as a parameter to | |
1969 * glPixelStorei. When true images submitted to glTexImage2D and glTexSubImage2D | |
1970 * are flipped vertically. | |
1971 */ | |
1972 #ifndef GL_CHROMIUM_flipy | |
1973 #define GL_CHROMIUM_flipy 1 | |
1974 #define GL_UNPACK_FLIP_Y_CHROMIUM 0x9240 | |
1975 #endif | |
1976 | |
1977 /* GL_CHROMIUM_texture_compression_dxt3 */ | |
1978 #ifndef GL_CHROMIUM_texture_compression_dxt3 | |
1979 #define GL_CHROMIUM_texture_compression_dxt3 1 | |
1980 #define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2 | |
1981 #endif | |
1982 | |
1983 /* GL_CHROMIUM_texture_compression_dxt5 */ | |
1984 #ifndef GL_CHROMIUM_texture_compression_dxt5 | |
1985 #define GL_CHROMIUM_texture_compression_dxt5 1 | |
1986 #define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3 | |
1987 #endif | |
1988 | |
1989 /* GL_CHROMIUM_enable_feature */ | |
1990 #ifndef GL_CHROMIUM_enable_feature | |
1991 #define GL_CHROMIUM_enable_feature 1 | |
1992 #ifdef GL_GLEXT_PROTOTYPES | |
1993 GL_APICALL GLboolean GL_APIENTRY glEnableFeatureCHROMIUM (const GLchar *feature)
; | |
1994 #endif | |
1995 typedef void (GL_APIENTRYP PFNGLENABLEFEATURECHROMIUM) (const GLchar *feature); | |
1996 #endif | |
1997 | |
1998 /* GL_CHROMIUM_post_sub_buffer */ | |
1999 /* This extension is modeled after EGL_NV_post_sub_buffer and | |
2000 * GLX_MESA_copy_sub_buffer. It's like a SwapBuffers, but it pushes a region | |
2001 * of the back buffer to the front buffer. | |
2002 */ | |
2003 #ifndef GL_CHROMIUM_post_sub_buffer | |
2004 #define GL_CHROMIUM_post_sub_buffer 1 | |
2005 #ifdef GL_GLEXT_PROTOTYPES | |
2006 GL_APICALL void GL_APIENTRY glPostSubBufferCHROMIUM (GLint x, GLint y, GLint wid
th, GLint height); | |
2007 #endif | |
2008 typedef void (GL_APIENTRYP PFNGLPOSTSUBBUFFERCHROMIUM) (GLint x, GLint y, GLint
width, GLint height); | |
2009 #endif | |
2010 | |
2011 /* GL_CHROMIUM_front_buffer_cached */ | |
2012 /* This extension implies that there is a cache of the front buffer of the | |
2013 * surface supporting this extension (e.g. on OSX the front buffer | |
2014 * is often backed by an IOSurface). Hence we do not need to redraw | |
2015 * (via a SwapBuffers) in order to display the last frame. | |
2016 */ | |
2017 #ifndef GL_CHROMIUM_front_buffer_cached | |
2018 #define GL_CHROMIUM_front_buffer_cached 1 | |
2019 #endif | |
2020 | |
2021 /* GL_CHROMIUM_gpu_memory_manager */ | |
2022 /* This extension provides a mechanism for indicating to the implementation | |
2023 which textures may be discarded by the client based on the recommendations | |
2024 of the implementation's memory allocation changed callback (e.g, compositor | |
2025 tiles), and which texture will not be discarded (e.g, WebGL textures). */ | |
2026 #ifndef GL_CHROMIUM_gpu_memory_manager | |
2027 #define GL_CHROMIUM_gpu_memory_manager 1 | |
2028 #define GL_TEXTURE_POOL_CHROMIUM 0x6000 | |
2029 #define GL_TEXTURE_POOL_MANAGED_CHROMIUM 0x6001 | |
2030 #define GL_TEXTURE_POOL_UNMANAGED_CHROMIUM 0x6002 | |
2031 #endif | |
2032 | |
2033 /* GL_ARB_robustness */ | |
2034 /* This extension is subsetted for the moment, incorporating only the | |
2035 * enums necessary to describe the reasons that we might encounter for | |
2036 * losing the context. The entry point querying the reset status is | |
2037 * not yet incorporated; to do so, a spec will be needed of a GLES2 | |
2038 * subset of GL_ARB_robustness. | |
2039 */ | |
2040 #ifndef GL_ARB_robustness | |
2041 #define GL_ARB_robustness 1 | |
2042 #ifndef GL_GUILTY_CONTEXT_RESET_ARB | |
2043 #define GL_GUILTY_CONTEXT_RESET_ARB 0x8253 | |
2044 #endif | |
2045 #ifndef GL_INNOCENT_CONTEXT_RESET_ARB | |
2046 #define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254 | |
2047 #endif | |
2048 #ifndef GL_UNKNOWN_CONTEXT_RESET_ARB | |
2049 #define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255 | |
2050 #endif | |
2051 #endif | |
2052 | |
2053 /* GL_ARB_texture_rectangle */ | |
2054 /* Exposes only the subset necessary to support GL_CHROMIUM_iosurface. | |
2055 */ | |
2056 #ifndef GL_ARB_texture_rectangle | |
2057 #define GL_ARB_texture_rectangle 1 | |
2058 #ifndef GL_TEXTURE_RECTANGLE_ARB | |
2059 #define GL_TEXTURE_RECTANGLE_ARB 0x84F5 | |
2060 #endif | |
2061 #ifndef GL_TEXTURE_BINDING_RECTANGLE_ARB | |
2062 #define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84F6 | |
2063 #endif | |
2064 #ifndef GL_SAMPLER_2D_RECT_ARB | |
2065 #define GL_SAMPLER_2D_RECT_ARB 0x8B63 | |
2066 #endif | |
2067 #endif | |
2068 | |
2069 /* GL_CHROMIUM_iosurface */ | |
2070 /* Exposes the Mac OS-specfic CGLTexImageIOSurface2D entry point as a | |
2071 * Chromium extension in the cross-platform API. Binds the IOSurface with | |
2072 * the given ID (an IOSurfaceID) to the texture bound to the given target. | |
2073 * To avoid needing to expose extraneous enums, assumes internal format | |
2074 * RGBA, format BGRA, and type UNSIGNED_INT_8_8_8_8_REV. | |
2075 */ | |
2076 #ifndef GL_CHROMIUM_iosurface | |
2077 #define GL_CHROMIUM_iosurface 1 | |
2078 #ifdef GL_GLEXT_PROTOTYPES | |
2079 GL_APICALL void GL_APIENTRY glTexImageIOSurface2DCHROMIUM (GLenum target, GLsize
i width, GLsizei height, GLuint ioSurfaceId, GLuint plane); | |
2080 #endif | |
2081 typedef void (GL_APIENTRYP PFNGLTEXIMAGEIOSURFACE2DCHROMIUM) (GLenum target, GLs
izei width, GLsizei height, GLuint ioSurfaceId, GLuint plane); | |
2082 #endif | |
2083 | |
2084 /* GL_CHROMIUM_copy_texture */ | |
2085 #ifndef GL_CHROMIUM_copy_texture | |
2086 #ifndef GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM | |
2087 #define GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM 0x9241 | |
2088 #endif | |
2089 #ifndef GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM | |
2090 #define GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM 0x9242 | |
2091 #endif | |
2092 #ifndef GL_UNPACK_COLORSPACE_CONVERSION_CHROMIUM | |
2093 #define GL_UNPACK_COLORSPACE_CONVERSION_CHROMIUM 0x9243 | |
2094 #endif | |
2095 #ifdef GL_GLEXT_PROTOTYPES | |
2096 GL_APICALL void GL_APIENTRY glCopyTextureCHROMIUM (GLenum target, GLenum source_
id, GLenum dest_id, GLint level, GLint internal_format); | |
2097 #endif | |
2098 typedef void (GL_APIENTRYP PFNGLCOPYTEXTURECHROMIUM) (GLenum target, GLenum sour
ce_id, GLenum dest_id, GLint level, GLint internal_format); | |
2099 #endif | |
2100 | |
2101 /* GL_CHROMIUM_command_buffer_query */ | |
2102 /* Exposes GL_CHROMIUM_command_buffer_query. | |
2103 */ | |
2104 #ifndef GL_CHROMIUM_command_buffer_query | |
2105 #define GL_CHROMIUM_command_buffer_query 1 | |
2106 // TODO(gman): Get official numbers for these constants. | |
2107 #define GL_COMMANDS_ISSUED_CHROMIUM 0x84F2 | |
2108 #endif | |
2109 | |
2110 /* GL_CHROMIUM_get_error_query */ | |
2111 /* Exposes GL_CHROMIUM_get_error_query. | |
2112 */ | |
2113 #ifndef GL_CHROMIUM_get_error_query | |
2114 #define GL_CHROMIUM_get_error_query 1 | |
2115 // TODO(gman): Get official numbers for these constants. | |
2116 #define GL_GET_ERROR_QUERY_CHROMIUM 0x84F3 | |
2117 #endif | |
2118 | |
2119 /* GL_CHROMIUM_command_buffer_latency_query */ | |
2120 #ifndef GL_CHROMIUM_command_buffer_latency_query | |
2121 #define GL_CHROMIUM_command_buffer_latency_query 1 | |
2122 // TODO: Get official numbers for these constants. | |
2123 #define GL_LATENCY_QUERY_CHROMIUM 0x84F4 | |
2124 #endif | |
2125 | |
2126 /* GL_CHROMIUM_texture_mailbox */ | |
2127 #ifndef GL_CHROMIUM_texture_mailbox | |
2128 #define GL_CHROMIUM_texture_mailbox 1 | |
2129 #define GL_MAILBOX_SIZE_CHROMIUM 64 | |
2130 #ifdef GL_GLEXT_PROTOTYPES | |
2131 GL_APICALL void GL_APIENTRY glGenMailboxCHROMIUM (GLbyte* mailbox); | |
2132 GL_APICALL void GL_APIENTRY glProduceTextureCHROMIUM (GLenum target, const GLbyt
e* mailbox); | |
2133 GL_APICALL void GL_APIENTRY glConsumeTextureCHROMIUM (GLenum target, const GLby
te* mailbox); | |
2134 #endif | |
2135 typedef void (GL_APIENTRYP PFNGLGENMAILBOXCHROMIUM) (GLbyte* mailbox); | |
2136 typedef void (GL_APIENTRYP PFNGLPRODUCETEXTURECHROMIUM) (GLenum target, const GL
byte* mailbox); | |
2137 typedef void (GL_APIENTRYP PFNGLCONSUMETEXTURECHROMIUM) (GLenum target, const G
Lbyte* mailbox); | |
2138 #endif | |
2139 | |
2140 /* GL_CHROMIUM_bind_uniform_location */ | |
2141 #ifndef GL_CHROMIUM_bind_uniform_location | |
2142 #define GL_CHROMIUM_bind_uniform_location 1 | |
2143 | |
2144 #ifdef GL_GLEXT_PROTOTYPES | |
2145 GL_APICALL void GL_APIENTRY glBindUniformLocationCHROMIUM (GLuint program, GLint
location, const GLchar* name); | |
2146 #endif | |
2147 typedef void (GL_APIENTRYP PFNGLBINDUNIFORMLOCATIONCHROMIUM) (GLuint program, GL
int location, const GLchar* name); | |
2148 #endif | |
2149 | |
2150 /* GL_CHROMIUM_texture_from_image */ | |
2151 #ifndef GL_CHROMIUM_texture_from_image | |
2152 #define GL_CHROMIUM_texture_from_image 1 | |
2153 #ifdef GL_GLEXT_PROTOTYPES | |
2154 GL_APICALL void GL_APIENTRY glBindTexImage2DCHROMIUM (GLenum target, GLint image
Id); | |
2155 GL_APICALL void GL_APIENTRY glReleaseTexImage2DCHROMIUM (GLenum target, GLint im
ageId); | |
2156 #endif | |
2157 typedef void (GL_APIENTRYP PFNGLBINDTEXIMAGE2DCHROMIUM) (GLenum target, GLint im
ageId); | |
2158 typedef void (GL_APIENTRYP PFNGLRELEASETEXIMAGE2DCHROMIUM) (GLenum target, GLint
imageId); | |
2159 #endif | |
2160 | |
2161 /* GL_CHROMIUM_pixel_transfer_buffer_object */ | |
2162 #ifndef GL_CHROMIUM_pixel_transfer_buffer_object | |
2163 #define GL_CHROMIUM_pixel_transfer_buffer_object 1 | |
2164 // TODO(reveman): Get official numbers for these constants. | |
2165 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM 0x88EC | |
2166 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x88EF | |
2167 #endif | |
2168 | |
2169 /* GL_CHROMIUM_async_pixel_transfers */ | |
2170 #ifndef GL_CHROMIUM_async_pixel_transfers | |
2171 #define GL_CHROMIUM_async_pixel_transfers 1 | |
2172 // TODO: Get official numbers for these constants. | |
2173 #define GL_ASYNC_PIXEL_TRANSFERS_COMPLETED_CHROMIUM 0x84F5 | |
2174 #endif | |
2175 | |
2176 /* GL_CHROMIUM_lose_context */ | |
2177 #ifndef GL_CHROMIUM_lose_context | |
2178 #define GL_CHROMIUM_lose_context 1 | |
2179 #ifdef GL_GLEXT_PROTOTYPES | |
2180 GL_APICALL void GL_APIENTRY glLoseContextCHROMIUM (GLenum current, GLenum other)
; | |
2181 #endif | |
2182 typedef void (GL_APIENTRYP PFNGLLOSECONTEXTCHROMIUM) (GLenum current, GLenum oth
er); | |
2183 #endif | |
2184 | |
2185 #ifdef __cplusplus | 1808 #ifdef __cplusplus |
2186 } | 1809 } |
2187 #endif | 1810 #endif |
2188 | 1811 |
| 1812 #include <GLES2/gl2extchromium.h> |
| 1813 |
2189 #endif /* __gl2ext_h_ */ | 1814 #endif /* __gl2ext_h_ */ |
OLD | NEW |