VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/include/cr_extstring.h@ 21954

Last change on this file since 21954 was 21830, checked in by vboxsync, 16 years ago

crOpenGL: minor fix for gl_ext_draw_range_elements + remove hack from extensions string report

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.0 KB
Line 
1/* Copyright (c) 2001, Stanford University
2 * All rights reserved.
3 *
4 * See the file LICENSE.txt for information on redistributing this software.
5 */
6
7#ifndef CR_EXTSTRING_H
8#define CR_EXTSTRING_H
9
10#include "cr_version.h"
11
12/*
13 * This string is the list of OpenGL extensions which Chromium can understand
14 * (in the packer, unpacker, state-tracker, etc).
15 * In practice, this string will get intersected with what's reported by the
16 * rendering SPUs to reflect what we can really offer to client apps.
17 *
18 * Yes, we want static declarations here to avoid linking problems.
19 */
20static const char *crExtensions =
21#ifdef CR_ARB_depth_texture
22 "GL_ARB_depth_texture "
23#endif
24#ifdef CR_ARB_fragment_program
25 "GL_ARB_fragment_program "
26#endif
27#ifdef CR_ARB_imaging
28 "GL_ARB_imaging "
29#endif
30#ifdef CR_ARB_multisample
31 "GL_ARB_multisample "
32#endif
33#ifdef CR_ARB_multitexture
34 "GL_ARB_multitexture "
35#endif
36#ifdef CR_ARB_occlusion_query
37 "GL_ARB_occlusion_query "
38#endif
39#ifdef CR_ARB_point_parameters
40 "GL_ARB_point_parameters "
41#endif
42#ifdef CR_ARB_point_sprite
43 "GL_ARB_point_sprite "
44#endif
45#ifdef CR_ARB_shadow
46 "GL_ARB_shadow "
47#endif
48#ifdef CR_ARB_shadow_ambient
49 "GL_ARB_shadow_ambient "
50#endif
51#ifdef CR_ARB_texture_border_clamp
52 "GL_ARB_texture_border_clamp "
53#endif
54#ifdef CR_ARB_texture_compression
55 "GL_ARB_texture_compression "
56#endif
57#ifdef CR_ARB_texture_cube_map
58 "GL_ARB_texture_cube_map "
59#endif
60#ifdef CR_ARB_texture_env_add
61 "GL_ARB_texture_env_add "
62#endif
63#ifdef CR_ARB_texture_env_combine
64 "GL_ARB_texture_env_combine GL_EXT_texture_env_combine "
65#endif
66#ifdef CR_ARB_texture_env_crossbar
67 "GL_ARB_texture_env_crossbar "
68#endif
69#ifdef CR_ARB_texture_env_dot3
70 "GL_ARB_texture_env_dot3 GL_EXT_texture_env_dot3 "
71#endif
72#ifdef CR_ARB_texture_mirrored_repeat
73 "GL_ARB_texture_mirrored_repeat "
74#endif
75#ifdef CR_ARB_texture_non_power_of_two
76 "GL_ARB_texture_non_power_of_two "
77#endif
78#ifdef CR_ARB_transpose_matrix
79 "GL_ARB_transpose_matrix "
80#endif
81#ifdef CR_ARB_vertex_buffer_object
82 "GL_ARB_vertex_buffer_object "
83#endif
84#ifdef CR_ARB_vertex_program
85 "GL_ARB_vertex_program "
86#endif
87#ifdef CR_ARB_window_pos
88 "GL_ARB_window_pos "
89#endif
90#ifdef CR_EXT_blend_color
91 "GL_EXT_blend_color "
92#endif
93#ifdef CR_EXT_blend_minmax
94 "GL_EXT_blend_minmax "
95#endif
96#ifdef CR_EXT_blend_func_separate
97 "GL_EXT_blend_func_separate "
98#endif
99#ifdef CR_EXT_clip_volume_hint
100 "GL_EXT_clip_volume_hint "
101#endif
102#ifdef CR_EXT_blend_logic_op
103 "GL_EXT_blend_logic_op "
104#endif
105#ifdef CR_EXT_blend_subtract
106 "GL_EXT_blend_subtract "
107#endif
108#ifdef CR_EXT_texture_env_add
109 "GL_EXT_texture_env_add "
110#endif
111#ifdef CR_EXT_fog_coord
112 "GL_EXT_fog_coord "
113#endif
114#ifdef CR_EXT_multi_draw_arrays
115 "GL_EXT_multi_draw_arrays "
116#endif
117#ifdef CR_EXT_secondary_color
118 "GL_EXT_secondary_color "
119#endif
120#ifdef CR_EXT_separate_specular_color
121 "GL_EXT_separate_specular_color "
122#endif
123#ifdef CR_EXT_shadow_funcs
124 "GL_EXT_shadow_funcs "
125#endif
126#ifdef CR_EXT_stencil_wrap
127 "GL_EXT_stencil_wrap "
128#endif
129#ifdef CR_EXT_texture_cube_map
130 "GL_EXT_texture_cube_map "
131#endif
132#ifdef CR_EXT_texture_edge_clamp
133 "GL_EXT_texture_edge_clamp "
134#endif
135#ifdef CR_EXT_texture_filter_anisotropic
136 "GL_EXT_texture_filter_anisotropic "
137#endif
138#ifdef CR_EXT_texture_lod_bias
139 "GL_EXT_texture_lod_bias "
140#endif
141#ifdef CR_EXT_texture_object
142 "GL_EXT_texture_object "
143#endif
144#ifdef CR_EXT_texture3D
145 "GL_EXT_texture3D "
146#endif
147#ifdef CR_IBM_rasterpos_clip
148 "GL_IBM_rasterpos_clip "
149#endif
150#ifdef CR_NV_fog_distance
151 "GL_NV_fog_distance "
152#endif
153#ifdef CR_NV_fragment_program
154 "GL_NV_fragment_program "
155#endif
156#ifdef CR_NV_register_combiners
157 "GL_NV_register_combiners "
158#endif
159#ifdef CR_NV_register_combiners2
160 "GL_NV_register_combiners2 "
161#endif
162#ifdef CR_NV_texgen_reflection
163 "GL_NV_texgen_reflection "
164#endif
165#ifdef CR_NV_texture_rectangle
166 "GL_NV_texture_rectangle GL_EXT_texture_rectangle "
167#endif
168#ifdef CR_NV_vertex_program
169 "GL_NV_vertex_program "
170#endif
171#ifdef CR_NV_vertex_program1_1
172 "GL_NV_vertex_program1_1 "
173#endif
174#ifdef CR_NV_vertex_program2
175 "GL_NV_vertex_program2 "
176#endif
177#ifdef CR_SGIS_generate_mipmap
178 "GL_SGIS_generate_mipmap "
179#endif
180#ifdef CR_SGIS_texture_border_clamp
181 "GL_SGIS_texture_border_clamp "
182#endif
183#ifdef CR_SGIS_texture_edge_clamp
184 "GL_SGIS_texture_edge_clamp "
185#endif
186#ifdef CR_ARB_shading_language_100
187 "GL_ARB_shading_language_100 "
188#endif
189#ifdef CR_ARB_shader_objects
190 "GL_ARB_shader_objects "
191#endif
192#ifdef CR_ARB_vertex_shader
193 "GL_ARB_vertex_shader "
194#endif
195#ifdef CR_ARB_fragment_shader
196 "GL_ARB_fragment_shader "
197#endif
198#ifdef CR_EXT_texture_compression_s3tc
199 "GL_EXT_texture_compression_s3tc "
200#endif
201#ifdef CR_EXT_draw_range_elements
202 "GL_EXT_draw_range_elements"
203#endif
204 "";
205
206
207/*
208 * Extensions which are only supported if the render/readback SPU is
209 * on the app node (no packing/unpacking/state-tracking support).
210 */
211static const char *crAppOnlyExtensions =
212 "GL_NV_fence " \
213 "GL_NV_texture_env_combine4 " \
214 "GL_NV_texture_shader " \
215 "GL_NV_vertex_array_range "
216;
217
218
219/*
220 * Special extensions which are unique to Chromium.
221 * We typically append this to the result of glGetString(GL_EXTENSIONS).
222 */
223static const char *crChromiumExtensions =
224#ifdef GL_CR_state_parameter
225 "GL_CR_state_parameter "
226#endif
227#ifdef GL_CR_cursor_position
228 "GL_CR_cursor_position "
229#endif
230#ifdef GL_CR_bounding_box
231 "GL_CR_bounding_box "
232#endif
233#ifdef GL_CR_print_string
234 "GL_CR_print_string "
235#endif
236#ifdef GL_CR_tilesort_info
237 "GL_CR_tilesort_info "
238#endif
239#ifdef GL_CR_client_clear_control
240 "GL_CR_client_clear_control "
241#endif
242#ifdef GL_CR_synchronization
243 "GL_CR_synchronization "
244#endif
245#ifdef GL_CR_head_spu_name
246 "GL_CR_head_spu_name "
247#endif
248#ifdef GL_CR_performance_info
249 "GL_CR_performance_info "
250#endif
251#ifdef GL_CR_window_size
252 "GL_CR_window_size "
253#endif
254#ifdef GL_CR_tile_info
255 "GL_CR_tile_info "
256#endif
257#ifdef GL_CR_saveframe
258 "GL_CR_saveframe "
259#endif
260#ifdef GL_CR_readback_barrier_size
261 "GL_CR_readback_barrier_size "
262#endif
263#ifdef GL_CR_server_id_sharing
264 "GL_CR_server_id_sharing "
265#endif
266#ifdef GL_CR_server_matrix
267 "GL_CR_server_matrix "
268#endif
269#ifdef USE_DMX
270 "GL_CR_dmx "
271#endif
272 "";
273
274#endif /* CR_EXTSTRING_H */
275
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette