openglforandroid
① qt for android和qt for windows同时安装吗
用了这么久的Qt,IDE一直都是VS与Creator并用(实际开发以VS为主),至于哪个更好这里不发表看法,各有所长,而且也因人而异,萝卜青菜,各有所爱。 Qt5发布很久之后,才把版本从之前的4/downloads/official_releases/qt/5.2/5.2.0/. 找到对应的版本进行下载,里面包含多种不同的版本,MSVC2010、MSVC2012分别是指支持VS2010与VS2012的Qt版本,而opengl与非opengl的区别是是否支持opengl,android、ios分别是指支持android、ios平台的Qt版本。 这里我选择的版本(已标注),如下: qt-windows-opensource-5.2.0-msvc2010_opengl-x86-offline.exe(opengl版本) Visual Studio Add-in 1.2.2 for Qt5 二、安装 qt-windows-opensource与Visual Studio Add-in的安装顺序没什么要求,安装过程不再多说(傻瓜式-下一步),安装路径不要包含中文、空格、特殊字符(~<>?*!@#$%^&:,;)。 安装完成Visual Studio Add-in之后,VS就会出现相应的Qt选项!
② android下的openGL开发
这个建议买本教材看看,现在这样的教材很多。
OpenGL ES 2.0
In this document
Create an Activity with GLSurfaceView
Draw a Shape on GLSurfaceViewDefine a Triangle
Draw the Triangle
Apply Projection and Camera Views
Add Motion
Respond to Touch Events
Related Samples
API Demos - graphics
OpenGL ES 2.0 Sample
TouchRotateActivity
See also
3D with OpenGL
OpenGL ES 1.0
This tutorial shows you how to create a simple Android application that uses the OpenGL ES 2.0 API to perform some basic graphics operations. You'll learn how to:
•Create an activity using GLSurfaceView and GLSurfaceView.Renderer
•Create and draw a graphic object
•Define a projection to correct for screen geometry
•Define a camera view
•Rotate a graphic object
•Make graphics touch interactive
The Android framework supports both the OpenGL ES 1.0/1.1 and OpenGL ES 2.0 APIs. You should carefully consider which version of the OpenGL ES API (1.0/1.1 or 2.0) is most appropriate for your needs. For more information, see Choosing an OpenGL API Version. If you would prefer to use OpenGL ES 1.0, see the OpenGL ES 1.0 tutorial.
Before you start, you should understand how to create a basic Android application. If you do not know how to create an app, follow the Hello World Tutorial to familiarize yourself with the process.
Caution: OpenGL ES 2.0 is currently not supported by the Android Emulator. You must have a physical test device running Android 2.2 (API Level 8) or higher in order to run and test the example code in this tutorial.
Create an Activity with GLSurfaceView
To get started using OpenGL, you must implement both a GLSurfaceView and a GLSurfaceView.Renderer. The GLSurfaceView is the main view type for applications that use OpenGL and the GLSurfaceView.Renderer controls what is drawn within that view. (For more information about these classes, see the 3D with OpenGL document.)
To create an activity using GLSurfaceView:
1.Start a new Android project that targets Android 2.2 (API Level 8) or higher.
2.Name the project HelloOpenGLES20 and make sure it includes an activity called HelloOpenGLES20.
3.Modify the HelloOpenGLES20 class as follows: package com.example.android.apis.graphics;import android.app.Activity;import android.content.Context;import android.opengl.GLSurfaceView;import android.os.Bundle;public class HelloOpenGLES20 extends Activity { private GLSurfaceView mGLView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Create a GLSurfaceView instance and set it // as the ContentView for this Activity mGLView = new HelloOpenGLES20SurfaceView(this); setContentView(mGLView); } @Override protected void onPause() { super.onPause(); // The following call pauses the rendering thread. // If your OpenGL application is memory intensive, // you should consider de-allocating objects that // consume significant memory here. mGLView.onPause(); } @Override protected void onResume() { super.onResume(); // The following call resumes a paused rendering thread. // If you de-allocated graphic objects for onPause() // this is a good place to re-allocate them. mGLView.onResume(); }} class HelloOpenGLES20SurfaceView extends GLSurfaceView { public HelloOpenGLES20SurfaceView(Context context){ super(context); // Create an OpenGL ES 2.0 context. setEGLContextClientVersion(2); // Set the Renderer for drawing on the GLSurfaceView setRenderer(new HelloOpenGLES20Renderer()); }}
Note: You will get a compile error for the HelloOpenGLES20Renderer class reference. That's expected; you will fix this error in the next step.
As shown above, this activity uses a single GLSurfaceView for its view. Notice that this activity implements crucial lifecycle callbacks for pausing and resuming its work.
The HelloOpenGLES20SurfaceView class in this example code above is just a thin wrapper for an instance of GLSurfaceView and is not strictly necessary for this example. However, if you want your application to monitor and respond to touch screen events—and we are guessing you do—you must extend GLSurfaceView to add touch event listeners, which you will learn how to do in the Reponding to Touch Events section.
In order to draw graphics in the GLSurfaceView, you must define an implementation of GLSurfaceView.Renderer. In the next step, you create a renderer class to complete this OpenGL application.
4.Create a new file for the following class HelloOpenGLES20Renderer, which implements the GLSurfaceView.Renderer interface: package com.example.android.apis.graphics;import javax.microedition.khronos.egl.EGLConfig;import javax.microedition.khronos.opengles.GL10;import android.opengl.GLES20;import android.opengl.GLSurfaceView;public class HelloOpenGLES20Renderer implements GLSurfaceView.Renderer { public void onSurfaceCreated(GL10 unused, EGLConfig config) { // Set the background frame color GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f); } public void onDrawFrame(GL10 unused) { // Redraw background color GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT); } public void onSurfaceChanged(GL10 unused, int width, int height) { GLES20.glViewport(0, 0, width, height); } }
This minimal implementation of GLSurfaceView.Renderer provides the code structure needed to use OpenGL drawing methods:
◦onSurfaceCreated() is called once to set up the GLSurfaceView environment.
◦onDrawFrame() is called for each redraw of the GLSurfaceView.
◦onSurfaceChanged() is called if the geometry of the GLSurfaceView changes, for example when the device's screen orientation changes.
For more information about these methods, see the 3D with OpenGL document.
The code example above creates a simple Android application that displays a grey screen using OpenGL ES 2.0 calls. While this application does not do anything very interesting, by creating these classes, you have layed the foundation needed to start drawing graphic elements with OpenGL ES 2.0.
If you are familiar with the OpenGL ES APIs, these classes should give you enough information to use the OpenGL ES 2.0 API and create graphics. However, if you need a bit more help getting started with OpenGL, head on to the next sections for a few more hints.
Note: If your application requires OpenGL 2.0, make sure you declare this in your manifest:
<!-- Tell the system this app requires OpenGL ES 2.0. --> <uses-feature android:glEsVersion="0x00020000" android:required="true" />
For more information, see OpenGL manifest declarations in the 3D with OpenGL document.
③ OPENGL是什么意思
游戏渲染,OpengGL和DirectX都是为了给魔兽世界提供很high的游戏动画效果,增加游戏运行速度。不同电脑用不同模式带来的速度有时候是不一样的,画面的精美效果也可能不一样,一般OpenGL的渲染速度要更快。
④ 安卓最好的游戏模拟器
1、Bluestacks模拟器
BlueStacks全名BlueStacks App Player(应用播放器),是一款可以让 Android 应用能运行在PC上的Android模拟器,可以运行绝大多数安卓的应用,方便一般大众玩家的使用。目前可以支持Windows 8、Windows 7、Vista 、XP、苹果MAC。 支持多国语言包含简体中文,支持惯性加速(等于用鼠标实现更真实的手指触摸效果)。
2、靠谱助手安卓模拟器(可装Virtualbox+Bluestacks模拟器引擎)
《靠谱助手安卓模拟器》是一款能让您在PC电脑上流畅运行安卓手游及应用的软件,大屏体验、鼠键操作、游戏多开、支持手柄、兼容性好。自主研发,性能稳定,秒杀同类产品,支持市场99.9%游戏·兼容各种硬件/系统。小号、挂机、多款热门游戏一起上,可同时运行。键鼠搭配极致操控高清大屏、不卡顿、极流畅。
3、夜神安卓模拟器(基于Virtualbox定制)
《夜神安卓模拟器》是全新一代的安卓模拟器,与传统安卓模拟器相比,基于android4.4.2,兼容X86/AMD,在性能、稳定性、兼容性等方面有着巨大优势。优质游戏的提供,软硬件游戏辅助的支持,让用户体验到更强的娱乐性。夜神安卓模拟器技术能力卓越,和合作伙伴一起发展更轻松。
4、逍遥安卓模拟器(基于Virtualbox定制)
《逍遥安卓模拟器》是国内技术最好的安卓模拟器,安卓模拟器无限多开的创始者,国内唯一支持安卓5.1.1内核的安卓模拟器,国内速度最快的安卓模拟器,唯一一个可以看电视软件的安卓模拟器,也是国内用户口碑最好推荐最多的安卓模拟器!
⑤ 如何在Android Studio添加本地aar包引用
python是动态语言,比较简洁。Android不直接支持使用python开发应用,需要使用其它中间件或者库。PythonForAndroid提供了在android平台上对python语言的支持;CLE支持python和java之间的交互,同时提供了一个通用的接口,可用于其它多种语言。Wrapandroid project将android类封装为CLE对象,从而可以使多种语言可以调用android类。使用这三个组件,可以在android平台上直接使用python开发界面应用程序。Wrapandroid项目在进行中,目前的0.8.5版本已经提供了除SQlite,OpenGL之外大部分android类的封装。完全可以编写一个独立的python应用程序。
⑥ 手机openGl是什么意思
编程作图
⑦ 如何使用QPython开发Android应用
在使用python开发android应用之前我们需要准备好环境,环境需要安装PythonForAndroid,然后开始编程,编程时打开eclipse, 创建一个新的android project “introction”,设置对象等等步骤,最后完成。整个开发的过程步骤虽然不是很复杂,但也是需要注意很多细节。在此之前,想要使用python开发android应用的时候需要先学习python相关知识,这样能更好地理解整个流程。
⑧ Mono for Android 发布,开发者可以使用 C# 开发 Android 程序
Mono for Android V1.0 正式发布啦!
Mono for Android就是原先的MonoDroid,由于商标问题(名称中含有Droid),现在改名为Mono for Android。
Mono for Android提供了一个基于Android的Mono虚拟机,让开发者可以用C#开发Android应用程序。另外,Dalvik API已经被绑定至C#,你可以用C#方便地调用Android内置的很多类库。OpenTK类库也被移值过来,你可以在Windows, Linux与iPhone三个不同的平台上共享同样的OpenGL代码。
当前版本只支持C#语言,但理论上应该支持其他语言的编译器。通过针对Mono for Android的Visual Studio 2010 add-on,你可以在熟悉的VS2010开发环境中开发Android应用。
如果你是.NET程序员,如果你想开发移动应用程序,如果你不想学习和编写Java代码,如果你目前不看好Windows Phone 7,那就用Mono for Android吧!而且,如果哪天Windows Phone发达了,你想开发WP应用程序了,那你现在写的很多代码还可以用于WP应用开发!另外,如果你考虑用MonoTouch开发iPhone应用程序,那就更幸福了,为Android应用写的C#代码,也可以用于iPhone应用开发。一次写代码,却可以用于三大移动平台,世上难道还有比.NET程序员更幸福的程序员吗!.NET程序员们,欢呼吧!
但是欢呼的同时,我们也要面对现实,使用Mono for Android有一些限制。比如,不能使用C# 4.0的dynamic特性。另外,一些专门针对Android的类库(比如针对Android特有的硬件,针对由Android本地类库和TK实现的UI),在其他平台的.NET实现中可能得不到支持。这就意味着,如果Android应用与Windows Phone应用要共享代码,只能共享核心代码。Mono for Android提供的只是让你可以用C#代码编写Android应用,但是开发一个真正的Android应用,你还需要学习很多东西,比如:Activities, Intents,通过XML创建UI。
Mono for Android提供了一个可以免费下载的版本,但只能在模拟器中使用。要想在真实环境中使用,需要购买商业许可。专业版$399/年,企业版$999/年。i-programmer上的报道有误,经过在Mono for Android官网上查证,专业版授权费$399,企业版授权费$999,学生版授权费$99(无时间限制)。
⑨ 关于arcgis for android 2.0 中MapView退出的时候报错 call to OpenGL ES API with No Current context
觉得应该是MapView需要释放,在返回的时候,楼主你试试