pixel_data Struct Reference

#include <sdl_utils.hpp>

List of all members.

Public Member Functions

 pixel_data ()
 pixel_data (int red, int green, int blue)
 pixel_data (int pixel, SDL_PixelFormat *fmt)
 pixel_data (config &cfg)
int format (SDL_PixelFormat *fmt) const
void unformat (int pixel, SDL_PixelFormat *fmt)
void read (const config &cfg)

Public Attributes

int r
int g
int b


Detailed Description

Definition at line 169 of file sdl_utils.hpp.


Constructor & Destructor Documentation

pixel_data::pixel_data (  )  [inline]

Definition at line 171 of file sdl_utils.hpp.

pixel_data::pixel_data ( int  red,
int  green,
int  blue 
) [inline]

Definition at line 174 of file sdl_utils.hpp.

pixel_data::pixel_data ( int  pixel,
SDL_PixelFormat *  fmt 
) [inline]

Definition at line 177 of file sdl_utils.hpp.

References unformat().

pixel_data::pixel_data ( config cfg  )  [inline]

Definition at line 181 of file sdl_utils.hpp.

References read().


Member Function Documentation

int pixel_data::format ( SDL_PixelFormat *  fmt  )  const [inline]

Definition at line 185 of file sdl_utils.hpp.

References b, g, and r.

void pixel_data::unformat ( int  pixel,
SDL_PixelFormat *  fmt 
) [inline]

Definition at line 189 of file sdl_utils.hpp.

References b, g, and r.

Referenced by pixel_data().

void pixel_data::read ( const config cfg  ) 

Definition at line 1603 of file sdl_utils.cpp.

References b, g, and r.

Referenced by pixel_data().


Member Data Documentation

Definition at line 197 of file sdl_utils.hpp.

Referenced by format(), read(), and unformat().

Definition at line 197 of file sdl_utils.hpp.

Referenced by format(), read(), and unformat().

Definition at line 197 of file sdl_utils.hpp.

Referenced by format(), read(), and unformat().


The documentation for this struct 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