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

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
主站蜘蛛池模板: 西充县| 乐至县| 呼图壁县| 定远县| 西峡县| 古蔺县| 石屏县| 靖西县| 江西省| 临潭县| 平陆县| 金寨县| 黑河市| 石城县| 武安市| 哈巴河县| 铜山县| 论坛| 山丹县| 开封市| 嘉义市| 洞口县| 元江| 兖州市| 巫山县| 华亭县| 探索| 茶陵县| 洛阳市| 邵东县| 保山市| 轮台县| 灵丘县| 黄山市| 贺州市| 邵阳县| 高青县| 苏尼特右旗| 柞水县| 中卫市| 澄城县|