Skip to content

Instantly share code, notes, and snippets.

View btarg's full-sized avatar

btarg btarg

View GitHub Profile
@btarg
btarg / camera.cpp
Created March 24, 2026 14:41 — forked from Asynchronousx/camera.cpp
Barebone FPS Camera with MOUSE/KEYBOARD movement using Freeglut/Opengl
#define _CRT_SECURE_NO_WARNINGS
#define TO_RADIANS 3.141592/180.0
#include <GL/freeglut.h>
#include <iostream>
// angles and starting position
float xangle = 0.0f, yangle = 1.0f, zangle = -1.0f;
// XYZ position of the camera