#include <video.hpp>
Public Member Functions | |
CVideo () | |
CVideo (int x, int y, int bits_per_pixel, int flags) | |
~CVideo () | |
int | modePossible (int x, int y, int bits_per_pixel, int flags) |
int | setMode (int x, int y, int bits_per_pixel, int flags) |
bool | modeChanged () |
int | setGamma (float gamma) |
int | getx () const |
int | gety () const |
int | getBitsPerPixel () |
int | getBytesPerPixel () |
int | getRedMask () |
int | getGreenMask () |
int | getBlueMask () |
void | lock () |
void | unlock () |
int | mustLock () |
void | blit_surface (int x, int y, surface surf, SDL_Rect *srcrect=NULL, SDL_Rect *clip_rect=NULL) |
void | flip () |
surface | getSurface (void) |
bool | isFullScreen () const |
void | setBpp (int bpp) |
int | getBpp () |
void | make_fake () |
bool | faked () const |
int | set_help_string (const std::string &str) |
void | clear_help_string (int handle) |
void | clear_all_help_strings () |
void | lock_updates (bool value) |
bool | update_locked () const |
Private Attributes | |
bool | mode_changed_ |
int | bpp |
bool | fake_screen |
int | help_string_ |
int | updatesLocked_ |
Classes | |
struct | error |
struct | quit |
Definition at line 37 of file video.hpp.
CVideo::CVideo | ( | int | x, | |
int | y, | |||
int | bits_per_pixel, | |||
int | flags | |||
) |
int CVideo::modePossible | ( | int | x, | |
int | y, | |||
int | bits_per_pixel, | |||
int | flags | |||
) |
Definition at line 286 of file video.cpp.
References get_flags().
Referenced by main(), preferences::set_fullscreen(), and preferences::set_resolution().
int CVideo::setMode | ( | int | x, | |
int | y, | |||
int | bits_per_pixel, | |||
int | flags | |||
) |
Definition at line 291 of file video.cpp.
References fake_screen, frameBuffer, FULL_SCREEN, fullScreen, get_flags(), mode_changed_, image::set_pixel_format(), and update_rects.
Referenced by CVideo(), main(), preferences::set_fullscreen(), and preferences::set_resolution().
bool CVideo::modeChanged | ( | ) |
Definition at line 312 of file video.cpp.
References mode_changed_.
Referenced by fade_logo(), run_lobby_loop(), and gui::show_title().
int CVideo::setGamma | ( | float | gamma | ) |
Definition at line 319 of file video.cpp.
Referenced by preferences::set_adjust_gamma(), and preferences::set_gamma().
int CVideo::getx | ( | ) | const |
Definition at line 326 of file video.cpp.
References frameBuffer.
Referenced by loadscreen::clear_screen(), gui::dialog::dialog(), flip(), gui::dialog::layout(), run_lobby_loop(), set_help_string(), loadscreen::set_progress(), about::show_about(), show_intro_part(), show_intro_part_helper(), mp::ui::ui(), default_map_generator::user_config(), and display::w().
int CVideo::gety | ( | ) | const |
Definition at line 331 of file video.cpp.
References frameBuffer.
Referenced by loadscreen::clear_screen(), gui::dialog::dialog(), flip(), display::h(), gui::dialog::layout(), gui::menu::max_items_onscreen(), run_lobby_loop(), set_help_string(), loadscreen::set_progress(), about::show_about(), show_intro_part(), show_intro_part_helper(), mp::ui::ui(), and default_map_generator::user_config().
int CVideo::getBitsPerPixel | ( | ) |
int CVideo::getBytesPerPixel | ( | ) |
int CVideo::getRedMask | ( | ) |
int CVideo::getGreenMask | ( | ) |
int CVideo::getBlueMask | ( | ) |
void CVideo::lock | ( | ) |
void CVideo::unlock | ( | ) |
int CVideo::mustLock | ( | ) |
void CVideo::blit_surface | ( | int | x, | |
int | y, | |||
surface | surf, | |||
SDL_Rect * | srcrect = NULL , |
|||
SDL_Rect * | clip_rect = NULL | |||
) |
Definition at line 266 of file video.cpp.
References getSurface().
Referenced by draw_background(), gui::dialog_frame::draw_border(), gui::slider::draw_contents(), gui::scrollbar::draw_contents(), gui::dialog_image::draw_contents(), gui::button::draw_contents(), draw_panel(), mp::gamebrowser::draw_row(), gui::menu::imgsel_style::draw_row(), gui::menu::draw_row(), and gui::menu::imgsel_style::draw_row_bg().
void CVideo::flip | ( | ) |
Definition at line 361 of file video.cpp.
References clear_updates(), fake_screen, frameBuffer, getx(), gety(), update_all, and update_rects.
Referenced by gui2::twindow::flip(), and display::flip().
surface CVideo::getSurface | ( | void | ) |
Definition at line 415 of file video.cpp.
References frameBuffer.
Referenced by blit_surface(), loadscreen::clear_screen(), gui2::twindow::draw(), map_editor::brush_bar::draw(), map_editor::terrain_palette::draw(), display::draw_all_panels(), draw_background(), gui::dialog_frame::draw_background(), gui::textbox::draw_contents(), gui::slider::draw_contents(), gui::scrollbar::draw_contents(), gui::progress_bar::draw_contents(), mp::wait::leader_preview_pane::draw_contents(), help::help_text_area::draw_contents(), dialogs::unit_preview_pane::draw_contents(), gui::textbox::draw_cursor(), display::draw_image_for_report(), display::draw_minimap(), gui::menu::style::draw_row_bg(), font::draw_text_line(), editor_display::editor_display(), fade_logo(), game_display::game_display(), display::get_screen_surface(), gui::dialog::layout(), map_editor::preferences_dialog(), display::refresh_report(), surface_restorer::restore(), display::screenshot(), display::scroll(), loadscreen::set_progress(), gui2::twindow::show(), about::show_about(), help::show_help(), show_intro_part(), show_intro_part_helper(), preferences::show_video_mode_dialog(), the_end(), surface_restorer::update(), and map_editor::update_l_button_palette().
bool CVideo::isFullScreen | ( | ) | const |
Definition at line 420 of file video.cpp.
References fullScreen.
Referenced by preferences::set_fullscreen().
int CVideo::getBpp | ( | void | ) |
Definition at line 427 of file video.cpp.
References bpp.
Referenced by preferences::show_video_mode_dialog().
void CVideo::make_fake | ( | ) |
Definition at line 279 of file video.cpp.
References fake_screen, frameBuffer, and image::set_pixel_format().
bool CVideo::faked | ( | ) | const [inline] |
Definition at line 82 of file video.hpp.
References fake_screen.
Referenced by playmp_scenario(), playsingle_scenario(), gui::dialog::show(), and display::turbo_speed().
int CVideo::set_help_string | ( | const std::string & | str | ) |
Definition at line 432 of file video.cpp.
References font::add_floating_label(), font::CENTER_ALIGN, font::get_floating_label_rect(), getx(), gety(), help_string_, font::line_width(), font::move_floating_label(), font::NORMAL_COLOUR, rect, font::remove_floating_label(), screen_area(), size, font::SIZE_LARGE, and font::SIZE_NORMAL.
Referenced by gui::widget::process_help_string(), and gui::menu::process_help_string().
void CVideo::clear_help_string | ( | int | handle | ) |
Definition at line 464 of file video.cpp.
References help_string_, and font::remove_floating_label().
Referenced by clear_all_help_strings(), gui::widget::process_help_string(), and gui::menu::process_help_string().
void CVideo::clear_all_help_strings | ( | ) |
void CVideo::lock_updates | ( | bool | value | ) |
Definition at line 385 of file video.cpp.
References updatesLocked_.
Referenced by display::display(), update_locker::unlock_update(), and update_locker::update_locker().
bool CVideo::update_locked | ( | ) | const |
Definition at line 393 of file video.cpp.
References updatesLocked_.
Referenced by dialogs::animate_unit_advancement(), game_display::draw(), editor_display::draw(), move_unit_between(), game_events::pump(), display::redraw_everything(), display::scroll_to_xy(), gui::dialog::show(), teleport_unit_between(), unit_display::unit_attack(), unit_display::unit_die(), unit_display::unit_healing(), unit_display::unit_recruited(), and display::update_display().
bool CVideo::mode_changed_ [private] |
int CVideo::bpp [private] |
bool CVideo::fake_screen [private] |
int CVideo::help_string_ [private] |
Definition at line 109 of file video.hpp.
Referenced by clear_all_help_strings(), clear_help_string(), and set_help_string().
int CVideo::updatesLocked_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |