Sha256: 16d174691b5cf13b0bae586a635712cdc11fd80ca60dee7f09dd3a18ff9e6100
Contents?: true
Size: 1.66 KB
Versions: 3
Compression:
Stored size: 1.66 KB
Contents
#pragma once namespace Gosu { /// Represents the Z position of something drawn with Gosu's graphics system. /// Images drawn with higher ZPos values will cover those with a lower ZPos value. typedef double ZPos; /// Determines the way pixel colors are combined when images overlap. enum BlendMode { BM_DEFAULT, /// The color's channels will be interpolated. The alpha channel specifies the opacity of /// the new color, 255 is full opacity. BM_INTERPOLATE = BM_DEFAULT, /// The colors' channels will be added. The alpha channel specifies the percentage of the /// new color's channels that will be added to the old color's channels. BM_ADD, /// The color's channels will be multiplied with each other. BM_MULTIPLY }; enum FontFlags { FF_BOLD = 1, FF_ITALIC = 2, FF_UNDERLINE = 4, FF_COMBINATIONS = 8 }; enum Alignment { AL_LEFT, AL_RIGHT, AL_CENTER, AL_JUSTIFY }; /// Flags that affect the tileability or interpolation of an image. enum ImageFlags { IF_SMOOTH = 0, // Note: No constant for '1', but Gosu treats '1' as IF_TILEABLE for // backward compatibility reasons (this parameter used to be a bool). IF_TILEABLE_LEFT = 1 << 1, IF_TILEABLE_TOP = 1 << 2, IF_TILEABLE_RIGHT = 1 << 3, IF_TILEABLE_BOTTOM = 1 << 4, IF_TILEABLE = IF_TILEABLE_LEFT | IF_TILEABLE_TOP | IF_TILEABLE_RIGHT | IF_TILEABLE_BOTTOM, /// Apply nearest-neighbor interpolation when scaling this image up or down. IF_RETRO = 1 << 5 }; }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gosu-2.0.0.pre8 | include/Gosu/GraphicsBase.hpp |
gosu-2.0.0.pre7 | include/Gosu/GraphicsBase.hpp |
gosu-2.0.0.pre6 | include/Gosu/GraphicsBase.hpp |