Gin
Loading...
Searching...
No Matches
MipMapEnhance Struct Reference

Post-processing of a MipMap's reduced levels, off by default. More...

#include <gin_mipmap.h>

Public Member Functions

bool operator== (const MipMapEnhance &other) const
bool operator!= (const MipMapEnhance &other) const

Public Attributes

float sharpen = 0.0f
 Sharpens the levels of 128 px and below, which the box filter softens.
float saturation = 0.0f
 Lifts the saturation of every level from the second halving on, against the grey that averaging dithered colours gives.

Detailed Description

Post-processing of a MipMap's reduced levels, off by default.

1.0 is the strength tuned for small pixel-art thumbnails, higher values are allowed. Lives outside the class so it is complete when MipMap's default arguments need it.

Member Function Documentation

◆ operator==()

bool MipMapEnhance::operator== ( const MipMapEnhance & other) const

References saturation, and sharpen.

Referenced by operator!=().

◆ operator!=()

bool MipMapEnhance::operator!= ( const MipMapEnhance & other) const

References operator==().

Member Data Documentation

◆ sharpen

float MipMapEnhance::sharpen = 0.0f

Sharpens the levels of 128 px and below, which the box filter softens.

Referenced by operator==().

◆ saturation

float MipMapEnhance::saturation = 0.0f

Lifts the saturation of every level from the second halving on, against the grey that averaging dithered colours gives.

Referenced by operator==().


The documentation for this struct was generated from the following file: