1/*
2Copyright (c) 2012, Broadcom Europe Ltd
3All rights reserved.
4
5Redistribution and use in source and binary forms, with or without
6modification, are permitted provided that the following conditions are met:
7 * Redistributions of source code must retain the above copyright
8 notice, this list of conditions and the following disclaimer.
9 * Redistributions in binary form must reproduce the above copyright
10 notice, this list of conditions and the following disclaimer in the
11 documentation and/or other materials provided with the distribution.
12 * Neither the name of the copyright holder nor the
13 names of its contributors may be used to endorse or promote products
14 derived from this software without specific prior written permission.
15
16THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*/
27
28#ifndef KHRONOS_MANGLE_H
29#if defined KHRONOS_NAME_MANGLING || defined REMOTE_API_LOGGING || defined BCG_MULTI_THREADED
30
31/* EGL Functions */
32
33#undef eglGetError
34#undef eglGetDisplay
35#undef eglInitialize
36#undef eglTerminate
37#undef eglQueryString
38#undef eglGetConfigs
39#undef eglChooseConfig
40#undef eglGetConfigAttrib
41#undef eglCreateWindowSurface
42#undef eglCreatePbufferSurface
43#undef eglCreatePixmapSurface
44#undef eglDestroySurface
45#undef eglQuerySurface
46#undef eglBindAPI
47#undef eglQueryAPI
48#undef eglWaitClient
49#undef eglReleaseThread
50#undef eglCreatePbufferFromClientBuffer
51#undef eglSurfaceAttrib
52#undef eglBindTexImage
53#undef eglReleaseTexImage
54#undef eglSwapInterval
55#undef eglCreateContext
56#undef eglDestroyContext
57#undef eglMakeCurrent
58#undef eglGetCurrentContext
59#undef eglGetCurrentSurface
60#undef eglGetCurrentDisplay
61#undef eglQueryContext
62#undef eglWaitGL
63#undef eglWaitNative
64#undef eglSwapBuffers
65#undef eglCopyBuffers
66#undef eglGetProcAddress
67#undef eglClientWaitSyncKHR
68#undef eglCreateImageKHR
69#undef eglCreateSyncKHR
70#undef eglDestroyImageKHR
71#undef eglDestroySyncKHR
72#undef eglGetSyncAttribKHR
73#undef eglGetSyncAttribKHR
74#undef eglQueryProfilingDataNOK
75#undef eglSignalSyncKHR
76#undef eglLockSurfaceKHR
77#undef eglUnlockSurfaceKHR
78#undef glEGLImageTargetRenderbufferStorageOES
79#undef glEGLImageTargetTexture2DOES
80#undef eglAcquireGlobalImageBRCM
81#undef eglCreateCopyGlobalImageBRCM
82#undef eglCreateGlobalImageBRCM
83#undef eglReleaseGlobalImageBRCM
84#undef eglInitGlobalImageBRCM
85#undef eglTermGlobalImageBRCM
86
87/* OpenGL ES 1.1 and 2.0 functions */
88
89#undef glAlphaFunc
90#undef glClearColor
91#undef glClearDepthf
92#undef glClipPlanef
93#undef glColor4f
94#undef glDepthRangef
95#undef glFogf
96#undef glFogfv
97#undef glFrustumf
98#undef glGetClipPlanef
99#undef glGetFloatv
100#undef glGetLightfv
101#undef glGetMaterialfv
102#undef glGetTexEnvfv
103#undef glGetTexParameterfv
104#undef glLightModelf
105#undef glLightModelfv
106#undef glLightf
107#undef glLightfv
108#undef glLineWidth
109#undef glLoadMatrixf
110#undef glMaterialf
111#undef glMaterialfv
112#undef glMultMatrixf
113#undef glMultiTexCoord4f
114#undef glNormal3f
115#undef glOrthof
116#undef glPointParameterf
117#undef glPointParameterfv
118#undef glPointSize
119#undef glPolygonOffset
120#undef glRotatef
121#undef glScalef
122#undef glTexEnvf
123#undef glTexEnvfv
124#undef glTexParameterf
125#undef glTexParameterfv
126#undef glTranslatef
127
128#undef glActiveTexture
129#undef glAlphaFuncx
130#undef glBindBuffer
131#undef glBindTexture
132#undef glBlendFunc
133#undef glBlendColor
134#undef glBufferData
135#undef glBlendEquation
136#undef glBufferSubData
137#undef glClear
138#undef glClearColorx
139#undef glClearDepthx
140#undef glClearStencil
141#undef glClientActiveTexture
142#undef glClipPlanex
143#undef glColor4ub
144#undef glColor4x
145#undef glColorMask
146#undef glColorPointer
147#undef glCompressedTexImage2D
148#undef glCompressedTexSubImage2D
149#undef glCopyTexImage2D
150#undef glCopyTexSubImage2D
151#undef glCullFace
152#undef glDeleteBuffers
153#undef glDeleteTextures
154#undef glDepthFunc
155#undef glDepthMask
156#undef glDepthRangex
157#undef glDisable
158#undef glDisableClientState
159#undef glDrawArrays
160#undef glDrawElements
161#undef glEnable
162#undef glEnableClientState
163#undef glFinish
164#undef glFlush
165#undef glFogx
166#undef glFogxv
167#undef glFrontFace
168#undef glFrustumx
169#undef glGetBooleanv
170#undef glGetBufferParameteriv
171#undef glGetClipPlanex
172#undef glGenBuffers
173#undef glGenTextures
174#undef glGetError
175#undef glGetFixedv
176#undef glGetIntegerv
177#undef glGetLightxv
178#undef glGetMaterialxv
179#undef glGetPointerv
180#undef glGetString
181#undef glGetTexEnviv
182#undef glGetTexEnvxv
183#undef glGetTexParameteriv
184#undef glGetTexParameterxv
185#undef glHint
186#undef glIsBuffer
187#undef glIsEnabled
188#undef glIsTexture
189#undef glLightModelx
190#undef glLightModelxv
191#undef glLightx
192#undef glLightxv
193#undef glLineWidthx
194#undef glLoadIdentity
195#undef glLoadMatrixx
196#undef glLogicOp
197#undef glMaterialx
198#undef glMaterialxv
199#undef glMatrixMode
200#undef glMultMatrixx
201#undef glMultiTexCoord4x
202#undef glNormal3x
203#undef glNormalPointer
204#undef glOrthox
205#undef glPixelStorei
206#undef glPointParameterx
207#undef glPointParameterxv
208#undef glPointSizex
209#undef glPolygonOffsetx
210#undef glPopMatrix
211#undef glPushMatrix
212#undef glReadPixels
213#undef glRotatex
214#undef glSampleCoverage
215#undef glSampleCoveragex
216#undef glScalex
217#undef glScissor
218#undef glShadeModel
219#undef glStencilFunc
220#undef glStencilMask
221#undef glStencilOp
222#undef glTexCoordPointer
223#undef glTexEnvi
224#undef glTexEnvx
225#undef glTexEnviv
226#undef glTexEnvxv
227#undef glTexImage2D
228#undef glTexParameteri
229#undef glTexParameterx
230#undef glTexParameteriv
231#undef glTexParameterxv
232#undef glTexSubImage2D
233#undef glTranslatex
234#undef glVertexPointer
235#undef glViewport
236
237#undef glAttachShader
238#undef glBindAttribLocation
239#undef glBlendEquationSeparate
240#undef glBlendFuncSeparate
241#undef glCreateProgram
242#undef glCreateShader
243#undef glDeleteProgram
244#undef glDeleteShader
245#undef glDetachShader
246#undef glDisableVertexAttribArray
247#undef glEnableVertexAttribArray
248#undef glGetActiveAttrib
249#undef glGetActiveUniform
250#undef glGetAttachedShaders
251#undef glGetAttribLocation
252#undef glGetProgramiv
253#undef glGetProgramInfoLog
254#undef glGetUniformfv
255#undef glGetUniformiv
256#undef glGetUniformLocation
257#undef glGetVertexAttribfv
258#undef glGetVertexAttribiv
259#undef glGetVertexAttribPointerv
260#undef glIsProgram
261#undef glIsShader
262#undef glLinkProgram
263#undef glStencilFuncSeparate
264#undef glStencilMaskSeparate
265#undef glStencilOpSeparate
266#undef glUniform1i
267#undef glUniform2i
268#undef glUniform3i
269#undef glUniform4i
270#undef glUniform1f
271#undef glUniform2f
272#undef glUniform3f
273#undef glUniform4f
274#undef glUniform1iv
275#undef glUniform2iv
276#undef glUniform3iv
277#undef glUniform4iv
278#undef glUniform1fv
279#undef glUniform2fv
280#undef glUniform3fv
281#undef glUniform4fv
282#undef glUniformMatrix2fv
283#undef glUniformMatrix3fv
284#undef glUniformMatrix4fv
285#undef glUseProgram
286#undef glValidateProgram
287#undef glVertexAttrib1f
288#undef glVertexAttrib2f
289#undef glVertexAttrib3f
290#undef glVertexAttrib4f
291#undef glVertexAttrib1fv
292#undef glVertexAttrib2fv
293#undef glVertexAttrib3fv
294#undef glVertexAttrib4fv
295#undef glVertexAttribPointer
296#undef glCompileShader
297#undef glGetShaderiv
298#undef glGetShaderInfoLog
299#undef glGetShaderSource
300#undef glReleaseShaderCompiler
301#undef glShaderSource
302#undef glShaderBinary
303#undef glGetShaderPrecisionFormat
304#undef glIsRenderbuffer
305#undef glBindRenderbuffer
306#undef glDeleteRenderbuffers
307#undef glGenRenderbuffers
308#undef glRenderbufferStorage
309#undef glGetRenderbufferParameteriv
310#undef glIsFramebuffer
311#undef glBindFramebuffer
312#undef glDeleteFramebuffers
313#undef glGenFramebuffers
314#undef glCheckFramebufferStatus
315#undef glFramebufferTexture2D
316#undef glFramebufferRenderbuffer
317#undef glGetFramebufferAttachmentParameteriv
318#undef glGenerateMipmap
319
320#undef glPointSizePointerOES
321#undef glDiscardFramebufferEXT
322#undef glInsertEventMarkerEXT
323#undef glPushGroupMarkerEXT
324#undef glPopGroupMarkerEXT
325
326#undef glDrawTexfOES
327#undef glDrawTexfvOES
328#undef glDrawTexiOES
329#undef glDrawTexivOES
330#undef glDrawTexsOES
331#undef glDrawTexsvOES
332#undef glDrawTexxOES
333#undef glDrawTexxvOES
334
335#undef glIsRenderbufferOES
336#undef glBindRenderbufferOES
337#undef glDeleteRenderbuffersOES
338#undef glGenRenderbuffersOES
339#undef glRenderbufferStorageOES
340#undef glGetRenderbufferParameterivOES
341#undef glIsFramebufferOES
342#undef glBindFramebufferOES
343#undef glDeleteFramebuffersOES
344#undef glGenFramebuffersOES
345#undef glCheckFramebufferStatusOES
346#undef glFramebufferRenderbufferOES
347#undef glFramebufferTexture2DOES
348#undef glGetFramebufferAttachmentParameterivOES
349#undef glGenerateMipmapOES
350
351/* Internal functions */
352#undef egl_surface_create
353#undef egl_surface_from_vg_image
354#undef egl_surface_term
355#undef egl_surface_set_attrib
356#undef egl_context_create
357#undef egl_context_term
358
359#endif
360
361#if defined KHRONOS_NAME_MANGLING || defined BCG_MULTI_THREADED
362
363/* OpenVG functions */
364
365#undef vgCreateEGLImageTargetKHR
366
367#undef vgGetError
368#undef vgFlush
369#undef vgFinish
370#undef vgSetf
371#undef vgSeti
372#undef vgSetfv
373#undef vgSetiv
374#undef vgGetf
375#undef vgGeti
376#undef vgGetVectorSize
377#undef vgGetfv
378#undef vgGetiv
379#undef vgSetParameterf
380#undef vgSetParameteri
381#undef vgSetParameterfv
382#undef vgSetParameteriv
383#undef vgGetParameterf
384#undef vgGetParameteri
385#undef vgGetParameterVectorSize
386#undef vgGetParameterfv
387#undef vgGetParameteriv
388#undef vgLoadIdentity
389#undef vgLoadMatrix
390#undef vgGetMatrix
391#undef vgMultMatrix
392#undef vgTranslate
393#undef vgScale
394#undef vgShear
395#undef vgRotate
396#undef vgMask
397#undef vgRenderToMask
398#undef vgCreateMaskLayer
399#undef vgDestroyMaskLayer
400#undef vgFillMaskLayer
401#undef vgCopyMask
402#undef vgClear
403#undef vgCreatePath
404#undef vgClearPath
405#undef vgDestroyPath
406#undef vgRemovePathCapabilities
407#undef vgGetPathCapabilities
408#undef vgAppendPath
409#undef vgAppendPathData
410#undef vgModifyPathCoords
411#undef vgTransformPath
412#undef vgInterpolatePath
413#undef vgPathLength
414#undef vgPointAlongPath
415#undef vgPathBounds
416#undef vgPathTransformedBounds
417#undef vgDrawPath
418#undef vgCreatePaint
419#undef vgDestroyPaint
420#undef vgSetPaint
421#undef vgGetPaint
422#undef vgSetColor
423#undef vgGetColor
424#undef vgPaintPattern
425#undef vgCreateImage
426#undef vgDestroyImage
427#undef vgClearImage
428#undef vgImageSubData
429#undef vgGetImageSubData
430#undef vgChildImage
431#undef vgGetParent
432#undef vgCopyImage
433#undef vgDrawImage
434#undef vgSetPixels
435#undef vgWritePixels
436#undef vgGetPixels
437#undef vgReadPixels
438#undef vgCopyPixels
439#undef vgCreateFont
440#undef vgDestroyFont
441#undef vgSetGlyphToPath
442#undef vgSetGlyphToImage
443#undef vgClearGlyph
444#undef vgDrawGlyph
445#undef vgDrawGlyphs
446#undef vgColorMatrix
447#undef vgConvolve
448#undef vgSeparableConvolve
449#undef vgGaussianBlur
450#undef vgLookup
451#undef vgLookupSingle
452#undef vgHardwareQuery
453#undef vgGetString
454#undef vgCreateEGLImageTargetKHR
455
456#undef vguArc
457#undef vguComputeWarpQuadToQuad
458#undef vguComputeWarpQuadToSquare
459#undef vguComputeWarpSquareToQuad
460#undef vguEllipse
461#undef vguLine
462#undef vguPolygon
463#undef vguRect
464#undef vguRoundRect
465
466#endif //KHRONOS_NAME_MANGLING
467#endif //KHRONOS_MANGLED_H
468