CS 455 Lecture 2 – Game Loop and Three Classes
Before class
Game Loop
- Watch http://youtu.be/mI2CSvB1gJU.
- Read some of http://www.opengl.org/documentation/specs/glut/spec3/spec3.html to get some background on the game loop and windowing system library we’ll be using. Specifically, read sections 1, 3, 4.[156], and 7.[1345].
Three Classes
- Watch http://youtu.be/daAC6BwwUBI.
- Read pages 18-34 in the text. (Skim sections on GLEW and GLM. GLEW we’ll use, but GLM we won’t. A lot of the OpenGL shader compiling and linking code I’ve stuffed away into helper methods, which I’ll give you.)
In class
Our goal this class is to work out hiccups and for you to acclimatize to a new coding environment. Fret not if things go terribly.
- Grab the code0124.zip file in the class directory under W:\c s\CJohnson\cs455. (Henceforce this directory will be referred to as W455.)
- Follow the last few sections of Visual Studio, CMake, and OpenGL, from Building a Visual Studio Project on.
- Create a renderer with an orange background and a blue triangle that disappears while a mouse button is down. (Feel free to alter BaseRenderer, but in the future, it’d be wiser to create a subclass.)
Haiku
All is triangles
Power, wisdom, and courage
Hyrule needs all three
Power, wisdom, and courage
Hyrule needs all three