OpenGL在Android系统。什么是配置? [英] OpenGL in Android. What is Configuration?

查看:156
本文介绍了OpenGL在Android系统。什么是配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习Android中的OpenGL编程。我写道,在屏幕上显示一个立方体的基本程序,但它仅显示黑屏。任何人能告诉我什么是Eclipse的基本配置的OpenGL?

解决方案

我建议你的项目比较的众多例子之一包含SDK。

有一个基本的三角形渲染器可以在这里找到:

<$p$p><$c$c>%SDK%/samples/android-9/ApiDemos/src/com/example/android/apis/graphics/TriangleActivity.java %SDK%/样本/安卓-9 / ApiDemos / src目录/ COM /例子/安卓/原料药/图形/ TriangleRenderer.java

另外,请记住,如果你正在使用模拟器,它仍然不支持OpenGL ES 2.0。你需要专门的工具。

I am learning OpenGL programming in Android. I wrote a basic program that shows a cube on the screen, but it is displaying a black screen only. Can any one tell me what is the basic configuration of Eclipse for OpenGL?

解决方案

I suggest comparing your project to one of the many examples included with the SDK.

A basic triangle renderer can be found here:

%SDK%/samples/android-9/ApiDemos/src/com/example/android/apis/graphics/TriangleActivity.java
%SDK%/samples/android-9/ApiDemos/src/com/example/android/apis/graphics/TriangleRenderer.java

Also, keep in mind, if you are using the emulator, that it still does not support OpenGL ES 2.0. You need a device for that.

这篇关于OpenGL在Android系统。什么是配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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