Sha256: 39348a04527889806335dd190c8c106f6db49e94e5b0653baa5698b856352724

Contents?: true

Size: 1.77 KB

Versions: 27

Compression:

Stored size: 1.77 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.
        amAdd,
        amAdditive = amAdd,
        //! 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

27 entries across 27 versions & 1 rubygems

Version Path
gosu-0.7.48-x86-mingw32 Gosu/GraphicsBase.hpp
gosu-0.7.48 Gosu/GraphicsBase.hpp
gosu-0.7.47.1-x86-mingw32 Gosu/GraphicsBase.hpp
gosu-0.7.47.1 Gosu/GraphicsBase.hpp
gosu-0.7.46 Gosu/GraphicsBase.hpp
gosu-0.7.46-x86-mingw32 Gosu/GraphicsBase.hpp
gosu-0.7.45-x86-mingw32 Gosu/GraphicsBase.hpp
gosu-0.7.45 Gosu/GraphicsBase.hpp
gosu-0.7.45-universal-darwin Gosu/GraphicsBase.hpp
gosu-0.7.44-x86-mingw32 Gosu/GraphicsBase.hpp
gosu-0.7.44-universal-darwin Gosu/GraphicsBase.hpp
gosu-0.7.44 Gosu/GraphicsBase.hpp
gosu-0.7.43-universal-darwin Gosu/GraphicsBase.hpp
gosu-0.7.43 Gosu/GraphicsBase.hpp
gosu-0.7.43-x86-mingw32 Gosu/GraphicsBase.hpp
gosu-0.7.41 Gosu/GraphicsBase.hpp
gosu-0.7.41-x86-mingw32 Gosu/GraphicsBase.hpp
gosu-0.7.41-universal-darwin Gosu/GraphicsBase.hpp
gosu-0.7.40 Gosu/GraphicsBase.hpp
gosu-0.7.40-x86-mingw32 Gosu/GraphicsBase.hpp