- 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
推薦閱讀
- LabVIEW 2018 虛擬儀器程序設(shè)計(jì)
- 大學(xué)計(jì)算機(jī)基礎(chǔ)實(shí)驗(yàn)教程
- 算法基礎(chǔ):打開程序設(shè)計(jì)之門
- jQuery EasyUI網(wǎng)站開發(fā)實(shí)戰(zhàn)
- YARN Essentials
- C語言從入門到精通
- Kubernetes源碼剖析
- Beginning C++ Game Programming
- 大學(xué)計(jì)算機(jī)基礎(chǔ)實(shí)驗(yàn)指導(dǎo)
- C++ System Programming Cookbook
- Java程序設(shè)計(jì)教程
- 計(jì)算語言學(xué)導(dǎo)論
- Learning WordPress REST API
- Ionic3與CodePush初探:支持跨平臺(tái)與熱更新的App開發(fā)技術(shù)
- Clojure編程樂趣