- OpenGL Development Cookbook
- Muhammad Mobeen Movania
- 239字
- 2021-08-13 17:03:31
Introduction
The OpenGL API has seen various changes since its creation in 1992. With every new version, new features were added and additional functionality was exposed on supporting hardware through extensions. Until OpenGL v2.0 (which was introduced in 2004), the functionality in the graphics pipeline was fixed, that is, there were fixed set of operations hardwired in the graphics hardware and it was impossible to modify the graphics pipeline. With OpenGL v2.0, the shader objects were introduced for the first time. That enabled programmers to modify the graphics pipeline through special programs called shaders, which were written in a special language called OpenGL shading language (GLSL).
After OpenGL v2.0, the next major version was v3.0. This version introduced two profiles for working with OpenGL; the core profile and the compatibility profile. The core profile basically contains all of the non-deprecated functionality whereas the compatibility profile retains deprecated functionality for backwards compatibility. As of 2012, the latest version of OpenGL available is OpenGL v4.3. Beyond OpenGL v3.0, the changes introduced in the application code are not as drastic as compared to those required for moving from OpenGL v2.0 to OpenGL v3.0 and above.
In this chapter, we will introduce the three shader stages accessible in the OpenGL v3.3 core profile, that is, vertex, geometry, and fragment shaders. Note that OpenGL v4.0 introduced two additional shader stages that is tessellation control and tessellation evaluation shaders between the vertex and geometry shader.
- 平面設(shè)計(jì)初步
- Learning Apache Spark 2
- HBase Design Patterns
- 離散事件系統(tǒng)建模與仿真
- 四向穿梭式自動(dòng)化密集倉儲(chǔ)系統(tǒng)的設(shè)計(jì)與控制
- Excel 2007常見技法與行業(yè)應(yīng)用實(shí)例精講
- JRuby語言實(shí)戰(zhàn)技術(shù)
- 貫通開源Web圖形與報(bào)表技術(shù)全集
- Drupal高手建站技術(shù)手冊(cè)
- 機(jī)器人制作入門(第4版)
- 電氣控制及Micro800 PLC程序設(shè)計(jì)
- 軟測之魂
- Getting Started with Tableau 2019.2
- Oracle Blockchain Quick Start Guide
- 這樣用Word!