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

Helper structure for rendering the terrains. More...

#include <display.hpp>

Public Member Functions

 tblit (const tdrawing_layer layer, const map_location &loc, const int x, const int y, const surface &surf, const SDL_Rect &clip)
 
 tblit (const tdrawing_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 tblit &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 1003 of file display.hpp.

Constructor & Destructor Documentation

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

Definition at line 1018 of file display.hpp.

display::tblit::tblit ( const tdrawing_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 1025 of file display.hpp.

Member Function Documentation

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

Definition at line 1039 of file display.hpp.

References clip_.

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

Definition at line 1042 of file display.hpp.

References key_.

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

Definition at line 1038 of file display.hpp.

References surf_.

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

Definition at line 1033 of file display.hpp.

References x_.

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

Definition at line 1034 of file display.hpp.

References y_.

Member Data Documentation

SDL_Rect display::tblit::clip_
private

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

Definition at line 1051 of file display.hpp.

Referenced by clip().

drawing_buffer_key display::tblit::key_
private

Definition at line 1056 of file display.hpp.

Referenced by operator<().

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

surface(s) to render.

Definition at line 1050 of file display.hpp.

Referenced by surf().

int display::tblit::x_
private

x screen coordinate to render at.

Definition at line 1045 of file display.hpp.

Referenced by x().

int display::tblit::y_
private

y screen coordinate to render at.

Definition at line 1046 of file display.hpp.

Referenced by y().


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