#include "draw.hpp"#include "color.hpp"#include "font/cairo.hpp"#include "log.hpp"#include "sdl/rect.hpp"#include "sdl/texture.hpp"#include "sdl/utils.hpp"#include "video.hpp"#include <boost/math/constants/constants.hpp>#include <SDL3/SDL_rect.h>#include <SDL3/SDL_render.h>Go to the source code of this file.
Macros | |
| #define | DBG_D LOG_STREAM(debug, log_draw) |
| #define | WRN_D LOG_STREAM(warn, log_draw) |
Functions | |
| static SDL_Renderer * | renderer () |
| SDL_FRect | rect_to_frect (const SDL_Rect &rect) |
| static bool | sdl_bad_at_rects () |
| Some versions of SDL have a bad rectangle drawing implementation. More... | |
| static void | draw_rect_as_lines (const rect &rect) |
| For some SDL versions, draw rectangles as lines. More... | |
| static SDL_FlipMode | get_flip (bool flip_h, bool flip_v) |
Variables | |
| static lg::log_domain | log_draw ("draw") |
| #define DBG_D LOG_STREAM(debug, log_draw) |
| #define WRN_D LOG_STREAM(warn, log_draw) |
|
static |
For some SDL versions, draw rectangles as lines.
Definition at line 156 of file draw.cpp.
References draw::line().
Referenced by draw::rect().
|
static |
Definition at line 443 of file draw.cpp.
Referenced by draw::flipped(), and draw::tiled_highres().
| SDL_FRect rect_to_frect | ( | const SDL_Rect & | rect | ) |
Definition at line 38 of file draw.cpp.
Referenced by draw::blit(), draw::fill(), draw::flipped(), and draw::rect().
|
static |
Definition at line 33 of file draw.cpp.
References video::get_renderer().
Referenced by draw::blit(), draw::clear(), draw::clip_enabled(), draw::disable_clip(), display::draw_hex(), display::draw_label(), display::draw_text_in_hex(), draw::fill(), draw::flipped(), draw::force_clip(), draw::force_viewport(), draw::get_clip(), draw::get_viewport(), draw::line(), draw::null_clip(), draw::point(), draw::points(), draw::rect(), draw::render_target_setter::render_target_setter(), texture::reset(), draw::set_blend_mode(), draw::set_color(), draw::smooth_shaded(), texture::texture(), draw::tiled_highres(), and draw::render_target_setter::~render_target_setter().
|
static |
Some versions of SDL have a bad rectangle drawing implementation.
Definition at line 145 of file draw.cpp.
References sdl::runtime_at_least().
Referenced by draw::rect().
|
static |