Skip to content

Crisspl/fhl-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FHL (Five Halves Lib)

FHL is (going to be) an OpenGL, coded in C++11/C++14 graphics library making easy to combine 2D and 3D elements.
The main target is 2.5D (hence the name) games and you shouldn't expect FHL to be a library for 3D apps. There's no 3D camera control nor depth testing. The last thing rendered is the thing on top.

As for now the lib offers:

  • wrapped, into few classes representing 2D or 3D object, OpenGL calls
  • easy texture loading using SOIL (possible change to FreeImage in the future)
  • easy model loading using Assimp (fhl::Model class)
  • default GLSL shaders and opportunity to write your own
  • SFML-inspired interfaces (fhl::Renderable and fhl::Transformable, fhl::Transformable3D)
  • lights (but note that there's no "scene", every object is or is not influenced by particular light independently)
  • 4x4 matrix and vectors class representation and operations
  • simple collision detection classes (fhl::Rect and fhl::OrientedRect)
  • time measuring using std's <chrono> features (fhl::Clock)
  • fhl::ResourceMgr class enforcing proper resource management (it's the only class allowed to create fhl::Texture and fhl::Shader objects)

In the future there's going to be optional deferred renderer that will be much more efficient in specific situations, but I have to think how to design usage of such.

This repository stores code of FHL along with simple game written using FHL. Classes which belongs to FHL are inside a fhl namespace and their files are located in Graphics, Maths and Utility directories inside /EndlessRunner/src/ directory.

It is usable, but there's only VS2015 project file provided. No CMake yet, but it will be as soon as I find time to learn CMake scripts.
There's still a lot to do and the lib is still rather unefficient.


About

(old, unused repo) C++11/14 and modern OpenGL graphics library designed for 2.5D games

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published