NVIDIA Jetson TK1學習與開發(八):圖文詳解OpenGL在Jetson TK1上的安裝和使用

圖文詳解OpenGL在Jetson TK1上的安裝和使用


1、入門介紹與資源推介

OpenGL(全寫Open Graphics Library)是個定義了一個跨編程語言、跨平臺的編程接口規格的專業的圖形程序接口。它用於三維圖像(二維的亦可),是一個功能強大,調用方便的底層圖形庫。

OpenGL ES (OpenGL for Embedded Systems) 是 OpenGL 三維圖形 API 的子集,針對手機、PDA和遊戲主機等嵌入式設備而設計。該API由Khronos集團定義推廣,Khronos是一個圖形軟硬件行業協會,該協會主要關注圖形和多媒體方面的開放標準。

下面推薦學習OpenGL的一些網址:

OpenGL tutorialhttp://www.opengl-tutorial.org/

OpenGL sampleshttps://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 documentationhttp://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

如下圖所示:


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:



  1. sudo apt-get update(this is critical, or else the next line will do nothing)  
  2. sudo apt-get install g++  
進入目錄make:

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


5、示例演示

進入apps所在的目錄後,./xxxx即可,以Bindless Graphics Sample爲例,演示結果如下圖所示:




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章