This patch updates the Khronos headers with updated version. This mostly brings definitions (constants and types) related to a bunch of new extensions. Since each extension is optional and must be actively probed at runtime by the client program, this doesn't change the NDK ABI at all. Moreover, which extension is available depends on the specific hardware, not the Android system version. + Define GLchar and GLvoid and adjust function signatures to use them instead of 'char' and 'void' List of new extensions supported: GLES 1.x -------- GL_OES_vertex_array_object GL_OES_EGL_image_external GL_APPLE_texture_2D_limited_npot GL_EXT_blend_minmax GL_EXT_discard_framebuffer GL_EXT_multi_draw_arrays GL_EXT_read_format_bgra GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_lod_bias GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_IMG_texture_env_enhanced_fixed_function GL_IMG_user_clip_plane GL_IMG_multisampled_render_to_texture GL_NV_fence GL_QCOM_driver_control GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_perfmon_global_mode GL_QCOM_writeonly_rendering GL_QCOM_tiled_rendering GLES 2.0 -------- GL_OES_element_index_uint GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_array_object GL_OES_EGL_image_external GL_AMD_program_binary_Z400 GL_EXT_blend_minmax GL_EXT_discard_framebuffer GL_EXT_multi_draw_arrays GL_EXT_read_format_bgra GL_EXT_texture_format_BGRA8888 GL_EXT_texture_compression_dxt1 GL_IMG_program_binary GL_IMG_read_format GL_IMG_shader_binary GL_IMG_texture_compression_pvrtc GL_IMG_multisampled_render_to_texture GL_NV_coverage_sample GL_NV_depth_nonlinear GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_writeonly_rendering GL_QCOM_tiled_rendering EGL: ---- EGL_ANDROID_recordable EGL_NV_system_time Change-Id: I26ae2aeb499539017cc35d0271f13bcfbf6f8a65
31 lines
909 B
C
31 lines
909 B
C
#ifndef __gl2platform_h_
|
|
#define __gl2platform_h_
|
|
|
|
/* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */
|
|
|
|
/*
|
|
* This document is licensed under the SGI Free Software B License Version
|
|
* 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
|
|
*/
|
|
|
|
/* Platform-specific types and definitions for OpenGL ES 2.X gl2.h
|
|
*
|
|
* Adopters may modify khrplatform.h and this file to suit their platform.
|
|
* You are encouraged to submit all modifications to the Khronos group so that
|
|
* they can be included in future versions of this file. Please submit changes
|
|
* by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
|
|
* by filing a bug against product "OpenGL-ES" component "Registry".
|
|
*/
|
|
|
|
#include <KHR/khrplatform.h>
|
|
|
|
#ifndef GL_APICALL
|
|
#define GL_APICALL KHRONOS_APICALL
|
|
#endif
|
|
|
|
#ifndef GL_APIENTRY
|
|
#define GL_APIENTRY KHRONOS_APIENTRY
|
|
#endif
|
|
|
|
#endif /* __gl2platform_h_ */
|