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

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
主站蜘蛛池模板: 栾川县| 海淀区| 赣州市| 吴桥县| 兴安县| 瓦房店市| 乡城县| 仁布县| 西青区| 无为县| 张家港市| 峨边| 华亭县| 永胜县| 清丰县| 如东县| 醴陵市| 峨边| 四平市| 敦煌市| 刚察县| 云浮市| 定结县| 大邑县| 共和县| 高邑县| 澜沧| 枣强县| 建阳市| 雅江县| 商洛市| 玉林市| 全州县| 通道| 遵义县| 常熟市| 蒙山县| 克山县| 龙山县| 扬州市| 天长市|