简体   繁体   English

如何在 linux 和 Android 中使用 OpenGL-ES 2.0

[英]How to use OpenGL-ES 2.0 in linux and Android

HI你好

I am having a ubuntu 10.10 enable laptop.我有一台启用 ubuntu 10.10 的笔记本电脑。 I have run examples of OpenGL-ES 2.0 on Ubuntu 10.10.我在 Ubuntu 10.10 上运行了 OpenGL-ES 2.0 的示例。 now I want to run the codes in Android platform.现在我想在 Android 平台上运行代码。 How would I proceed.我将如何进行。

Maybe I have to run android on ubuntu 10.10 and then run in the android but I don't know how to do that.也许我必须在 ubuntu 10.10 上运行 android,然后在 android 上运行,但我不知道该怎么做。

The thing is that I want to run the codes on Android in Ubuntu enable laptop.问题是我想在启用笔记本电脑的 Ubuntu 中运行 Android 上的代码。 if anyone is having suggestions.Please let me know this.如果有人有建议。请告诉我。

Sudhanshu苏丹舒

Just read the Android Documentation : it is all perfectly explained there for any Operating system.只需阅读Android 文档:对于任何操作系统,它都得到了完美的解释。 Just follow the steps and you will get there.只需按照步骤操作,您就会到达那里。

One important point though, pick a minimum of API Level 8 for your project when you get there because the OpenGL ES bindings for 2.0 were only added then .不过,重要的一点是,当您到达那里时,为您的项目选择至少 API 8 级,因为当时仅添加了 2.0 的 OpenGL ES 绑定

Finally I am able to run OpenGL-ES2.0 on ubuntu 10.10.最后我能够在 ubuntu 10.10 上运行 OpenGL-ES2.0。 Actually we need an emulator to run it on PC embeded with Linux(Ubuntu 10.10).You can get that emulator here here实际上,我们需要一个模拟器才能在嵌入了 Linux(Ubuntu 10.10)的 PC 上运行它。你可以在这里得到那个模拟器

You just download it and there is a documentation in it how to run and compile.您只需下载它,其中就有如何运行和编译的文档。 Maybe you still not able to compile it because it needs graphic drivers enables and mesa libraries.也许您仍然无法编译它,因为它需要启用图形驱动程序和台面库。 If you are not able to run it tell me I may tell you where are you wrong.如果您无法运行它,请告诉我,我可能会告诉您您错在哪里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM