SUPER Space invader : Turbo edition DX - VS GOD 1.0.0
A simple space invader ripoff
mySprite.h
Go to the documentation of this file.
1#ifndef GUARD_MYSPRITE_H
2#define GUARD_MYSPRITE_H
3
4#include <future>
5#include <optional>
6#include "mingl/gui/sprite.h"
7#include "utils.h"
8
9using namespace std;
10
12public:
20 mutable optional<nsGui::Sprite> sp;
21
27 Task asyncLoad(const string& fname);
28
33 void mirror(MySprite& msp);
34};
35
36#endif
optional< nsGui::Sprite > sp
optional actual Sprite We need to use an optional to init the object through a function,...
Definition: mySprite.h:20
void mirror(MySprite &msp)
Mirror a sprite pixel data into this one.
Definition: mySprite.cpp:11
Task asyncLoad(const string &fname)
load a sprite asynchronously
Definition: mySprite.cpp:4
utilies for the game
future< void > Task
Definition: utils.h:53