Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Function 'glDrawTexfOES' could not be resolved

I'm creating a native android project using eclipse. I'm using opengl es 1.1.

I get this error when using a function from the glext.h file

Function 'glDrawTexfOES' could not be resolved

I'm using a function from gl.h right before i call the glDrawTexfOES. I'm able to use macros defined in the glext.h such as GL_TEXTURE_CROP_RECT_OES, so i know the file is included all right.

looking at the glext.h file, i found the function declaration i want, which is in an #ifdef block (#ifdef GL_GLEXT_PROTOTYPES). I defined GL_GLEXT_PROTOTYPES immediately before including glext.h, and i still have the same problem. I went into glext.h and edited it, first by commenting the ifdef and endif lines surrounding the functions i want. i still got the same error as above. then i copied the function declaration and pasted it at the top of the glext.h file, and my project still says it can't resolve that function.

I know glext.h is deprecated, but i should still be able to use it

like image 579
iedoc Avatar asked Feb 03 '26 06:02

iedoc


1 Answers

I had this same issue, but then put this in my Android.mk file:

LOCAL_CFLAGS += -D GL_GLEXT_PROTOTYPES

http://grokbase.com/t/gg/android-ndk/11cxrckjmp/ndkr7-cant-see-gldrawtexioes

like image 68
mathieujofis Avatar answered Feb 05 '26 21:02

mathieujofis