當前位置:首頁 » 安卓系統 » openglforandroid

openglforandroid

發布時間: 2022-05-26 13:52:58

① 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需要釋放,在返回的時候,樓主你試試

熱點內容
無法訪問iis 發布:2025-08-21 22:04:05 瀏覽:260
win7asp伺服器搭建 發布:2025-08-21 22:02:13 瀏覽:592
手機端編寫腳本 發布:2025-08-21 21:46:54 瀏覽:564
九游如何看帳號與密碼 發布:2025-08-21 21:42:32 瀏覽:3
怎麼可以讓自己緩解壓力 發布:2025-08-21 21:35:10 瀏覽:487
安卓版軟體怎麼安裝到蘋果手機 發布:2025-08-21 21:28:24 瀏覽:966
安卓手機帶顏色的鍵盤如何設置 發布:2025-08-21 21:20:45 瀏覽:9
阿里雲伺服器搭建論壇 發布:2025-08-21 21:13:08 瀏覽:74
a4l哪個配置高 發布:2025-08-21 21:12:22 瀏覽:585
linux線程資源 發布:2025-08-21 21:10:30 瀏覽:476