天天看點

《OpenGL程式設計指南》一導讀

《OpenGL程式設計指南》一導讀

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

<a href="https://yq.aliyun.com/articles/117332">第1章 opengl概述</a>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<a href="https://yq.aliyun.com/articles/117438">3.5 多執行個體渲染</a>

第4章 顔色、像素和幀緩存

4.1 基本顔色理論

4.2 緩存及其用途

4.2.1 緩存的清除

4.2.2 緩存的掩碼

4.3 顔色與opengl

4.3.1 顔色的表達與opengl

4.3.2 頂點顔色

4.3.3 光栅化

4.4 多重采樣

4.4.1 采樣着色

4.5 片元的測試與操作

4.5.1 剪切測試

4.5.2 多重采樣的片元操作

4.5.3 模闆測試

4.5.4 模闆的例子

4.5.5 深度測試

4.5.6 融混

4.5.7 融混參數

4.5.8 控制融混的參數

4.5.9 融混方程

4.5.10 抖動

4.5.11 邏輯操作

4.5.12 遮擋查詢

4.5.13 條件渲染

4.6 逐圖元的反走樣

4.6.1 線段的反走樣

4.6.2 多邊形的反走樣

4.7 幀緩存對象

4.7.1 渲染緩存

4.7.2 建立渲染緩存的存儲空間

4.7.3 幀緩存附件

4.7.4 幀緩存的完整性

4.7.5 幀緩存的無效化

4.8 多重渲染緩存的同步寫入

4.8.1 選擇顔色緩存來進行讀寫操作

4.8.2 雙源融混

4.9 像素資料的讀取和拷貝

4.10 拷貝像素矩形

繼續閱讀