官术网_书友最值得收藏!

Chapter 1: Creating a Game Window

In this chapter, you will set up a simple Win32 window and bind an OpenGL context to it. You will be using OpenGL 3.3 Core throughout this book. The actual OpenGL code is going to be very minimal.

Most OpenGL-specific code will be abstracted into helper objects and functions, which will allow you to focus on animation rather than any specific graphics APIs. You will write the abstraction layer in Chapter 6, Building an Abstract Renderer, but for now, it's important to create a window ready to be drawn to.

By the end of this chapter, you should be able to do the following:

  • Open a Win32 window
  • Create and bind an OpenGL 3.3 Core context
  • Use glad to load OpenGL 3.3 Core functions
  • Enable vsynch for the created window
  • Understand the downloadable samples for this book
主站蜘蛛池模板: 汕尾市| 慈利县| 龙陵县| 浠水县| 永安市| 原平市| 高台县| 怀化市| 巴彦淖尔市| 明溪县| 阜城县| 民丰县| 甘谷县| 广汉市| 巨野县| 五寨县| 临武县| 静海县| 浮山县| 韶山市| 加查县| 法库县| 岳池县| 元谋县| 朔州市| 内乡县| 安康市| 阿合奇县| 桃源县| 乐业县| 兴隆县| 怀宁县| 东安县| 墨玉县| 兴海县| 陵水| 桃园市| 瑞丽市| 峨眉山市| 罗甸县| 岳阳市|