/* * The voxel world's colour grade: the art a little more saturated, applied as * its colours become textures - palettes, sprites, the tree texture, building * pages - so it costs nothing per frame. The 2D picture is not graded. */ #ifndef VOXEL_GRADE_H #define VOXEL_GRADE_H #include /* Builds the table. Before any texture is made, and once. */ void VoxelGrade_Init(void); /* A GBA BGR555 colour to the graded, opaque PICA RGBA5551 texel. */ uint16_t VoxelGrade_RGBA5551(uint16_t bgr15); /* Grades RGBA5551 texels in place, keeping each one's alpha bit. */ void VoxelGrade_Texels(uint16_t *texels, uint32_t count); /* Scales RGBA5551 texels' brightness in place, keeping their alpha bit. */ void VoxelGrade_Brighten(uint16_t *texels, uint32_t count, float factor); #endif