Sha256: 7271b59c1e80c5745d1af27791b7fde5286dbb3579ee1302b4addebbd7409522
Contents?: true
Size: 1.74 KB
Versions: 24
Compression:
Stored size: 1.74 KB
Contents
//! \file GraphicsBase.hpp //! Contains general typedefs and enums related to graphics. #ifndef GOSU_GRAPHICSBASE_HPP #define GOSU_GRAPHICSBASE_HPP #include <Gosu/Platform.hpp> #include <limits> namespace Gosu { //! Represents the Z position of something drawn with Gosu's graphics //! system. Draw calls with higher ZPos values will cover those with a //! lower ZPos value, that is, they are performed last. typedef double ZPos; //! Determines the way colors are combined when one is drawn onto //! another. enum AlphaMode { //! The color's channels will be interpolated. The alpha channel //! specifies the opacity of the new color, 255 is full opacity. amDefault, //! 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. amAdditive, //! The color's channels will be multiplied with each other. amMultiply }; enum FontFlags { ffBold = 1, ffItalic = 2, ffUnderline = 4, ffCombinations = 8 }; enum TextAlign { taLeft, taRight, taCenter, taJustify }; //! Flags that affect the tileability of an image. enum BorderFlags { bfSmooth = 0, bfTileableLeft = 1, bfTileableTop = 2, bfTileableRight = 4, bfTileableBottom = 8, bfTileable = bfTileableLeft | bfTileableTop | bfTileableRight | bfTileableBottom }; #ifndef SWIG // A not so useful optimization. GOSU_DEPRECATED const double zImmediate = -std::numeric_limits<double>::infinity(); #endif } #endif
Version data entries
24 entries across 24 versions & 1 rubygems