RotFlip.hpp File Reference

Interface of the RotFlip class. More...

Go to the source code of this file.


Classes

class  Gosu::RotFlip
 Light-weight class that encodes a rotation by 0, 90, 180, or 270 degrees as well as optional horizontal and/or vertical flips. More...

Namespaces

namespace  Gosu
 The library's main namespace.

Enumerations

enum  Gosu::RotFlipName {
  Gosu::rfDefault, Gosu::rfRotate90, Gosu::rfRotate180, Gosu::rfRotate270,
  Gosu::rfFlipX, Gosu::rfRotate90FlipX, Gosu::rfRotate180FlipX, Gosu::rfRotate270FlipX,
  Gosu::rfFlipY = rfRotate180FlipX, Gosu::rfRotate90FlipY = rfRotate270FlipX, Gosu::rfRotate180FlipY = rfFlipX, Gosu::rfRotate270FlipY = rfRotate90FlipX,
  Gosu::rfFlipXRotate90 = rfRotate270FlipX, Gosu::rfFlipXRotate180 = rfRotate180FlipX, Gosu::rfFlipXRotate270 = rfRotate90FlipX, Gosu::rfFlipYRotate90 = rfRotate90FlipX,
  Gosu::rfFlipYRotate180 = rfFlipX, Gosu::rfFlipYRotate270 = rfRotate270FlipX
}
 Human-understandable descriptions of the variants of rotations and flips that can be constructed. More...

Functions

bool Gosu::operator== (RotFlip a, RotFlip b)
bool Gosu::operator!= (RotFlip a, RotFlip b)
void Gosu::applyToPoint (RotFlip rotFlip, int &x, int &y, int max)
 Applies a RotFlip to a point x/y in a square of side length max.


Detailed Description

Interface of the RotFlip class.

Definition in file RotFlip.hpp.