GraphicsBase.hpp
Go to the documentation of this file.
1 
4 #ifndef GOSU_GRAPHICSBASE_HPP
5 #define GOSU_GRAPHICSBASE_HPP
6 
7 #include <Gosu/Platform.hpp>
8 #include <limits>
9 
10 namespace Gosu
11 {
15  typedef double ZPos;
16 
19 #if defined(GOSU_CPP11_ENABLED)
20  enum class AlphaMode
21  {
24  DEFAULT,
25  INTERPOLATE = DEFAULT,
29  ADD,
31  MULTIPLY
32  };
33  GOSU_DEPRECATED constexpr AlphaMode amDefault = AlphaMode::DEFAULT;
34  GOSU_DEPRECATED constexpr AlphaMode amInterpolate = AlphaMode::INTERPOLATE;
35  GOSU_DEPRECATED constexpr AlphaMode amAdd = AlphaMode::ADD;
36  GOSU_DEPRECATED constexpr AlphaMode amAdditive = AlphaMode::ADD;
37  GOSU_DEPRECATED constexpr AlphaMode amMultiply = AlphaMode::MULTIPLY;
38 #else
39  enum AlphaMode
40  {
51  };
52 #endif
53 
54  enum FontFlags
55  {
56  ffBold = 1,
57  ffItalic = 2,
60  };
61 
62  enum TextAlign
63  {
68  };
69 
72  {
73  bfSmooth = 0,
79  };
80 
81  #ifndef SWIG
82  // A not so useful optimization.
83  GOSU_DEPRECATED const double zImmediate = -std::numeric_limits<double>::infinity();
84  #endif
85 }
86 
87 #endif
#define GOSU_DEPRECATED
Definition: Platform.hpp:85
BorderFlags
Flags that affect the tileability of an image.
double ZPos
Represents the Z position of something drawn with Gosu&#39;s graphics system.
The color&#39;s channels will be multiplied with each other.
The color&#39;s channels will be interpolated.
The colors&#39; channels will be added.
Macros and utility functions to facilitate programming on all of Gosu&#39;s supported platforms...
GOSU_DEPRECATED const double zImmediate
AlphaMode
Determines the way colors are combined when one is drawn onto another.