Gosu
Namespaces | Typedefs | Enumerations | Functions
GraphicsBase.hpp File Reference

Contains general typedefs and enums related to graphics. More...

Go to the source code of this file.

Namespaces

 Gosu
 

Typedefs

typedef double Gosu::ZPos
 Represents the Z position of something drawn with Gosu's graphics system. More...
 
typedef std::array< double, 16 > Gosu::Transform
 

Enumerations

enum  Gosu::AlphaMode { Gosu::AM_DEFAULT, Gosu::AM_INTERPOLATE = AM_DEFAULT, Gosu::AM_ADD, Gosu::AM_MULTIPLY }
 Determines the way colors are combined when one is drawn onto another. More...
 
enum  Gosu::FontFlags { Gosu::FF_BOLD = 1, Gosu::FF_ITALIC = 2, Gosu::FF_UNDERLINE = 4, Gosu::FF_COMBINATIONS = 8 }
 
enum  Gosu::Alignment { Gosu::AL_LEFT, Gosu::AL_RIGHT, Gosu::AL_CENTER, Gosu::AL_JUSTIFY }
 
enum  Gosu::ImageFlags {
  Gosu::IF_SMOOTH = 0, Gosu::IF_TILEABLE_LEFT = 1 << 1, Gosu::IF_TILEABLE_TOP = 1 << 2, Gosu::IF_TILEABLE_RIGHT = 1 << 3,
  Gosu::IF_TILEABLE_BOTTOM = 1 << 4, Gosu::IF_TILEABLE = IF_TILEABLE_LEFT | IF_TILEABLE_TOP | IF_TILEABLE_RIGHT | IF_TILEABLE_BOTTOM, Gosu::IF_RETRO = 1 << 5
}
 Flags that affect the tileability or interpolation of an image. More...
 

Functions

Transform Gosu::translate (double x, double y)
 
Transform Gosu::rotate (double angle, double around_x=0, double around_y=0)
 
Transform Gosu::scale (double factor)
 
Transform Gosu::scale (double scale_x, double scale_y, double from_x=0, double from_y=0)
 
Transform Gosu::concat (const Transform &lhs, const Transform &rhs)
 

Detailed Description

Contains general typedefs and enums related to graphics.

Definition in file GraphicsBase.hpp.