Skip to content

Instantly share code, notes, and snippets.

View hanhanxue's full-sized avatar

Han Han Xue hanhanxue

View GitHub Profile
@hanhanxue
hanhanxue / cameraEuler.cpp
Created May 4, 2020 21:02
Camera in OpenGL
#include "cameraEuler.h"
cameraEuler::cameraEuler(float width, float height)
: position(glm::vec3(5.0f, 5.0f, 5.0f)), pivot(glm::vec3(0.0f, 0.0f, 0.0f)), aspectRatio(width / height)
{
updateCamera();
}