- Hands-On C++ Game Animation Programming
- Gabor Szauer
- 143字
- 2021-06-30 14:45:46
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
推薦閱讀
- Magento 2 Theme Design(Second Edition)
- Python從菜鳥到高手(第2版)
- Responsive Web Design with HTML5 and CSS3
- C語言程序設計教程(第2版)
- Scratch真好玩:教小孩學編程
- Android Wear Projects
- RESTful Web Clients:基于超媒體的可復用客戶端
- Android移動應用開發項目教程
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- PHP項目開發全程實錄(第4版)
- Python編程快速上手2
- Selenium WebDriver Practical Guide
- 編程的原則:改善代碼質量的101個方法
- Spring Boot 3:入門與應用實戰
- Node.js Web Development