GraphicsBase.hpp
Go to the documentation of this file.
00001 
00002 
00003 
00004 #ifndef GOSU_GRAPHICSBASE_HPP
00005 #define GOSU_GRAPHICSBASE_HPP
00006 
00007 #include <Gosu/Platform.hpp>
00008 #include <limits>
00009 
00010 namespace Gosu
00011 {
00015     typedef double ZPos;
00016     
00019     enum AlphaMode
00020     {
00023         amDefault,
00027         amAdd,
00028         amAdditive = amAdd,
00030         amMultiply
00031     };
00032     
00033     enum FontFlags
00034     {
00035         ffBold         = 1,
00036         ffItalic       = 2,
00037         ffUnderline    = 4,
00038         ffCombinations = 8
00039     };
00040     
00041     enum TextAlign
00042     {
00043         taLeft,
00044         taRight,
00045         taCenter,
00046         taJustify
00047     };
00048     
00050     enum BorderFlags
00051     {
00052         bfSmooth = 0,
00053         bfTileableLeft = 1,
00054         bfTileableTop = 2,
00055         bfTileableRight = 4,
00056         bfTileableBottom = 8,
00057         bfTileable = bfTileableLeft | bfTileableTop | bfTileableRight | bfTileableBottom
00058     };        
00059     
00060     #ifndef SWIG
00061     // A not so useful optimization.
00062     GOSU_DEPRECATED const double zImmediate = -std::numeric_limits<double>::infinity();
00063     #endif
00064 }
00065 
00066 #endif