天天看點

《OpenGL程式設計指南(原書第9版)》——導讀

《OpenGL程式設計指南(原書第9版)》——導讀

**

前言

OpenGL圖形系統是圖形硬體的一種軟體接口(GL表示Graphics Library,即圖形庫)。它使得使用者可以建立互動式的程式以産生運動的三維對象的顔色圖像。通過OpenGL,我們可以使用計算機圖形學技術産生逼真的圖像,或者通過一些虛構的方式産生虛拟的圖像。這本指南将告訴你如何使用OpenGL圖形系統進行程式設計,得到你所期望的視覺效果。

本書的主要内容

本書中包含以下章節:

第1章對OpenGL可以完成的工作進行了概覽。它還提供了一個簡單的OpenGL程式并解釋了一些本質性的程式設計細節,它們可能會用于後續的章節中。

第2章讨論了OpenGL中最主要的特性—着色語言和SPIR-V,并介紹了它們在應用程式中的初始化和使用方法。

第3章介紹了使用OpenGL進行幾何體繪制的各種方法,以及一些可以讓渲染更為高效的優化手段。

第4章解釋了OpenGL對于顔色的處理過程,包括像素的處理、緩存的管理,以及像素處理相關的渲染技術。

第5章給出了将三維場景表現在一個二維計算機螢幕上的操作細節,包括各種幾何投影類型的數學原理和着色器操作。

第6章讨論了将幾何模型與圖像結合來建立真實的、高品質的三維模型的方法。

第7章介紹了計算機圖形的光照效果模拟方法,主要是這類方法在可程式設計着色器中的實作。

第8章介紹了使用可程式設計着色器生成紋理和其他表面效果的方法細節,進而增強真實感和其他的渲染特效。

第9章解釋了OpenGL管理和細分幾何表面的着色器功能。

第10章介紹了在OpenGL渲染流水線中使用着色器進行幾何體圖元修改的一種特殊技術。

第11章介紹了使用OpenGL幀緩存和緩存記憶體實作進階渲染技術和非圖形學應用的相關方法。

第12章介紹了最新的着色器階段,将通用計算的方法融合到OpenGL的渲染管線當中。

<a href="https://yq.aliyun.com/articles/212742">第1章 1.0OpenGL概述</a>

<a href="https://yq.aliyun.com/articles/212748">1.1 什麼是OpenGL</a>

<a href="https://yq.aliyun.com/articles/212759">1.2 初識OpenGL程式</a>

<a href="https://yq.aliyun.com/articles/212760">1.3 OpenGL文法</a>

<a href="https://yq.aliyun.com/articles/212763">1.4 OpenGL渲染管線</a>

<a href="https://yq.aliyun.com/articles/212785">1.5 第一個程式:深入分析</a>

<a href="https://yq.aliyun.com/articles/212810">第2章 2.0着色器基礎</a>

<a href="https://yq.aliyun.com/articles/212814">2.1 着色器與OpenGL</a>

<a href="https://yq.aliyun.com/articles/212816">2.2 OpenGL的可程式設計管線</a>

<a href="https://yq.aliyun.com/articles/212863">2.3 OpenGL着色語言概述</a>

<a href="https://yq.aliyun.com/articles/212874">2.4 資料塊接口</a>

<a href="https://yq.aliyun.com/articles/212877">2.5 着色器的編譯</a>

<a href="https://yq.aliyun.com/articles/212882">2.6 着色器子程式</a>

<a href="https://yq.aliyun.com/articles/212885">2.7 獨立的着色器對象</a>

<a href="https://yq.aliyun.com/articles/212886">2.8 SPIR-V</a>

<a href="https://yq.aliyun.com/articles/212888">第3章 3.0OpenGL繪制方式</a>

<a href="https://yq.aliyun.com/articles/212891">3.1 OpenGL圖元</a>

<a href="https://yq.aliyun.com/articles/212896">3.2 OpenGL緩存資料</a>

<a href="https://yq.aliyun.com/articles/212901">3.3 頂點規範</a>

<a href="https://yq.aliyun.com/articles/212911">3.4 OpenGL的繪制指令</a>

繼續閱讀