Sha256: a229f761981aa6b5b39802c55eca97b46ba6126e38744b6355a3d61dcc23e87e

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

//! \file GraphicsBase.hpp
//! Contains general typedefs and enums related to graphics.

#ifndef GOSU_GRAPHICSBASE_HPP
#define GOSU_GRAPHICSBASE_HPP

#include <boost/cstdint.hpp>

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
    };

    enum FontFlags
    {
        ffBold      = 1,
        ffItalic    = 2,
        ffUnderline = 4
    };

    enum TextAlign
    {
        taLeft,
        taRight,
        taCenter,
        taJustify
    };
}

#endif

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gosu-0.7.10.1 Gosu/GraphicsBase.hpp
gosu-0.7.10.3 Gosu/GraphicsBase.hpp
gosu-0.7.10.2 Gosu/GraphicsBase.hpp
gosu-0.7.11 Gosu/GraphicsBase.hpp