Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cfsurf Struct Reference

cfsurf = Compressed Floating-point Surface. More...

#include <fack.hpp>

List of all members.

Public Member Functions

 cfsurf (int apparent_wt_, int apparent_ht_, int real_wt_, int real_ht_, int offset_x_, int offset_y_)
 cfsurf ()
 cfsurf (const cfsurf &l)
void set_pixel (int x, int y, rgbaf pix)
rgbaf get_pixel (int x, int y) const
void opaque_blit_to_sdl_surface (SDL_Surface *screen, SDL_Rect src_rect_to_blit) const
void blit_with_src_alpha (cfsurf &dest) const

Static Public Member Functions

static pt< cfsurffrom_sdl_surface (SDL_Surface *s)

Public Attributes

int offs_x
int offs_y
int apparent_wt
int apparent_ht
int real_wt
int real_ht
vector< rgbafpixels


Detailed Description

cfsurf = Compressed Floating-point Surface.

Definition at line 388 of file fack.hpp.


Constructor & Destructor Documentation

cfsurf::cfsurf int  apparent_wt_,
int  apparent_ht_,
int  real_wt_,
int  real_ht_,
int  offset_x_,
int  offset_y_
 

Definition at line 33 of file fack.cc.

References apparent_ht, apparent_wt, offs_x, offs_y, pixels, real_ht, and real_wt.

cfsurf::cfsurf  )  [inline]
 

Definition at line 397 of file fack.hpp.

Referenced by from_sdl_surface().

cfsurf::cfsurf const cfsurf l  )  [inline]
 

Definition at line 399 of file fack.hpp.

References apparent_ht, apparent_wt, offs_x, offs_y, pixels, real_ht, and real_wt.


Member Function Documentation

void cfsurf::blit_with_src_alpha cfsurf dest  )  const
 

Definition at line 274 of file time-critical-procs.cc.

References apparent_ht, apparent_wt, get_pixel(), offs_x, offs_y, real_ht, real_wt, and write_pixel_with_src_alpha().

pt< cfsurf > cfsurf::from_sdl_surface SDL_Surface *  s  )  [static]
 

Definition at line 191 of file fack.cc.

References apparent_ht, apparent_wt, cfsurf(), NEW, offs_x, offs_y, real_ht, real_wt, and rgbaf_of_rgbai().

Referenced by my_game::my_game().

rgbaf cfsurf::get_pixel int  x,
int  y
const [inline]
 

Definition at line 2725 of file fack.hpp.

References apparent_ht, apparent_wt, offs_x, offs_y, pixels, real_ht, and real_wt.

Referenced by blit_with_src_alpha(), and opaque_blit_to_sdl_surface().

void cfsurf::opaque_blit_to_sdl_surface SDL_Surface *  screen,
SDL_Rect  src_rect_to_blit
const
 

Todo:
slow! it has an if inside. We are sure the if will never be false, so refactor.

Definition at line 361 of file time-critical-procs.cc.

References rgbaf::b, rgbaf::g, get_pixel(), and rgbaf::r.

void cfsurf::set_pixel int  x,
int  y,
rgbaf  pix
[inline]
 

Parameters:
x  a number between l.offs_x and l.offs_x + l.real_wt
y  a number between l.offs_y and l.offs_y + l.real_ht

Definition at line 2699 of file fack.hpp.

References offs_x, offs_y, pixels, real_ht, and real_wt.


Member Data Documentation

int cfsurf::apparent_ht
 

Definition at line 390 of file fack.hpp.

Referenced by blit_with_src_alpha(), cfsurf(), from_sdl_surface(), and get_pixel().

int cfsurf::apparent_wt
 

Definition at line 390 of file fack.hpp.

Referenced by blit_with_src_alpha(), cfsurf(), from_sdl_surface(), and get_pixel().

int cfsurf::offs_x
 

Definition at line 389 of file fack.hpp.

Referenced by blit_with_src_alpha(), cfsurf(), from_sdl_surface(), get_pixel(), and set_pixel().

int cfsurf::offs_y
 

Definition at line 389 of file fack.hpp.

Referenced by blit_with_src_alpha(), cfsurf(), from_sdl_surface(), get_pixel(), and set_pixel().

vector<rgbaf> cfsurf::pixels
 

Definition at line 392 of file fack.hpp.

Referenced by cfsurf(), get_pixel(), and set_pixel().

int cfsurf::real_ht
 

Definition at line 391 of file fack.hpp.

Referenced by blit_with_src_alpha(), cfsurf(), from_sdl_surface(), get_pixel(), and set_pixel().

int cfsurf::real_wt
 

Definition at line 391 of file fack.hpp.

Referenced by blit_with_src_alpha(), cfsurf(), from_sdl_surface(), get_pixel(), and set_pixel().


The documentation for this struct was generated from the following files:
Generated on Wed May 25 15:36:08 2005 for FACK by  doxygen 1.4.0