video.cpp File Reference

Video-testprogram, standalone. More...

#include "global.hpp"
#include <stdio.h>
#include <iostream>
#include <vector>
#include "events.hpp"
#include "font.hpp"
#include "image.hpp"
#include "log.hpp"
#include "preferences_display.hpp"
#include "video.hpp"

Include dependency graph for video.cpp:

Go to the source code of this file.

Defines

#define LOG_DP   LOG_STREAM(info, display)
#define ERR_DP   LOG_STREAM(err, display)
#define TEST_VIDEO_ON   0

Functions

static unsigned int get_flags (unsigned int flags)
static bool rect_contains (const SDL_Rect &a, const SDL_Rect &b)
static void clear_updates ()
bool non_interactive ()
surface display_format_alpha (surface surf)
surface get_video_surface ()
SDL_Rect screen_area ()
void update_rect (size_t x, size_t y, size_t w, size_t h)
void update_rect (const SDL_Rect &rect_value)
void update_whole_screen ()

Variables

bool fullScreen = false
int disallow_resize = 0
std::vector< SDL_Rect > update_rects
bool update_all = false
surface frameBuffer = NULL


Detailed Description

Video-testprogram, standalone.

Definition in file video.cpp.


Define Documentation

#define ERR_DP   LOG_STREAM(err, display)

Definition at line 34 of file video.cpp.

#define LOG_DP   LOG_STREAM(info, display)

Definition at line 33 of file video.cpp.

#define TEST_VIDEO_ON   0

Definition at line 36 of file video.cpp.


Function Documentation

static void clear_updates (  )  [static]

Definition at line 122 of file video.cpp.

References update_all, and update_rects.

Referenced by CVideo::flip().

surface display_format_alpha ( surface  surf  ) 

Definition at line 139 of file video.cpp.

Referenced by create_optimized_surface().

static unsigned int get_flags ( unsigned int  flags  )  [static]

Definition at line 100 of file video.cpp.

Referenced by CVideo::modePossible(), and CVideo::setMode().

surface get_video_surface (  ) 

Definition at line 149 of file video.cpp.

Referenced by gui2::twindow::flip(), and display::flip().

bool non_interactive (  ) 

static bool rect_contains ( const SDL_Rect &  a,
const SDL_Rect &  b 
) [static]

Definition at line 118 of file video.cpp.

Referenced by update_rect().

SDL_Rect screen_area (  ) 

void update_rect ( const SDL_Rect &  rect_value  ) 

Definition at line 166 of file video.cpp.

void update_rect ( size_t  x,
size_t  y,
size_t  w,
size_t  h 
)

void update_whole_screen (  ) 


Variable Documentation

int disallow_resize = 0 [static]

surface frameBuffer = NULL [static]

bool fullScreen = false [static]

Definition at line 79 of file video.cpp.

Referenced by CVideo::isFullScreen(), and CVideo::setMode().

bool update_all = false [static]

Definition at line 115 of file video.cpp.

Referenced by clear_updates(), CVideo::flip(), update_rect(), and update_whole_screen().

std::vector<SDL_Rect> update_rects [static]

Definition at line 114 of file video.cpp.

Referenced by clear_updates(), CVideo::flip(), CVideo::setMode(), and update_rect().


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