Home

Awesome

cro lib

These librares are inspired by the stb libraries which are single purpose C / C++ files. They are easy to implement and have minimal dependencies. They will be written with the intention of being used in video games (as this is where my interests lie). All files in the cro lib are public domain.

cro_mipmap.h -- Mipmap Generation

This header file has functions to generate mipmaps. Reasons you might want this:

The library currently support the following pixel types:

The functions currently used to generate the mipmaps are:

These functions will not allocate any memory, so the function cro_GetMipMapSize is provided to inform the user how big a resulting mipmap will be. The functions can also be run in parallel, breaking the work up based on rows. A number of the functions are created via a macro which uses a basic template of how the code will run. If a function down sampling function is needed, it can be very easy to extend the code.