Skip to content

OpenGL experiments

I was doing this OpenGL course on Udemy a while ago and here is the progress so far.

Got a window open.

Had to setup first:

  • Microsoft Visual Studio 2019
  • GLEW ( OpenGL Extension Wrangler )
  • GLFW ( OpenGL FrameWork )
  • Code to init GLEW and GLFW

Window open

Got a triangle to the screen 😀

Triangle

Triangle moving

Triangle moving

Interpolate

Triangle got some color and a z axis. The image looks a bit weird on this one.

Camera

Camera, keyboard and mouse control added.

Textures

Texture

Texture loading done using stb_image.h loader. Also forgot to mention earlier that I'm using math library called glm.

Lighting

Got some lights going on. - Directional lights - Ambient lighting - Diffuse lighting - Specular lighting - Point lights

Spotlight following a camera.

Model importing

Random models from https://free3d.com

Orgrimmar from World of Warcraft