CVideo Class Reference

#include <video.hpp>

List of all members.

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


Detailed Description

Definition at line 37 of file video.hpp.


Constructor & Destructor Documentation

CVideo::CVideo (  ) 

Definition at line 233 of file video.cpp.

References ERR_DP.

CVideo::CVideo ( int  x,
int  y,
int  bits_per_pixel,
int  flags 
)

Definition at line 243 of file video.cpp.

References ERR_DP, and setMode().

CVideo::~CVideo (  ) 

Definition at line 259 of file video.cpp.

References LOG_DP.


Member Function Documentation

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 
)

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

int CVideo::gety (  )  const

int CVideo::getBitsPerPixel (  ) 

Definition at line 336 of file video.cpp.

References frameBuffer.

int CVideo::getBytesPerPixel (  ) 

Definition at line 341 of file video.cpp.

References frameBuffer.

int CVideo::getRedMask (  ) 

Definition at line 346 of file video.cpp.

References frameBuffer.

int CVideo::getGreenMask (  ) 

Definition at line 351 of file video.cpp.

References frameBuffer.

int CVideo::getBlueMask (  ) 

Definition at line 356 of file video.cpp.

References frameBuffer.

void CVideo::lock (  ) 

Definition at line 398 of file video.cpp.

References frameBuffer.

void CVideo::unlock (  ) 

Definition at line 404 of file video.cpp.

References frameBuffer.

int CVideo::mustLock (  ) 

Definition at line 410 of file video.cpp.

References frameBuffer.

void CVideo::blit_surface ( int  x,
int  y,
surface  surf,
SDL_Rect *  srcrect = NULL,
SDL_Rect *  clip_rect = NULL 
)

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   ) 

bool CVideo::isFullScreen (  )  const

Definition at line 420 of file video.cpp.

References fullScreen.

Referenced by preferences::set_fullscreen().

void CVideo::setBpp ( int  bpp  ) 

Definition at line 422 of file video.cpp.

Referenced by main().

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  ) 

void CVideo::clear_help_string ( int  handle  ) 

void CVideo::clear_all_help_strings (  ) 

Definition at line 472 of file video.cpp.

References clear_help_string(), and help_string_.

void CVideo::lock_updates ( bool  value  ) 

bool CVideo::update_locked (  )  const


Member Data Documentation

bool CVideo::mode_changed_ [private]

Definition at line 101 of file video.hpp.

Referenced by modeChanged(), and setMode().

int CVideo::bpp [private]

Definition at line 103 of file video.hpp.

Referenced by getBpp().

bool CVideo::fake_screen [private]

Definition at line 106 of file video.hpp.

Referenced by faked(), flip(), make_fake(), and setMode().

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]

Definition at line 111 of file video.hpp.

Referenced by lock_updates(), and update_locked().


The documentation for this class was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs