The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
display::blit_helper Class Reference

Helper structure for rendering the terrains. More...

#include <display.hpp>

Public Member Functions

 blit_helper (const drawing_layer layer, const map_location &loc, const int x, const int y, const surface &surf, const SDL_Rect &clip)
 
 blit_helper (const drawing_layer layer, const map_location &loc, const int x, const int y, const std::vector< surface > &surf, const SDL_Rect &clip)
 
int x () const
 
int y () const
 
const std::vector< surface > & surf () const
 
const SDL_Rect & clip () const
 
bool operator< (const blit_helper &rhs) const
 

Private Attributes

int x_
 x screen coordinate to render at. More...
 
int y_
 y screen coordinate to render at. More...
 
std::vector< surfacesurf_
 surface(s) to render. More...
 
SDL_Rect clip_
 The clipping area of the source if omitted the entire source is used. More...
 
drawing_buffer_key key_
 

Detailed Description

Helper structure for rendering the terrains.

Definition at line 903 of file display.hpp.

Constructor & Destructor Documentation

display::blit_helper::blit_helper ( const drawing_layer  layer,
const map_location loc,
const int  x,
const int  y,
const surface surf,
const SDL_Rect &  clip 
)
inline

Definition at line 906 of file display.hpp.

display::blit_helper::blit_helper ( const drawing_layer  layer,
const map_location loc,
const int  x,
const int  y,
const std::vector< surface > &  surf,
const SDL_Rect &  clip 
)
inline

Definition at line 913 of file display.hpp.

Member Function Documentation

const SDL_Rect& display::blit_helper::clip ( ) const
inline

Definition at line 923 of file display.hpp.

References clip_.

bool display::blit_helper::operator< ( const blit_helper rhs) const
inline

Definition at line 925 of file display.hpp.

References key_.

const std::vector<surface>& display::blit_helper::surf ( ) const
inline

Definition at line 922 of file display.hpp.

References surf_.

int display::blit_helper::x ( ) const
inline

Definition at line 920 of file display.hpp.

References x_.

int display::blit_helper::y ( ) const
inline

Definition at line 921 of file display.hpp.

References y_.

Member Data Documentation

SDL_Rect display::blit_helper::clip_
private

The clipping area of the source if omitted the entire source is used.

Definition at line 931 of file display.hpp.

Referenced by clip().

drawing_buffer_key display::blit_helper::key_
private

Definition at line 935 of file display.hpp.

Referenced by operator<().

std::vector<surface> display::blit_helper::surf_
private

surface(s) to render.

Definition at line 930 of file display.hpp.

Referenced by surf().

int display::blit_helper::x_
private

x screen coordinate to render at.

Definition at line 928 of file display.hpp.

Referenced by x().

int display::blit_helper::y_
private

y screen coordinate to render at.

Definition at line 929 of file display.hpp.

Referenced by y().


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