1 #!/usr/bin/env bash 2 3 # Print defined gl.* functions not in GL ES 1.1 or in 4 # (FIXME, none of these should be part of the ABI) 5 # GL_EXT_multi_draw_arrays 6 # GL_OES_EGL_image 7 8 # or in extensions that are part of the ES 1.1 extension pack. 9 # (see http://www.khronos.org/registry/gles/specs/1.1/opengles_spec_1_1_extension_pack.pdf) 10 11 FUNCS=$(nm -D --defined-only ${1-.libs/libGLESv1_CM.so.1} | grep -o 'T gl.*' | cut -c 3- | while read func; do 12 ( grep -q "^$func$" || echo $func ) <<EOF 13 glActiveTexture 14 glAlphaFunc 15 glAlphaFuncx 16 glBindBuffer 17 glBindTexture 18 glBlendFunc 19 glBufferData 20 glBufferSubData 21 glClear 22 glClearColor 23 glClearColorx 24 glClearDepthf 25 glClearDepthx 26 glClearStencil 27 glClientActiveTexture 28 glClipPlanef 29 glClipPlanex 30 glColor4f 31 glColor4ub 32 glColor4x 33 glColorMask 34 glColorPointer 35 glCompressedTexImage2D 36 glCompressedTexSubImage2D 37 glCopyTexImage2D 38 glCopyTexSubImage2D 39 glCullFace 40 glDeleteBuffers 41 glDeleteTextures 42 glDepthFunc 43 glDepthMask 44 glDepthRangef 45 glDepthRangex 46 glDisable 47 glDisableClientState 48 glDrawArrays 49 glDrawElements 50 glEGLImageTargetRenderbufferStorageOES 51 glEGLImageTargetTexture2DOES 52 glEnable 53 glEnableClientState 54 glFinish 55 glFlush 56 glFogf 57 glFogfv 58 glFogx 59 glFogxv 60 glFrontFace 61 glFrustumf 62 glFrustumx 63 glGenBuffers 64 glGenTextures 65 glGetBooleanv 66 glGetBufferParameteriv 67 glGetClipPlanef 68 glGetClipPlanex 69 glGetError 70 glGetFixedv 71 glGetFloatv 72 glGetIntegerv 73 glGetLightfv 74 glGetLightxv 75 glGetMaterialfv 76 glGetMaterialxv 77 glGetPointerv 78 glGetString 79 glGetTexEnvfv 80 glGetTexEnviv 81 glGetTexEnvxv 82 glGetTexParameterfv 83 glGetTexParameteriv 84 glGetTexParameterxv 85 glHint 86 glIsBuffer 87 glIsEnabled 88 glIsTexture 89 glLightf 90 glLightfv 91 glLightModelf 92 glLightModelfv 93 glLightModelx 94 glLightModelxv 95 glLightx 96 glLightxv 97 glLineWidth 98 glLineWidthx 99 glLoadIdentity 100 glLoadMatrixf 101 glLoadMatrixx 102 glLogicOp 103 glMaterialf 104 glMaterialfv 105 glMaterialx 106 glMaterialxv 107 glMatrixMode 108 glMultiDrawArraysEXT 109 glMultiDrawElementsEXT 110 glMultiTexCoord4f 111 glMultiTexCoord4x 112 glMultMatrixf 113 glMultMatrixx 114 glNormal3f 115 glNormal3x 116 glNormalPointer 117 glOrthof 118 glOrthox 119 glPixelStorei 120 glPointParameterf 121 glPointParameterfv 122 glPointParameterx 123 glPointParameterxv 124 glPointSize 125 glPointSizePointerOES 126 glPointSizex 127 glPolygonOffset 128 glPolygonOffsetx 129 glPopMatrix 130 glPushMatrix 131 glReadPixels 132 glRotatef 133 glRotatex 134 glSampleCoverage 135 glSampleCoveragex 136 glScalef 137 glScalex 138 glScissor 139 glShadeModel 140 glStencilFunc 141 glStencilMask 142 glStencilOp 143 glTexCoordPointer 144 glTexEnvf 145 glTexEnvfv 146 glTexEnvi 147 glTexEnviv 148 glTexEnvx 149 glTexEnvxv 150 glTexImage2D 151 glTexParameterf 152 glTexParameterfv 153 glTexParameteri 154 glTexParameteriv 155 glTexParameterx 156 glTexParameterxv 157 glTexSubImage2D 158 glTranslatef 159 glTranslatex 160 glVertexPointer 161 glViewport 162 EOF 163 done) 164 165 test ! -n "$FUNCS" || echo $FUNCS 166 test ! -n "$FUNCS" 167