1 #ifndef SDLGRAPHICSPROGRAM_HPP
2 #define SDLGRAPHICSPROGRAM_HPP
17 #include <SDL2/SDL_ttf.h>
39 std::vector<Brick> board = {};
40 std::map<BlockColor, std::string> colorMapping = {
48 std::map<std::string, std::shared_ptr<BasicText>> textObjects;
49 std::unique_ptr<Translator> gTranslator;
55 SDL_Renderer *gRenderer = NULL;
Definition: GameObject.hpp:222
Definition: GameObject.hpp:290
Yellow tile.
Definition: LevelManager.hpp:24
Grey tile.
Definition: LevelManager.hpp:21
Purple tile.
Definition: LevelManager.hpp:22
Green tile.
Definition: LevelManager.hpp:20
Blue tile.
Definition: LevelManager.hpp:19
SDL_Renderer * getSDLRenderer()
Get Pointer to Renderer.
Definition: SDLGraphicsProgram.cpp:416
SDL_Window * getSDLWindow()
Get Pointer to Window.
Definition: SDLGraphicsProgram.cpp:410
void loop()
game loop
Definition: SDLGraphicsProgram.cpp:276
void render()
Renders shapes to the screen.
Definition: SDLGraphicsProgram.cpp:232
Definition: TinyMath.hpp:15
void update(int lastFPS, float dt, Vector3D speed)
per frame updating
Definition: SDLGraphicsProgram.cpp:208
Language
Definition: LocalizationManager.hpp:20
Red tile.
Definition: LevelManager.hpp:23
Definition: LevelManager.hpp:30
SDLGraphicsProgram(int w, int h, std::string level, Language l)
creates the program with a certain width/height.
Definition: SDLGraphicsProgram.cpp:32
Definition: SDLGraphicsProgram.hpp:26
~SDLGraphicsProgram()
cleans up sdl program
Definition: SDLGraphicsProgram.cpp:190