37 static float _origo_x;
38 static float _origo_y;
39 static SDL_Renderer* _base;
40 static uint8_t _background_color_r;
41 static uint8_t _background_color_g;
42 static uint8_t _background_color_b;
43 static std::shared_ptr<texture> _background_texture;
44 static std::unique_ptr<texture, std::function<void(texture*)>> _space;
45 static uint8_t _space_color_r;
46 static uint8_t _space_color_g;
47 static uint8_t _space_color_b;
48 static uint8_t _space_color_a;
49 static std::shared_ptr<texture> _space_texture;
50 static SDL_FRect _space_area;
51 static std::unique_ptr<texture, std::function<void(texture*)>> _plane;
52 static uint8_t _plane_color_r;
53 static uint8_t _plane_color_g;
54 static uint8_t _plane_color_b;
55 static uint8_t _plane_color_a;
70 static void open_frame();
78 static void open_space();
86 static void open_plane();
95 [[nodiscard]]
static bool invisible(
renderable const& instance);
114 [[nodiscard]]
static bool offscreen(
renderable const& instance);
124 static void render(
renderable const& instance);
132 static void close_frame();
141 [[nodiscard]]
static float origo_x();
149 static void set_origo_x(
float origo_x);
157 [[nodiscard]]
static float origo_y();
165 static void set_origo_y(
float origo_y);
167#ifdef __WIZARD_ENGINE_INTERNAL__
174 [[nodiscard]]
static SDL_Renderer* base();
183 [[nodiscard]]
static uint8_t background_color_r();
191 static void set_background_color_r(uint8_t background_color_r);
199 [[nodiscard]]
static uint8_t background_color_g();
207 static void set_background_color_g(uint8_t background_color_g);
215 [[nodiscard]]
static uint8_t background_color_b();
223 static void set_background_color_b(uint8_t background_color_b);
232 [[nodiscard]]
static std::shared_ptr<texture>
const& background_texture();
242 set_background_texture(std::shared_ptr<texture>
const& background_texture);
250 [[nodiscard]]
static uint8_t space_color_r();
258 static void set_space_color_r(uint8_t space_color_r);
266 [[nodiscard]]
static uint8_t space_color_g();
274 static void set_space_color_g(uint8_t space_color_g);
282 [[nodiscard]]
static uint8_t space_color_b();
290 static void set_space_color_b(uint8_t space_color_b);
298 [[nodiscard]]
static uint8_t space_color_a();
306 static void set_space_color_a(uint8_t space_color_a);
316 [[nodiscard]]
static std::shared_ptr<texture>
const& space_texture();
327 set_space_texture(std::shared_ptr<texture>
const& space_texture);
335 [[nodiscard]]
static uint8_t plane_color_r();
343 static void set_plane_color_r(uint8_t plane_color_r);
351 [[nodiscard]]
static uint8_t plane_color_g();
359 static void set_plane_color_g(uint8_t plane_color_g);
367 [[nodiscard]]
static uint8_t plane_color_b();
375 static void set_plane_color_b(uint8_t plane_color_b);
383 [[nodiscard]]
static uint8_t plane_color_a();
391 static void set_plane_color_a(uint8_t plane_color_a);
393#ifdef __WIZARD_ENGINE_INTERNAL__
401 static void initialize();
404#ifdef __WIZARD_ENGINE_INTERNAL__
410 static void update();
413#ifdef __WIZARD_ENGINE_INTERNAL__
422 [[nodiscard]]
static std::pair<float, float> detransform(
float x,
float y);