|
| void | video::render_screen () |
| |
| static void | video::init_window (bool hidden=false) |
| |
| static void | video::init_test_window () |
| |
| static void | video::init_fake () |
| |
| static void | video::init_test () |
| |
| static bool | video::update_framebuffer () |
| |
| static bool | video::update_test_framebuffer () |
| | Returns true if the buffer was changed.
|
| |
| static point | video::draw_offset () |
| |
| void | video::init (fake fake_type=fake::none) |
| | Initialize the video subsystem.
|
| |
| void | video::deinit () |
| | Deinitialize the video subsystem.
|
| |
| bool | video::headless () |
| | The game is running headless.
|
| |
| bool | video::testing () |
| | The game is running unit tests.
|
| |
| bool | video::has_window () |
| | Whether the game has set up a window to render into.
|
| |
| point | video::output_size () |
| | Returns the size of the final render target.
|
| |
| point | video::window_size () |
| | Returns the size of the window in display units / screen coordinates.
|
| |
| rect | video::game_canvas () |
| | The game canvas area, in drawing coordinates.
|
| |
| point | video::game_canvas_size () |
| | The size of the game canvas, in drawing coordinates / game pixels.
|
| |
| point | video::draw_size () |
| | The size of the current render target in drawing coordinates.
|
| |
| rect | video::draw_area () |
| | The current drawable area.
|
| |
| rect | video::output_area () |
| | {0, 0, output_size().x, output_size().y}
|
| |
| rect | video::to_output (const rect &draw_space_rect) |
| | Convert coordinates in draw space to coordinates in render space.
|
| |
| rect | video::input_area () |
| | Returns the input area of the window, in display coordinates.
|
| |
| int | video::get_pixel_scale () |
| | Get the current active pixel scale multiplier.
|
| |
| int | video::get_max_pixel_scale () |
| |
| int | video::native_refresh_rate () |
| | The native refresh rate of display, not taking any user preferences into account.
|
| |
| int | video::current_refresh_rate () |
| | The refresh rate of the screen.
|
| |
| float | video::content_scaling () |
| |
| float | video::pixel_density () |
| |
| float | video::display_scaling () |
| |
| void | video::force_render_target (const texture &t) |
| | Set the render target, without any provided way of setting it back.
|
| |
| void | video::clear_render_target () |
| | Reset the render target to the main window / screen.
|
| |
| void | video::reset_render_target () |
| | Reset the render target to the primary render buffer.
|
| |
| texture | video::get_render_target () |
| | Get the current render target.
|
| |
| surface | video::read_pixels (rect *r=nullptr) |
| | Copy back a portion of the render target that is already drawn.
|
| |
| surface | video::read_pixels_low_res (rect *r=nullptr) |
| | The same as read_pixels, but returns a low-resolution surface suitable for use with the old drawing system.
|
| |
| void | video::set_window_title (const std::string &title) |
| | Sets the title of the main window.
|
| |
| void | video::set_window_icon (surface &icon) |
| | Sets the icon of the main window.
|
| |
| SDL_Renderer * | video::get_renderer () |
| |
| SDL_Window * | video::get_window () |
| |
| std::string | video::current_driver () |
| | The current video driver in use, or else "<not initialized>".
|
| |
| std::vector< std::string > | video::enumerate_drivers () |
| | A list of available video drivers.
|
| |
| static bool | video::window_has_flags (uint32_t flags) |
| | Tests whether the given flags are currently set on the SDL window.
|
| |
| bool | video::window_is_visible () |
| | True iff the window is not hidden.
|
| |
| bool | video::window_has_focus () |
| | True iff the window has mouse or input focus.
|
| |
| bool | video::window_has_mouse_focus () |
| | True iff the window has mouse focus.
|
| |
| std::vector< point > | video::get_available_resolutions (bool include_current=false) |
| | Returns the list of available screen resolutions.
|
| |
| point | video::current_resolution () |
| | The current window size in desktop coordinates.
|
| |
| void | video::set_fullscreen (bool) |
| | Set the fullscreen state.
|
| |
| void | video::toggle_fullscreen () |
| | Toggle fullscreen mode.
|
| |
| bool | video::set_resolution (const point &resolution) |
| | Set the window resolution.
|
| |
| void | video::update_buffers (bool autoupdate=true) |
| | Update buffers to match current resolution and pixel scale settings.
|
| |
| std::vector< std::string > | video::get_available_renderers () |
| | Returns a list of all available renderers.
|
| |
| std::vector< std::pair< std::string, std::string > > | video::renderer_report () |
| | Provides diagnostic information about the current renderer for the build_info API.
|
| |