Initializing and Creating a Window

To use GLUT, you first need to initialize the GLUT library by calling glutInit(). The function also parses any relevant command-line options you pass for specifying GLUT options.

Following that, you’ll usually call glutInitDisplayMode() to configure the characteristics of the window, like having a depth or stencil ...

Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.