Skip to content

somerandomdev49/mini-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini core

A minimal header-only C++ OpenGL 3d game framework

Minimal means minimal! The only thing this framework can do is render things. This means that you need to load models, textures, shaders and other things yourself.

The framework providers a deferred renderer with support for simple directional lighting, textures and shadows.

Note: there is a forward renderer with minimal support for lighting and I don't really plan to support it for now

File Structure

  • core.hpp - the actual framework
  • main.cpp - an example/tester that uses srd::core
  • util.hpp - what main.cpp uses to load models and textures
  • log.hpp - a tiny logging library, only needed for main.cpp and log.hpp
  • log.cpp - log.hpp default imlementation {take a look}
  • runfile - similar to Makefile for my make alternative (just run the console command)

The header file uses the same guard as most of stb's headers do:

// Somewhere in a .cpp file, once
#define SRD_CORE_IMPLEMENTATION
#include <.../.../core.hpp>

Important! srd::core::window::show(...) is defined only when SRD_CORE_IMPLEMENTATION is defined! (this is because the function needs to have templates for lambdas! [std::function is slow...])

Example

TODO! See main.cpp!!! (it's small)

Notes

Started working on July 20th, 2021.

About

A minimal header-only C++ OpenGL 3d-renderer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages