![]() |
Gamedev Framework (gf)
0.5.0
A C++11 framework for 2D games
|
A class to represent the library. More...
#include <gf/Library.h>
Classes | |
| struct | Version |
| Information about version. More... | |
Public Types | |
| enum | Dependency { Boost, SimpleDirectMediaLayer, FreeType } |
| Depedencies of gf. More... | |
Public Member Functions | |
| Library () | |
| Default constructor. More... | |
| Library (const Library &)=delete | |
| Deleted copy constructor. More... | |
| Library & | operator= (const Library &)=delete |
| Deleted copy assignment. More... | |
| Library (Library &&) | |
| Move constructor. More... | |
| Library & | operator= (Library &&) |
| Move assignment. More... | |
| ~Library () | |
| Destructor. More... | |
Static Public Member Functions | |
| static Version | getVersion () |
| Get the version of the gf library. More... | |
| static std::tuple< Version, Version > | getDependencyVersion (Dependency dep) |
| Get the version information about the library dependencies. More... | |
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.
| gf::Library::Library | ( | ) |
Default constructor.
This function initialize the library
|
delete |
Deleted copy constructor.
| gf::Library::Library | ( | Library && | ) |
Move constructor.
| gf::Library::~Library | ( | ) |
Destructor.
This function quits the library
|
static |
Get the version information about the library dependencies.
|
static |
Get the version of the gf library.
1.8.13