版權聲明:本文爲博主原創文章,轉載請標註轉載網址:http://blog.csdn.net/frd2009041510
圖文詳解OpenGL在Jetson TK1上的安裝和使用
1、入門介紹與資源推介
OpenGL(全寫Open Graphics Library)是個定義了一個跨編程語言、跨平臺的編程接口規格的專業的圖形程序接口。它用於三維圖像(二維的亦可),是一個功能強大,調用方便的底層圖形庫。
OpenGL ES (OpenGL for Embedded Systems) 是 OpenGL 三維圖形 API 的子集,針對手機、PDA和遊戲主機等嵌入式設備而設計。該API由Khronos集團定義推廣,Khronos是一個圖形軟硬件行業協會,該協會主要關注圖形和多媒體方面的開放標準。
下面推薦學習OpenGL的一些網址:
OpenGL tutorial:http://www.opengl-tutorial.org/
OpenGL samples:https://github.com/NVIDIAGameWorks/OpenGLSamples
Cross-platform OpenGL and OpenGL ES samples (for Windows, Android, and Linux):https://developer.nvidia.com/gameworks-opengl-samples
OpenGL study documentation:http://docs.nvidia.com/gameworks/index.html#gameworkslibrary/graphicssamples/opengl_samples/opengl_index.htm
2、OpenGL Graphics and Compute Samples下載
如下圖所示:
The OpenGL Graphics and Compute Samples pack is a resource for cross-platform OpenGL 4 (GL4) and OpenGL ES 2 and 3 (ES2 and ES3) development, targeting Android, Windows, and Linux (x86/x64 and Linux for Tegra). The samples run on all four target platforms from
a single source base.
3、OpenGL Samples Prerequisites
4、OpenGL Samples Setup Guide
將下載好的gl-graphics-compute-samples-linux-2.0拷貝到Jetson TK1平臺中,如下圖:
解壓samples pack並且把它移到工作目錄,如下圖:
Install the Linux target pre-requisites:
- sudo apt-get update(this is critical, or else the next line will do nothing)
- sudo apt-get install g++
生成的apps位於..../samples/bin/linux-arm32/,如下圖所示:
5、示例演示
進入apps所在的目錄後,./xxxx即可,以Bindless Graphics Sample爲例,演示結果如下圖所示: