VirtualBox

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

Last change on this file since 25155 was 22284, checked in by vboxsync, 15 years ago

crOpenGL: add compiled vertex array support

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