Skip to content

kaktusas2598/OpenGL-GLFW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL-GLFW

OpenGL tests

Skybox Donut PostProcessing

This repository is mainly for learning modern OpenGL.

This time I chose GLFW for windowing and events instead of my usual SDL2 just for fun and learning, in the future I will be using SDL2 with GL anyway, but this is no issue

Build instructions

Only GLFW, GLEW and assimp needs to be installed to build this, then use make

For MSYS2 using mingw64:

pacman -S mingw-w64-x86_64-cmake
pacman -S mingw-w64-x86_64-glfw
pacman -S mingw-w64-x86_64-glew
pacman -S mingw-w64-x86_64-assimp

To run:

./configure.sh
./build.sh
./run.sh

Used Libraries

  • CMake - For building
  • OpenGL - Rendering API
  • GLFW - Windowing and input events
  • GLEW - GL Extension loading library
  • GLM - OpenGL Mathematics Library for vector and matrix operations
  • stb_image - For texture loading
  • assimp - For 3D model loading(waveform for now)
  • ImGui - For UI

TODO

  • Add attenuation to spot lights
  • Implement proper UV mapping for 3D Models
  • Implement sprite class, which possibly uses batch renderer
  • Better renderer, indexed and non indexed draws, batching

FIXME

  • Reflections and refractions are upside down

About

OpenGL-GLFW examples/testing framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published