## 圖文詳解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/](http://www.opengl-tutorial.org/)
**OpenGL samples**:[https://github.com/NVIDIAGameWorks/OpenGLSamples](https://github.com/NVIDIAGameWorks/OpenGLSamples)
**Cross-platform OpenGL and OpenGL ES samples (for Windows, Android, and Linux)**:[https://developer.nvidia.com/gameworks-opengl-samples](https://developer.nvidia.com/gameworks-opengl-samples)
**OpenGL study?documentation**:[http://docs.nvidia.com/gameworks/index.html#gameworkslibrary/graphicssamples/opengl_samples/opengl_index.htm](http://docs.nvidia.com/gameworks/index.html#gameworkslibrary/graphicssamples/opengl_samples/opengl_index.htm)
### 2、OpenGL Graphics and Compute Samples下載
下載地址:[https://developer.nvidia.com/gameworksdownload#?tx=$gameworks,graphics_library$graphics_api,opengl_4.3](https://developer.nvidia.com/gameworksdownload#?tx=$gameworks,graphics_library$graphics_api,opengl_4.3)
如下圖所示:

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++
~~~
進入目錄make:

生成的apps位于..../samples/bin/linux-arm32/,如下圖所示:

### 5、示例演示
進入apps所在的目錄后,./xxxx即可,以Bindless Graphics Sample為例,演示結果如下圖所示:

- 前言
- NVIDIA Jetson TK1學習與開發(一):NVIDIA Jetson TK1介紹
- NVIDIA Jetson TK1學習與開發(二):入門指導
- NVIDIA Jetson TK1學習與開發(三):圖文詳解Jetson TK1平臺搭建
- NVIDIA Jetson TK1學習與開發(四):一些細節問題
- NVIDIA Jetson TK1學習與開發(五):helloworld的C版本與C++版本
- NVIDIA Jetson TK1學習與開發(六):如何安裝CUDA
- NVIDIA Jetson TK1學習與開發(七):圖文詳解OpenCV在Jetson TK1上的安裝和使用
- NVIDIA Jetson TK1學習與開發(八):圖文詳解OpenGL在Jetson TK1上的安裝和使用
- NVIDIA Jetson TK1學習與開發(九):基于GPU加速的OpenCV人體檢測(Full Body Detection)
- NVIDIA Jetson TK1學習與開發(十):人臉檢測(Face Detection)
- NVIDIA Jetson TK1學習與開發:如何解決輸入和輸出音頻問題