Robot Devastation
src
libraries
UserInterfaceLib
InitScreen.hpp
1
// Authors: see AUTHORS.md at project root.
2
// CopyPolicy: released under the terms of the LGPLv2.1, see LICENSE at project root.
3
// URL: https://github.com/asrob-uc3m/robotDevastation
4
5
#ifndef __RD_INIT_SCREEN_HPP__
6
#define __RD_INIT_SCREEN_HPP__
7
8
#include <string>
9
10
#include <SDL.h>
11
#include <SDL_ttf.h>
12
13
#include "Screen.hpp"
14
15
namespace
rd
{
16
22
class
InitScreen
:
public
Screen
23
{
24
public
:
25
InitScreen
();
26
virtual
bool
init();
27
virtual
bool
cleanup();
28
virtual
bool
drawScreen(
void
*screen);
29
virtual
~
InitScreen
();
30
31
protected
:
32
static
const
std::string SPLASH_PATH;
33
static
const
std::string FONT_PATH;
34
35
private
:
36
TTF_Font * font;
37
SDL_Surface * text_surface;
38
SDL_Surface * image;
39
};
40
41
}
42
43
#endif // __RD_INIT_SCREEN_HPP__
rd
The main, catch-all namespace for Robot Devastation.
Definition:
groups.dox:4
rd::Screen
A User Interface.
Definition:
Screen.hpp:24
rd::InitScreen
A User Interface.
Definition:
InitScreen.hpp:22
Generated on Wed Apr 6 2022 18:44:37 for Robot Devastation by
1.8.17