Skip to content
forked from 0xc0dec/demos

OpenGL graphics experiments and samples

Notifications You must be signed in to change notification settings

DingYong4223/demos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Graphics demos made for learning and playing around with. The code is (hopefully) clean and self-documented, all dependencies are included for easier building.

There are no complex abstractions aka "engine", but a small library of shared code is still used. The goal is to keep things easy to understand while taking away as much boilerplate stuff as possible.

Building and running

  • mkdir build && cd build.
  • cmake -G "Visual Studio 16 2019" -A x64 .. (or other generator depending on the IDE).
  • Build using the generated IDE files.
  • Run executables inside build/<Debug|Release>/.

Controls

Some demos use first person camera. Use Q-W-E-A-S-D keys to move and hold right mouse button to rotate.

Demos

Transform

Object transform hierarchies and (first person) camera via reusable Transform and Camera classes.

Image

Skybox

Skybox rendering on a single quad mesh using a bit of shader magic.

Image

TrueType

TrueType font rendering using stb_truetype library.

Image

To be continued...

Dependencies

  • stb_truetype
  • stb_image
  • SDL
  • GLEW
  • glm

About

OpenGL graphics experiments and samples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.5%
  • CMake 3.5%