Public Member Functions | Private Attributes

display::tblit Class Reference

Helper structure for rendering the terrains. More...

#include <display.hpp>

Collaboration diagram for display::tblit:
Collaboration graph
[legend]

List of all members.

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.
int y_
 y screen coordinate to render at.
std::vector< surfacesurf_
 surface(s) to render.
SDL_Rect clip_
 The clipping area of the source if ommitted the entire source is used.
drawing_buffer_key key_

Detailed Description

Helper structure for rendering the terrains.

Definition at line 837 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 840 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 847 of file display.hpp.


Member Function Documentation

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

Definition at line 857 of file display.hpp.

References clip_.

Referenced by display::drawing_buffer_commit().

Here is the caller graph for this function:

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

Definition at line 859 of file display.hpp.

References key_.

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

Definition at line 856 of file display.hpp.

References surf_.

Referenced by display::drawing_buffer_commit().

Here is the caller graph for this function:

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

Definition at line 854 of file display.hpp.

References x_.

Referenced by display::drawing_buffer_commit().

Here is the caller graph for this function:

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

Definition at line 855 of file display.hpp.

References y_.

Referenced by display::drawing_buffer_commit().

Here is the caller graph for this function:


Member Data Documentation

SDL_Rect display::tblit::clip_ [private]

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

Definition at line 865 of file display.hpp.

Referenced by clip().

Definition at line 869 of file display.hpp.

Referenced by operator<().

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

surface(s) to render.

Definition at line 864 of file display.hpp.

Referenced by surf().

int display::tblit::x_ [private]

x screen coordinate to render at.

Definition at line 862 of file display.hpp.

Referenced by x().

int display::tblit::y_ [private]

y screen coordinate to render at.

Definition at line 863 of file display.hpp.

Referenced by y().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:13:46 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs