Gamedev Framework (gf) 1.2.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::Grid
 A grid of cells. 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 class  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 class 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.