Sha256: 48d5fa1755ade1f2d29ddcccde3a912cff3225336cb9d0ed5a11486d89a756f8

Contents?: true

Size: 1.96 KB

Versions: 21

Compression:

Stored size: 1.96 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;
    
    //! 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.
    //! Deprecated because this turned out not be very useful in optimizing.
    #ifndef SWIG
    GOSU_DEPRECATED
    #endif
    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,
        //! 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
    };        
}

#endif

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
gosu-0.7.29-i386-mingw32 Gosu/GraphicsBase.hpp
gosu-0.7.29 Gosu/GraphicsBase.hpp
gosu-0.7.29-universal-darwin Gosu/GraphicsBase.hpp
gosu-0.7.28-universal-darwin Gosu/GraphicsBase.hpp
gosu-0.7.28 Gosu/GraphicsBase.hpp
gosu-0.7.28-i386-mingw32 Gosu/GraphicsBase.hpp
gosu-0.7.27.1 Gosu/GraphicsBase.hpp
gosu-0.7.27.1-i386-mingw32 Gosu/GraphicsBase.hpp
gosu-0.7.27.1-universal-darwin Gosu/GraphicsBase.hpp
gosu-0.7.27 Gosu/GraphicsBase.hpp
gosu-0.7.27-i386-mingw32 Gosu/GraphicsBase.hpp
gosu-0.7.27-universal-darwin Gosu/GraphicsBase.hpp
gosu-0.7.26.1 Gosu/GraphicsBase.hpp
gosu-0.7.26.1-i386-mingw32 Gosu/GraphicsBase.hpp
gosu-0.7.26.1-universal-darwin Gosu/GraphicsBase.hpp
gosu-0.7.26 Gosu/GraphicsBase.hpp
gosu-0.7.26-i386-mingw32 Gosu/GraphicsBase.hpp
gosu-0.7.26-universal-darwin Gosu/GraphicsBase.hpp
gosu-0.7.25 Gosu/GraphicsBase.hpp
gosu-0.7.24 Gosu/GraphicsBase.hpp