Sha256: bc332b8a215ef21a5242ebf95d22c63bb97419324e590aa629780ccc4a0bd5e2
Contents?: true
Size: 1.68 KB
Versions: 7
Compression:
Stored size: 1.68 KB
Contents
//! \file GraphicsBase.hpp //! Contains general typedefs and enums related to graphics. #ifndef GOSU_GRAPHICSBASE_HPP #define GOSU_GRAPHICSBASE_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; //! The lowest possible Z position. By using this, you tell Gosu that //! your drawing operation does not need Z ordering and can be performed //! immediately. const double zImmediate = -std::numeric_limits<double>::infinity(); //! 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 }; enum FontFlags { ffBold = 1, ffItalic = 2, ffUnderline = 4 }; enum TextAlign { taLeft, taRight, taCenter, taJustify }; //! Flags that affect the tileability of an image. enum BorderFlags { bfSoft = 0, bfTileableLeft = 1, bfTileableTop = 2, bfTileableRight = 4, bfTileableBottom = 8, bfTileable = bfTileableLeft | bfTileableTop | bfTileableRight | bfTileableBottom }; } #endif
Version data entries
7 entries across 7 versions & 1 rubygems