功能'glDrawTexfOES“无法解析 [英] Function 'glDrawTexfOES' could not be resolved

查看:422
本文介绍了功能'glDrawTexfOES“无法解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建使用Eclipse的一个原生Android项目。我使用的OpenGL ES 1.1。

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

我从glext.h文件中使用函数时出现此错误

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

Function 'glDrawTexfOES' could not be resolved

我使用的函数从gl.h好吧,我叫glDrawTexfOES之前。我能够使用在glext.h如GL_TEXTURE_CROP_RECT_OES定义的宏,所以我知道文件包含的所有权利。

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.

在看glext.h文件,我发现函数声明,我想,这是在#ifdef来块(的#ifdef GL_GLEXT_PROTOTYPES )。我定义GL_GLEXT_PROTOTYPES立刻包括glext.h之前,我仍然有同样的问题。我走进glext.h和编辑它,首先通过评论围绕我想要的功能和ifdef和ENDIF线。我仍然得到了同样的错误如上。然后我复制的函数声明,贴在glext.h文件的顶部,和我的项目仍然表示,它无法解析的功能。

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.

我知道glext.h是德precated,但我仍然应该能够使用它

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

推荐答案

我有同样的问题,但后来把这个在我的Andr​​oid.mk文件:

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

LOCAL_CFLAGS += -D GL_GLEXT_PROTOTYPES

<一个href="http://grokbase.com/t/gg/android-ndk/11cxrckjmp/ndkr7-cant-see-gldrawtexioes">http://grokbase.com/t/gg/android-ndk/11cxrckjmp/ndkr7-cant-see-gldrawtexioes

这篇关于功能'glDrawTexfOES“无法解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆