我在 iOS(iPhone 3gs 或更新版本)上使用矩形纹理时遇到问题
我正在尝试使用GL_TEXTURE_RECTANGLE
和/或GL_EXT_texture_rectangle
但 XCODE 自动完成无法识别它,我认为是因为未导入正确的头文件并引发undeclared identifier
错误。
也尝试过GL_ARB_texture_non_power_of_two
并GL_ARB_texture_rectangle
在这个问题中回答了OpenGL ES GL_TEXTURE_RECTANGLE但没有声明。
我用谷歌搜索并没有找到对它声明的头文件的引用,也没有找到文档示例项目中使用的头文件。
- 使用 xcode 4.2
这些是我目前正在导入的标题:
#import <OpenGLES/EAGL.h>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#import <OpenGLES/ES2/gl.h>
#import <OpenGLES/ES2/glext.h>
也尝试导入这些
#import <OpenGL/OpenGL.h> //file not found
#import <OpenGL.h> //file not found
#import <OpenGL/glu.h> //file not found