A collection of C++ files I typically use in my projects
geometry.h
: Implementation ofVec
,VecList
, andMat
types.mesh.h
: 3D model loader. Currently supports:- PLY format (only the vertices and the faces).
bitmap.h
: Image loader and saver with theColor
(i.e. RGB),Bitmap
(i.e. image) andBitmapList
(i.e. video) types. Currently supports:- Loading:
- PNG format (only 8-bit grayscale/RGB/RGBA non-interlaced and without DEFLATE compression).
- PPM format (only RGB images i.e.
common::Bitmap3f
orcommon::Bitmap3u
up to 32-bit precision)
- Saving:
- PPM format (only RGB images i.e.
common::Bitmap3f
orcommon::Bitmap3u
with 8-bit precision)
- PPM format (only RGB images i.e.
- Loading:
test.h
: Simple test framework. Seetests
folder for some examples.log.h
: Simple logging utility.