Gamedev Framework (gf)  0.3.0
A C++11 framework for 2D games
Classes | Public Member Functions | Static Public Member Functions | List of all members
gf::Library Class Reference

A class to represent the library. More...

#include <gf/Library.h>

Classes

struct  Version
 Information about version. More...
 

Public Member Functions

 Library ()
 Default constructor. More...
 
 Library (const Library &)=delete
 Deleted copy constructor. More...
 
Libraryoperator= (const Library &)=delete
 Deleted copy assignment. More...
 
 Library (Library &&)
 Move constructor. More...
 
Libraryoperator= (Library &&)
 Move assignment. More...
 
 ~Library ()
 Destructor. More...
 

Static Public Member Functions

static Version getVersion ()
 Get the version of the gf library. More...
 
static void printVersionInfo ()
 Print the version information about the library and its dependencies. More...
 

Detailed Description

A class to represent the library.

This class is used to initialize the library (especially SDL). Normally, you do not have to care about it if you use a gf::Window or a gf::Monitor as the library is automatically initialized with these classes.

Internally, the class uses reference couting to avoid multiple initializations.

Constructor & Destructor Documentation

gf::Library::Library ( )

Default constructor.

This function initialize the library

gf::Library::Library ( const Library )
delete

Deleted copy constructor.

gf::Library::Library ( Library &&  )

Move constructor.

gf::Library::~Library ( )

Destructor.

This function quits the library

Member Function Documentation

static Version gf::Library::getVersion ( )
static

Get the version of the gf library.

Returns
The version of the gf library
Library& gf::Library::operator= ( const Library )
delete

Deleted copy assignment.

Library& gf::Library::operator= ( Library &&  )

Move assignment.

static void gf::Library::printVersionInfo ( )
static

Print the version information about the library and its dependencies.