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

anim_frame Struct Reference

#include <fack.hpp>

List of all members.

Public Member Functions

 anim_frame (int w, int h, int_pair hot_spot, float duration)
 anim_frame (int w, int h, int_pair hot_spot, float duration, const vector< rgbaf > &pixels)
 anim_frame ()
bool point_in_surf (int_pair p, int_pair pl, float scaling) const
 See doc/point-in-surf.xcf for an explanation.
void set_pixel (int x, int y, rgbaf pix)
rgbaf get_pixel (int x, int y) const
rgbaf get_pixel_with_interpolation (float px, float py) const

Static Public Member Functions

static pt< anim_framefrom_sdl_surface (SDL_Surface *s, int_pair hot_spot, float duration)

Public Attributes

int w
int h
vector< rgbafpixels
int_pair hot_spot
float duration


Constructor & Destructor Documentation

anim_frame::anim_frame int  w,
int  h,
int_pair  hot_spot,
float  duration
[inline]
 

Definition at line 765 of file fack.hpp.

References pixels.

anim_frame::anim_frame int  w,
int  h,
int_pair  hot_spot,
float  duration,
const vector< rgbaf > &  pixels
[inline]
 

Definition at line 773 of file fack.hpp.

References pixels.

anim_frame::anim_frame  )  [inline]
 

Definition at line 783 of file fack.hpp.

Referenced by from_sdl_surface().


Member Function Documentation

pt< anim_frame > anim_frame::from_sdl_surface SDL_Surface *  s,
int_pair  hot_spot,
float  duration
[static]
 

Definition at line 145 of file fack.cc.

References anim_frame(), h, NEW, and rgbaf_of_rgbai().

Referenced by my_game::my_game().

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

Definition at line 2835 of file fack.hpp.

References h, pixels, and w.

Referenced by get_pixel_with_interpolation(), and point_in_surf().

rgbaf anim_frame::get_pixel_with_interpolation float  px,
float  py
const [inline]
 

Definition at line 2751 of file fack.hpp.

References get_pixel(), h, max(), min(), mul_scalar_rgbaf(), sum_rgbaf(), and w.

bool anim_frame::point_in_surf int_pair  p,
int_pair  pl,
float  scaling
const
 

See doc/point-in-surf.xcf for an explanation.

Definition at line 4437 of file fack.cc.

References rgbaf::a, get_pixel(), hot_spot, int_pair::x, and int_pair::y.

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

Definition at line 123 of file fack.cc.

References h, pixels, and w.


Member Data Documentation

float anim_frame::duration
 

Definition at line 763 of file fack.hpp.

int anim_frame::h
 

Definition at line 760 of file fack.hpp.

Referenced by from_sdl_surface(), get_pixel(), get_pixel_with_interpolation(), and set_pixel().

int_pair anim_frame::hot_spot
 

Definition at line 762 of file fack.hpp.

Referenced by point_in_surf().

vector<rgbaf> anim_frame::pixels
 

Definition at line 761 of file fack.hpp.

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

int anim_frame::w
 

Definition at line 760 of file fack.hpp.

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


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