5#include <SDL2/SDL_image.h>
6#include <SDL2/SDL_timer.h>
7#include <SDL2/SDL_ttf.h>
20 SDL_Renderer * my_renderer;
22 std::vector<std::unique_ptr<image>> vector_of_images;
24 std::vector<std::unique_ptr<font>> vector_of_fonts;
26 int window_width, window_height;
41 vector_of_images.push_back(std::move(i));
46 vector_of_fonts.push_back(std::move(f));
77 font(
machine & m,
const std::string & file_path,
int font_size);
Definition sdl_chomik.h:73
font(machine &m, const std::string &file_path, int font_size)
void render(machine &m, const std::string &t, int x, int y)
Definition sdl_chomik.h:62
image(machine &m, const std::string &file_path)
void render(machine &m, int x, int y)
Definition sdl_chomik.h:17
virtual void execute_user_defined_executable(const chomik::signature &s) override
void add_font(std::unique_ptr< font > &&f)
Definition sdl_chomik.h:44
int get_last_created_font_index() const
Definition sdl_chomik.h:58
virtual bool get_is_user_defined_executable(const chomik::signature &s) const override
virtual void create_predefined_variables() override
void add_image(std::unique_ptr< image > &&i)
Definition sdl_chomik.h:39
SDL_Renderer * get_renderer()
Definition sdl_chomik.h:37
int get_last_created_image_index() const
Definition sdl_chomik.h:56
Definition sdl_chomik.h:12