Heineman on her YouTube channel in 2019 | |
Born | 1963/1964 (age 56–57)[1] |
---|---|
Other names | Burger |
Occupation | Video game designer, programmer |
Employer | Olde Sküül |
Known for | The Bard's Tale III: Thief of Fate, Dragon Wars |
Spouse(s) | Jennell Jaquays |
Children | 5 |
stderr
.glfwCreateWindow
call are for specifying a monitor for full-screen mode, and for sharing context between different windows. We call glfwTerminate
to let GLFW destroy its resources if there where any problems creating the window. We also need to tell GFLW to make subsequent OpenGL calls apply to the current context. We do this by calling glfwMakeContextCurrent
. Currently the OpenGL context version we receive from GLFW is unknown. We need to tell GLFW that we would like a context that is at least version 3.3. This is done by giving GLFW the appropriate 'hints' before creating the window,glfw3.h
,glClear
to red. In graphics programming, a buffer refers to a portion of RAM used by the computer to hold a temporary image. Modern OpenGL uses a double buffering scheme; the 'front' buffer is used for displaying an image, while the 'back' buffer is used for drawing. The buffers are then swapped at each iteration -- this is what is done here using the glfwSwapBuffers
call. Additionally, at each iteration, we instruct GLFW to process any pending events, glfwPollEvents
, and terminate the infinite loop if GLFW was instructed to do so (e.g. by clicking the close button), by checking the return value of glfwWindowShouldClose
. At this point, if we would like for our program to exit cleanly, we also need to make the following two calls,-std=c++11
. In both cases, make sure you have GLFW 3 installed. On Linux, depending on your distribution, you can use your package manager, e.g. on Ubuntu you can install GLFW with the following command,