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

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
主站蜘蛛池模板: 东乡族自治县| 潼关县| 九江市| 高淳县| 佛冈县| 白朗县| 康马县| 墨脱县| 平利县| 海口市| 德庆县| 贞丰县| 盐山县| 邮箱| 东阿县| 盐边县| 丰宁| 香港 | 金川县| 乐陵市| 开江县| 综艺| 治多县| 烟台市| 军事| 万源市| 松原市| 桃园市| 永州市| 金塔县| 宁海县| 普格县| 台安县| 衡山县| 肃宁县| 启东市| 高雄市| 砀山县| 永平县| 平山县| 尉氏县|