我可以使用谷氨酸与Android NDK谷氨酸、可以使用、NDK、Android

由网友(聚散不由我)分享简介:我似乎无法包括的 glu.h 的在我的Andr​​oid NDK的项目。我想将现有的C ++ code到NDK,它使用谷氨酸在少数地方(特别是 gluErrorString )。难道OpenGLES没有谷氨酸?有一个端口可以使用吗?如果不是我大概可以删除调用像 gluPerspective 等等,但是我该怎么办 glu...

我似乎无法包括的 glu.h 的在我的Andr​​oid NDK的项目。

我想将现有的C ++ code到NDK,它使用谷氨酸在少数地方(特别是 gluErrorString )。

难道OpenGLES没有谷氨酸?

有一个端口可以使用吗?

如果不是我大概可以删除调用像 gluPerspective 等等,但是我该怎么办 gluErrorString

解决方案   

难道OpenGL ES的没有谷氨酸?

没有,没有。看看这个:平台的OpenGL包括收集。在Android的只有下列头:

的OpenGL ES 1.1:

 的#include< GLES / gl.h>
#包括< GLES / glext.h>
 
Android JNI 与 NDK到底是什么

OpenGL ES 2.0的:

 的#include< GLES2 / gl2.h>
#包括< GLES2 / gl2ext.h>
 

  

有一个端口可以使用吗?

是的,有谷氨酸为Android的部分端口 - GLU ES (它支持 gluErrorString gluPerspective 和许多其他功能):

  

GLU 1.3 partitial端口(libutil中和libtess仅部件)的   的OpenGL ES 1.x的(CM - 通用配置文件)。以上

     

该端口支持:

        二次曲面:gluNewQuadric(),gluDeleteQuadric(),gluQuadricCallback()   gluQuadricNormals(),gluQuadricTexture(),gluQuadricOrientation(),   gluQuadricDrawStyle(),gluCylinder(),gluDisk(),gluPartialDisk(),   gluSphere()。   注册地:gluGetString(),gluCheckExtension()    gluErrorString()。   在投影矩阵操作:gluOrtho2D()   gluPerspective(),gluLookAt(),gluProject(),gluUnProject(),   gluUnProject4(),gluPickMatrix()。 2D贴图:gluScaleImage()   gluBuild2DMipmapLevels(),gluBuild2DMipmaps()。    Tesselation的:   gluBeginPolygon(),gluDeleteTess(),gluEndPolygon(),   gluGetTessProperty(),gluNewTess(),gluNextContour(),   gluTessBeginContour(),gluTessBeginPolygon(),gluTessCallback(),   gluTessEndContour(),gluTessEndPolygon(),gluTessNormal(),   gluTessProperty(),gluTessVertex()。   

I can't seem to include glu.h in my Android NDK project.

I'm trying to port existing C++ code to NDK, and it uses glu in a few places (notably gluErrorString).

Does OpenGLES not have glu?

Is there a port I can use?

If not I can probably remove the calls to things like gluPerspective and so on, but what do I do about gluErrorString?

解决方案

Does OpenGL ES not have glu?

No, it doesn't. Look at this: Platform OpenGL Includes collection. Under Android there are only the following headers:

OpenGL ES 1.1:

#include <GLES/gl.h>
#include <GLES/glext.h>

OpenGL ES 2.0:

#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>

Is there a port I can use?

Yes, there is a partial port of GLU for Android - GLU ES (it supports gluErrorString, gluPerspective and numerous other functions):

GLU 1.3 partitial port (libutil and libtess components only) for OpenGL ES 1.x (CM - Common profile) and above.

This port supports:

Quadrics: gluNewQuadric(), gluDeleteQuadric(), gluQuadricCallback(), gluQuadricNormals(), gluQuadricTexture(), gluQuadricOrientation(), gluQuadricDrawStyle(), gluCylinder(), gluDisk(), gluPartialDisk(), gluSphere(). Registry: gluGetString(), gluCheckExtension(), gluErrorString(). Projection matrix manipulation: gluOrtho2D(), gluPerspective(), gluLookAt(), gluProject(), gluUnProject(), gluUnProject4(), gluPickMatrix(). 2D Mipmaps: gluScaleImage(), gluBuild2DMipmapLevels(), gluBuild2DMipmaps(). Tesselation: gluBeginPolygon(), gluDeleteTess(), gluEndPolygon(), gluGetTessProperty(), gluNewTess(), gluNextContour(), gluTessBeginContour(), gluTessBeginPolygon(), gluTessCallback(), gluTessEndContour(), gluTessEndPolygon(), gluTessNormal(), gluTessProperty(), gluTessVertex().

阅读全文

相关推荐

最新文章