GLEW: The OpenGL Extension Wrangler Library

Latest Release: 1.12.0
Download
Usage
Building
Installation
Source Generation
Credits & Copyright
Change Log
GitHub
Project Page
Bug Tracker
Last Update: 26-01-15
| # The OpenGL Extension Wrangler Library ## Change Log 1.12.0 [26-01-15] New extensions: GL_EXT_polygon_offset_clamp GL_EXT_post_depth_coverage GL_EXT_raster_multisample GL_EXT_sparse_texture2 GL_EXT_texture_filter_minmax GL_NV_conservative_raster GL_NV_fill_rectangle GL_NV_fragment_coverage_to_color GL_NV_fragment_shader_interlock GL_NV_framebuffer_mixed_samples GL_NV_geometry_shader_passthrough GL_NV_internalformat_sample_query GL_NV_sample_locations GL_NV_sample_mask_override_coverage GL_NV_shader_atomic_fp16_vector GL_NV_uniform_buffer_unified_memory GL_NV_viewport_array2 Bug fixes 1.11.0 [08-11-14] New features: Support for OpenGL 4.5 New extensions: GL_AMD_gcn_shader GL_AMD_gpu_shader_int64 GL_AMD_occlusion_query_event GL_AMD_shader_atomic_counter_ops GL_AMD_shader_stencil_value_export GL_AMD_transform_feedback4 GL_ARB_ES3_1_compatibility GL_ARB_clip_control GL_ARB_conditional_render_inverted GL_ARB_cull_distance GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_get_texture_sub_image GL_ARB_pipeline_statistics_query GL_ARB_shader_texture_image_samples GL_ARB_sparse_buffer GL_ARB_texture_barrier GL_ARB_transform_feedback_overflow_query GL_EXT_debug_label GL_EXT_shader_image_load_formatted GL_EXT_shader_integer_mix GL_INTEL_fragment_shader_ordering GL_INTEL_performance_query GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_context_flush_control GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_KHR_texture_compression_astc_hdr GL_NV_bindless_multi_draw_indirect_count GL_NV_shader_atomic_int64 GL_NV_shader_thread_group GL_NV_shader_thread_shuffle GL_REGAL_proc_address GLX_ARB_context_flush_control GLX_EXT_stereo_tree GLX_MESA_query_renderer GLX_NV_copy_buffer GLX_NV_delay_before_swap WGL_ARB_context_flush_control WGL_NV_delay_before_swap Bug fixes 1.10.0 [07-22-13] New features: Support for OpenGL 4.4 New extensions: GL_AMD_interleaved_elements GL_AMD_shader_trinary_minmax GL_AMD_sparse_texture GL_ANGLE_depth_texture GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_pack_reverse_row_order GL_ANGLE_program_binary GL_ANGLE_texture_compression_dxt1 GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_timer_query GL_ANGLE_translated_shader_source GL_ARB_bindless_texture GL_ARB_buffer_storage GL_ARB_clear_texture GL_ARB_compute_variable_group_size GL_ARB_enhanced_layouts GL_ARB_indirect_parameters GL_ARB_multi_bind GL_ARB_query_buffer_object GL_ARB_seamless_cubemap_per_texture GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_sparse_texture GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_stencil8 GL_ARB_vertex_type_10f_11f_11f_rev GL_INTEL_map_texture GL_NVX_conditional_render GL_NV_bindless_multi_draw_indirect GL_NV_blend_equation_advanced GL_NV_compute_program5 GL_NV_deep_texture3D GL_NV_draw_texture GL_NV_shader_atomic_counters GL_NV_shader_storage_buffer_object GL_REGAL_ES1_0_compatibility GL_REGAL_ES1_1_compatibility GL_REGAL_enable GLX_EXT_buffer_age WGL_ARB_robustness_application_isolation WGL_ARB_robustness_share_group_isolation Bug fixes 1.9.0 [08-06-12] New features: Support for OpenGL 4.3 - specification, overview. New extensions: GL_ARB_ES3_compatibility GL_ARB_clear_buffer_object GL_ARB_compute_shader GL_ARB_copy_image GL_ARB_explicit_uniform_location GL_ARB_fragment_layer_viewport GL_ARB_framebuffer_no_attachments GL_ARB_internalformat_query2 GL_ARB_multi_draw_indirect GL_ARB_program_interface_query GL_ARB_robust_buffer_access_behavior GL_ARB_robustness_application_isolation GL_ARB_robustness_share_group_isolation GL_ARB_shader_image_size GL_ARB_shader_storage_buffer_object GL_ARB_stencil_texturing GL_ARB_texture_buffer_range GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_texture_view GL_ARB_vertex_attrib_binding GL_EXT_debug_marker GL_KHR_debug GL_REGAL_error_string GL_REGAL_extension_query GL_REGAL_log GLX_ARB_robustness_application_isolation GLX_ARB_robustness_share_group_isolation GLX_EXT_create_context_es_profile WGL_EXT_create_context_es_profile Bug fixes: Not using GLU library for Makefile builds. 1.8.0 [07-17-12] New extensions: GL_AMD_pinned_memory GL_AMD_query_buffer_object GL_AMD_stencil_operation_extended GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_NV_bindless_texture GL_NV_shader_atomic_float GLX_EXT_swap_control_tear WGL_EXT_swap_control_tear WGL_NV_DX_interop2 Bug fixes: MS Visual Studio 2010 projects added GLX_NV_video_out replaces GLX_NV_video_output ANSI C prototype for glewInit Improved CentOS build support Improved GL_ARB_gpu_shader_fp64 support ARB_texture_compression_bptc and ARB_copy_buffer constants Linux needs to define GLEW_STATIC for static library builds Custom code generation problem resolved GLEWAPIENTRY added to glew.h for calling convention customization Correction for glPathStencilDepthOffsetNV Resolve OSX gcc warnings Added build support for NetBSD 1.7.0 [08-26-11] New features: Support for OpenGL 4.2 New extensions: GL_AMD_multi_draw_indirect GL_ARB_base_instance GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shader_atomic_counters GL_ARB_shader_image_load_store GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_ARB_transform_feedback_instanced GL_EXT_framebuffer_multisample_blit_scaled GL_NV_path_rendering GL_NV_path_rendering GLX_MESA_swap_control Bug fixes: const qualifiers for GL 1.4 MultiDrawArrays, MultiDrawElements Add glGetGraphicsResetStatusARB to GL_ARB_robustness Remove EXT suffix from GL_KTX_buffer_region entry points Solaris needs inttypes.h Add ERROR_INVALID_VERSION_ARB and ERROR_INVALID_PROFILE_ARB to WGL_ARB_create_context Add GLX_MESA_swap_control Set -install_name for OSX Add 64-bit darwin build option (SYSTEM=darwin_x86-64) Add GL_NV_path_rendering 1.6.0 [04-27-11] New extensions: GL_AMD_blend_minmax_factor GL_AMD_sample_positions GL_EXT_x11_sync_object GL_NV_texture_multisample GL_NV_video_capture GLX_NV_video_capture WGL_NV_DX_interop WGL_NV_video_capture Bug fixes: Define GLEW_NO_GLU for no glu dependency. mx suffix for GLEW MX libraries, build both libraries by default. Cygwin build improvements Soname of GLEWmx shared libraries Query GL extension string only once GLX_OML_sync_control no longer requires C99 glDraw*InstancedARB moved from GL_ARB_draw_instanced to GL_ARB_instanced_arrays glFramebufferTextureLayerEXT moved from GL_EXT_geometry_shader4 to GL_EXT_texture_array Fixes for BSD build 1.5.8 [01-31-11] New extensions: GL_AMD_depth_clamp_separate GL_EXT_texture_sRGB_decode Bug fixes: Borland C++ fix for __int64 GL_DOUBLE_MATNxM enumerants for OpenGL 4.0 Correction to glGetTransformFeedbackVarying Correction to glSecondaryColorPointer Corrections to glGetVertexAttribPointerv and glGetShaderSource Switched code repository from svn to git 1.5.7 [11-03-10] New extension: GL_NVX_gpu_memory_info Bug fixes: Improved mingw32 build support Improved cygwin build support glGetPointervEXT fix Add GLEW_VERSION_1_2_1 1.5.6 [09-07-10] New features: Support for OpenGL 4.1 New extensions: GL_ARB_ES2_compatibility GL_ARB_cl_event GL_ARB_debug_output GL_ARB_get_program_binary GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_precision GL_ARB_shader_stencil_export GL_ARB_vertex_attrib_64bit GL_ARB_viewport_array GLX_ARB_create_context_robustness GLX_EXT_create_context_es2_profile WGL_ARB_create_context_robustness WGL_EXT_create_context_es2_profile 1.5.5 [07-13-10] New extensions: GL_AMD_debug_output GL_AMD_name_gen_delete GL_AMD_transform_feedback3_lines_triangles GL_NV_multisample_coverage GL_NV_vdpau_interop GLX_AMD_gpu_association GLX_NV_multisample_coverage WGL_NV_multisample_coverage Bug fixes: Compilation issue with GLX_SGI_video_sync OpenGL 4.0 double-precision uniform functions added Constness of glPointParameterfvARB and glPointParameterfvEXT Added glVertexAttribDivisor Compilation issue with Nvidia GLX headers 1.5.4 [04-21-10] New features: Support for OpenGL 3.3 Support for OpenGL 4.0 New extensions: GL_AMD_conservative_depth GL_ARB_blend_func_extended GL_ARB_draw_indirect GL_ARB_explicit_attrib_location GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_occlusion_query2 GL_ARB_sampler_objects GL_ARB_shader_bit_encoding GL_ARB_shader_subroutine GL_ARB_shading_language_include GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_compression_bptc GL_ARB_texture_rgb10_a2ui GL_ARB_texture_swizzle GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_shader_image_load_store GL_EXT_vertex_attrib_64bit GL_NV_gpu_program5 GL_NV_gpu_program_fp64 GL_NV_gpu_shader5 GL_NV_tessellation_program5 GL_NV_vertex_attrib_integer_64bit GLX_ARB_vertex_buffer_object Bug fixes: Parameter constness fix for glPointParameteriv and glPointParameterfv 1.5.3 [02-28-10] New extensions: GLX_INTEL_swap_event GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export Bug fixes: Correct version detection for GL 3.1 and 3.2 Missing 3.1 enumerants Add glew.pc 1.5.2 [12-31-09] New features: Support for OpenGL 3.1 Support for OpenGL 3.2 New extensions: GL_AMD_draw_buffers_blend GL_AMD_performance_monitor GL_AMD_texture_texture4 GL_AMD_vertex_shader_tessellator GL_APPLE_aux_depth_stencil GL_APPLE_object_purgeable GL_APPLE_rgb_422 GL_APPLE_row_bytes GL_APPLE_vertex_program_evaluators GL_ARB_compatibility GL_ARB_copy_buffer GL_ARB_depth_clamp GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_seamless_cube_map GL_ARB_shader_texture_lod GL_ARB_sync GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ATI_meminfo GL_EXT_provoking_vertex GL_EXT_separate_shader_objects GL_EXT_texture_snorm GL_NV_copy_image GL_NV_parameter_buffer_object2 GL_NV_shader_buffer_load GL_NV_texture_barrier GL_NV_transform_feedback2 GL_NV_vertex_buffer_unified_memory WGL_AMD_gpu_association WGL_ARB_create_context_profile WGL_NV_copy_image GLX_ARB_create_context_profile GLX_EXT_swap_control GLX_NV_copy_image Bug fixes: DOS line endings for windows .zip archives only. glTransformFeedbackVaryings arguments. Resource leak in glewinfo and visualinfo tools. WIN32_LEAN_AND_MEAN preprocessor pollution. Fixed version detection for GLEW_VERSION_2_1 and GLEW_VERSION_3_0. MesaGLUT glut.h GLAPIENTRY dependency. glFramebufferTextureLayer correction. OSX compiler warnings resolved. Cygwin linking to opengl32 by default, rather than X11 OpenGL. SnowLeopard (OSX 10.6) gl.h detection. Use $(STRIP) consistently. 1.5.1 [11-03-08] New features: Support for OpenGL 3.0 New extensions: GL_ARB_depth_buffer_float GL_ARB_draw_instance, GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_geometry_shader4 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_vertex_array_object GL_EXT_direct_state_access GL_EXT_texture_swizzle GL_EXT_transform_feedback GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_NV_explicit_multisample GL_NV_present_video GL_SGIS_point_line_texgen GL_SGIX_convolution_accuracy WGL_ARB_create_context WGL_ARB_framebuffer_sRGB WGL_NV_present_video WGL_NV_swap_group WGL_NV_video_output GLX_ARB_create_context GLX_ARB_framebuffer_sRGB GLX_NV_present_video GLX_NV_swap_group GLX_NV_video_output Bug fixes: Licensing issues with documentation Problems with long long and _MSC_VER on MINGW Incorrect parameter for glGetUniformLocation glewGetExtension fails on last entry Incomplete GL_NV_texture_shader tokens Scripting problems on Cygwin Incorrect definition for GLint on OS X 1.5.0 [12-27-07] New features: Licensing change (BSD, Mesa 3-D, Khronos) Switch to using registry on www.opengl.org Support for major and minor version strings New extensions: GL_APPLE_flush_buffer_range GL_GREMEDY_frame_terminator GLX_EXT_texture_from_pixmap Bug fixes: Incorrent 64-bit type definitions Do not strip static library on install Missing tokens in GL_ATI_fragment_shader and WGL_{ARB,EXT}_make_current_read Missing tokens in GL_VERSION_2_1 Missing functions in GL_VERSION_1_4 Incorrect parameter type for glXCopyContext 1.4.0 [04-27-07] New features: Extension variables are declared const to avoid possible corruption of their values New extensions: GL_NV_depth_range_unclamped Bug fixes: Incorrect tokens in GL_NV_transform_feedback and GL_NV_framebuffer_multisample_coverage Incorrect function names in GL_EXT_gpu_program_parameters Missing tokens in GL_EXT_framebuffer_multisample GLEW_MX initialization problem for WGL_{ARB,EXT}_extensions_string 1.3.6 [03-04-07] New extensions: GL_ATI_shader_texture_lod GL_EXT_gpu_program_parameters GL_NV_geometry_shader4 WGL_NV_gpu_affinity GLX_SGIX_hyperpipe Bug fixes: Missing include guards in glxew.h Makefile and install problems for Cygwin builds Install problem for Linux AMD64 builds Incorrent token in GL_ATI_texture_compression_3dc Missing tokens from GL_ATIX_point_sprites 1.3.5 [11-21-06] New features: Support for core OpenGL 2.1 Debug support for glewIsSupported New extensions: GL_EXT_bindable_uniform GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_shader4 GL_EXT_packed_float GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc GL_EXT_texture_integer GL_EXT_texture_shared_exponent GL_EXT_timer_query GL_NV_depth_buffer_float GL_NV_fragment_program4 GL_NV_framebuffer_multisample_coverage GL_NV_geometry_program4 GL_NV_gpu_program4 GL_NV_parameter_buffer_object GL_NV_transform_feedback GL_NV_vertex_program4 GL_OES_byte_coordinates GL_OES_compressed_paletted_texture GL_OES_read_format GL_OES_single_precision WGL_EXT_pixel_format_packed_float WGL_EXT_framebuffer_sRGB GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB Bug fixes: Wrong GLXContext definition on Solaris Makefile problem for parallel builds 1.3.4 [03-04-06] New extensions: GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_MESAX_texture_stack WGL_3DL_stereo_control Bug fixes: glBlendEquation missing from GL_ARB_imaging Wrong APIENTRY definition for Cygwin Incorrect OS X OpenGL types Unix 64-bit installation patch 1.3.3 [05-16-05] New feature: Code generation option to split source into multiple files Bug fixes: OpenGL 2.0 core initialization problems Wrong value for token GL_SHADER_TYPE Missing tokens in GL_ATI_fragment_shader Missing entry points in GL_ARB_transpose_matrix 1.3.2 [03-16-05] New extension: GL_APPLE_pixel_buffer Bug fixes: Missing OpenGL 2.0 entry points Missing tokens in GL_SGIX_shadow MinGW makefile problem Check for incorrect OpenGL version string on SiS hardware Documentation update to meet the HTML 4.01 Transitional specification 1.3.1 [02-02-05] New features: Consistent Unix and Windows versioning New extensions: GL_EXT_framebuffer_object GL_ARB_pixel_buffer_object Bug fixes: Missing OpenGL 2.0 tokens Incorrect typedefs (GLhandleARB and GLhalf) Borland compiler problems 1.3.0 [01-04-05] New features: Support for core OpenGL 2.0 `glewIsSupported` provides efficient string-based extension checks Custom code generation from a list of extensions Makefile changes New extensions: WGL_ATI_render_texture_rectangle Bug fixes: Incorrect function signature in OpenGL 1.5 core 1.2.5 [12-06-04] New extensions: GL_ATI_texture_compression_3dc GL_EXT_Cg_shader GL_EXT_draw_range_elements GL_KTX_buffer_region Bug fixes: OpenGL version detection bug Problems with wxWindows and MinGW compilation `visualinfo` compilation problem with GLEW_MX specified Wrong token name in OpenGL 1.5 core Support for FreeBSD 1.2.4 [09-06-04] Added ARB_draw_buffers and ARB_texture_rectangle Fixed bug in ARB_shader_objects Replaced `wglinfo` with `visualinfo` 1.2.3 [06-10-04] Added GL_NV_fragment_program2, GL_NV_fragment_program_option, GL_NV_vertex_program2_option, GL_NV_vertex_program3 Bug fix in GL_ARB_vertex_blend 1.2.2 [05-08-04] Added GL_EXT_pixel_buffer_object, removed GL_NV_element_array Fixed GLEW_MX problems Bug fix in GL_EXT_texture_rectangle and `wglinfo` 1.2.1 [03-18-04] Bug fix in OpenGL version query (early release of 1.2.0 contained this bug) Bug fix in GL_ARB_shader_objects and temporary bug fix in GL_ARB_vertex_shader Added flags on GDI support and multisampling to `wglinfo` 1.2.0 [02-19-04] Added full OpenGL 1.5 support Added support for multiple rendering contexts with different capabilities Added command line flags to `glewinfo` for selecting displays and visuals Added GLX_SGIS_multisample, GLX_SUN_video_resize, and GL_SUN_read_video_pixels Added MinGW/MSYS support Bug fixes in GL_ARB_shader_objects and the OS X build 1.1.4 [12-15-03] Added GL_APPLE_float_pixels, GL_APPLE_texture_range, GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp, GLX_ATI_pixel_format_float, and GLX_ATI_render_texture Bug fixes in GL_ATI_map_object_buffer and GL_ATI_fragment_shader 1.1.3 [10-28-03] Added Solaris and Darwin support Added GL_ARB_fragment_shader, GL_ARB_shader_objects, and GL_ARB_vertex_shader Fixed bug in GL_WIN_swap_hint Removed `glewinfo`'s dependency on `GLUT` 1.1.2 [09-15-03] Removed dependency on WGL_{ARB,EXT}_extensions_string to make GLEW run on Matrox cards Added glewGetString for querying the GLEW version string 1.1.1 [08-11-03] Added GLX_NV_float_buffer, GL_ARB_shading_language_100, and GL_ARB_texture_non_power_of_two Fixed bug in GL_ARB_vertex_buffer_object Minor updates in documentation 1.1.0 [07-08-03] Added automatic code generation Added almost every extension in the registry Added separate namespace Added Irix support Updated documentation 1.0.7 [06-29-03] Added GL_EXT_depth_bounds_test Fixed typos 1.0.6 [05-05-03] Added ARB_vertex_buffer_object and NV_half_float Updated `wglinfo` Temporary Linux bug fixes (problems with SDL and MESA) 1.0.5 [02-17-03] Bug fixes Added `wglinfo` Updated documentation 1.0.4 [02-02-03] Added NV_texture_expand_normal Added mingw support Updated documentation 1.0.3 [01-09-03] Cleaned up ATI extensions Changed function prototypes to match glext.h Added EXT_texture3D Fixed typos in ATI_vertex_attrib_array_object and ATI_draw_buffers 1.0.2 [12-21-02] Added list of supported extensions to documentation Added NV_half_float and NV_texgen_emboss 1.0.1 [12-17-02] Bug fixes Added glewGetExtension 1.0.0 [12-12-02] Initial release