Gamedev Framework (gf)  0.19.0
A C++17 framework for 2D games
Classes | Enumerations
Drawables

Drawable objects. More...

Classes

class  gf::BufferedGeometry
 A drawable for buffers. More...
 
class  gf::Drawable
 Abstract base class for objects that can be drawn to a render window. More...
 
class  gf::SquareGrid
 A square grid. More...
 
class  gf::HexagonGrid
 A hexagonal grid. More...
 
class  gf::Logo
 The gf logo. More...
 
class  gf::Transformable
 Decomposed transform defined by a position, a rotation and a scale. More...
 
class  gf::VertexArray
 A set of primitives. More...
 

Enumerations

enum  gf::Anchor {
  gf::Anchor::TopLeft,
  gf::Anchor::TopCenter,
  gf::Anchor::TopRight,
  gf::Anchor::CenterLeft,
  gf::Anchor::Center,
  gf::Anchor::CenterRight,
  gf::Anchor::BottomLeft,
  gf::Anchor::BottomCenter,
  gf::Anchor::BottomRight
}
 An anchor of a box. More...
 

Detailed Description

Drawable objects.

Enumeration Type Documentation

◆ Anchor

enum gf::Anchor
strong

An anchor of a box.

It is used to define the origin in transformable objects. It is also used to compute coordinates for HUD.

See also
gf::Transformable, gf::Coordinates
Enumerator
TopLeft 

Top-left.

TopCenter 

Top-center.

TopRight 

Top-right.

CenterLeft 

Center-left.

Center 

Center.

CenterRight 

Center-right.

BottomLeft 

Bottom-left.

BottomCenter 

Bottom-center.

BottomRight 

Bottom-right.