The problem was the placement of my window creation. None of my glEnable
calls kicked in because they were placed before my window creation. To fix the issue, I simply moved this line:
glutCreateWindow("Embera 2.0.1");
up so the main function looked like so:
int main(int argc, char** argv) {
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
glutCreateWindow("Embera 2.0.1");
glEnable(GL_DEPTH_TEST);
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
glEnable(GL_NORMALIZE);
glutInitWindowSize(400, 400);
glutInitWindowPosition(100, 100);
glutDisplayFunc(display);
glutTimerFunc(0, timer, 0);
glutMainLoop();
return 0;