Sha256: 5b98c27b99c2fd7b532d0317ea083ca231bd5760fae226aadede32a253bbc3b7
Contents?: true
Size: 1.35 KB
Versions: 2
Compression:
Stored size: 1.35 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 }; } #endif
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gosu-0.7.12 | Gosu/GraphicsBase.hpp |
gosu-0.7.13 | Gosu/GraphicsBase.hpp |