Image_window8 Class Reference

#include <iwin8.h>

Inheritance diagram for Image_window8:

Inheritance graph
[legend]
Collaboration diagram for Image_window8:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Image_window8 (unsigned int w, unsigned int h, int scl=1, bool fs=false, int sclr=point)
 ~Image_window8 ()
Image_buffer8get_ib8 () const
virtual void set_palette (unsigned char *rgbs, int maxval, int brightness=100)
virtual void rotate_colors (int first, int num, int upd)
void fill8 (unsigned char val)
void fill8 (unsigned char val, int srcw, int srch, int destx, int desty)
void fill_line8 (unsigned char val, int srcw, int destx, int desty)
void copy8 (unsigned char *src_pixels, int srcw, int srch, int destx, int desty)
void copy_line8 (unsigned char *src_pixels, int srcw, int destx, int desty)
void copy_line_translucent8 (unsigned char *src_pixels, int srcw, int destx, int desty, int first_translucent, int last_translucent, Xform_palette *xforms)
void fill_line_translucent8 (unsigned char val, int srcw, int destx, int desty, Xform_palette &xform)
void copy_transparent8 (unsigned char *src_pixels, int srcw, int srch, int destx, int desty)
unsigned char get_pixel8 (int x, int y)
void put_pixel8 (unsigned char pix, int x, int y)
unsigned char * mini_screenshot ()

Static Public Member Functions

static void get_gamma (float &r, float &g, float &b)
static void set_gamma (float r, float g, float b)

Private Attributes

unsigned char colors [768]
Image_buffer8ib8

Static Private Attributes

static GammaTable< unsigned
char > 
GammaRed
static GammaTable< unsigned
char > 
GammaGreen
static GammaTable< unsigned
char > 
GammaBlue

Detailed Description

Definition at line 38 of file iwin8.h.


Constructor & Destructor Documentation

Image_window8::Image_window8 ( unsigned int  w,
unsigned int  h,
int  scl = 1,
bool  fs = false,
int  sclr = point 
)

Definition at line 48 of file iwin8.cc.

References ib8, and Image_window::ibuf.

Image_window8::~Image_window8 (  ) 

Definition at line 56 of file iwin8.cc.


Member Function Documentation

Image_buffer8* Image_window8::get_ib8 (  )  const [inline]

Definition at line 51 of file iwin8.h.

References ib8.

Referenced by ShapeBrowser::browse_shapes(), ExultMenu::ExultMenu(), Game::Game(), MenuChoice::paint(), Shape_manager::paint_text(), Shape_manager::paint_text_box(), Game_window::plasma(), ExultMenu::run(), BG_Game::scene_guardian(), Set_renderer(), TextScroller::show_line(), CheatScreen::show_screen(), and SoundTester::test_sound().

void Image_window8::set_palette ( unsigned char *  rgbs,
int  maxval,
int  brightness = 100 
) [virtual]

Reimplemented from Image_window.

Definition at line 96 of file iwin8.cc.

References Get_color8().

Referenced by Palette::apply(), Palette::fade_in(), and Palette::fade_out().

Here is the call graph for this function:

void Image_window8::rotate_colors ( int  first,
int  num,
int  upd 
) [virtual]

Reimplemented from Image_window.

Definition at line 121 of file iwin8.cc.

Referenced by Handle_events().

void Image_window8::fill8 ( unsigned char  val  )  [inline]

Reimplemented from Image_window.

Definition at line 62 of file iwin8.h.

References ib8.

Referenced by ShapeBrowser::browse_shapes(), Game_window::clear_screen(), BG_Game::end_game(), BG_Game::new_game(), Paint_map::paint(), MenuChoice::paint(), Text_button::paint(), Gump_text::paint(), Stat_bar::paint(), Cheat_map::paint(), Game_render::paint_blackness(), Paint_chunk_outline(), Newfile_gump::PaintSaveName(), Palette::show(), and Wizard_eye().

void Image_window8::fill8 ( unsigned char  val,
int  srcw,
int  srch,
int  destx,
int  desty 
) [inline]

Reimplemented from Image_window.

Definition at line 65 of file iwin8.h.

References ib8, and IF_OPENGL.

void Image_window8::fill_line8 ( unsigned char  val,
int  srcw,
int  destx,
int  desty 
) [inline]

Reimplemented from Image_window.

Definition at line 70 of file iwin8.h.

References ib8.

void Image_window8::copy8 ( unsigned char *  src_pixels,
int  srcw,
int  srch,
int  destx,
int  desty 
) [inline]

Reimplemented from Image_window.

Definition at line 74 of file iwin8.h.

References ib8.

Referenced by Game_render::paint_chunk_flats(), and Chunk_terrain::render_all().

void Image_window8::copy_line8 ( unsigned char *  src_pixels,
int  srcw,
int  destx,
int  desty 
) [inline]

Reimplemented from Image_window.

Definition at line 79 of file iwin8.h.

References ib8.

void Image_window8::copy_line_translucent8 ( unsigned char *  src_pixels,
int  srcw,
int  destx,
int  desty,
int  first_translucent,
int  last_translucent,
Xform_palette xforms 
) [inline]

Reimplemented from Image_window.

Definition at line 84 of file iwin8.h.

References ib8.

void Image_window8::fill_line_translucent8 ( unsigned char  val,
int  srcw,
int  destx,
int  desty,
Xform_palette xform 
) [inline]

Reimplemented from Image_window.

Definition at line 92 of file iwin8.h.

References ib8.

void Image_window8::copy_transparent8 ( unsigned char *  src_pixels,
int  srcw,
int  srch,
int  destx,
int  desty 
) [inline]

Reimplemented from Image_window.

Definition at line 97 of file iwin8.h.

References ib8.

unsigned char Image_window8::get_pixel8 ( int  x,
int  y 
) [inline]

Definition at line 102 of file iwin8.h.

References ib8.

Referenced by Raindrop::paint().

void Image_window8::put_pixel8 ( unsigned char  pix,
int  x,
int  y 
) [inline]

Definition at line 104 of file iwin8.h.

References ib8.

Referenced by Raindrop::next(), Raindrop::next_random(), and Raindrop::paint().

void Image_window8::get_gamma ( float &  r,
float &  g,
float &  b 
) [static]

Definition at line 61 of file iwin8.cc.

References GammaBlue, GammaGreen, GammaRed, and GammaTable< T >::get_gamma().

Referenced by change_gamma().

Here is the call graph for this function:

void Image_window8::set_gamma ( float  r,
float  g,
float  b 
) [static]

Definition at line 68 of file iwin8.cc.

References GammaBlue, GammaGreen, GammaRed, and GammaTable< T >::set_gamma().

Referenced by BuildGameMap(), change_gamma(), and Init().

Here is the call graph for this function:

unsigned char * Image_window8::mini_screenshot (  ) 

Definition at line 154 of file iwin8.cc.

References colors, Image_buffer::get_bits(), Image_window::get_height(), Image_buffer::get_line_width(), Image_window::get_width(), Image_window::ibuf, and Image_window::surface.

Referenced by Game_window::create_mini_screenshot().

Here is the call graph for this function:


Member Data Documentation

unsigned char Image_window8::colors[768] [private]

Definition at line 40 of file iwin8.h.

Referenced by mini_screenshot().

Image_buffer8* Image_window8::ib8 [private]

Definition at line 41 of file iwin8.h.

Referenced by copy8(), copy_line8(), copy_line_translucent8(), copy_transparent8(), fill8(), fill_line8(), fill_line_translucent8(), get_ib8(), get_pixel8(), Image_window8(), and put_pixel8().

GammaTable< uint8 > Image_window8::GammaRed [static, private]

Definition at line 43 of file iwin8.h.

Referenced by get_gamma(), and set_gamma().

GammaTable< uint8 > Image_window8::GammaGreen [static, private]

Definition at line 44 of file iwin8.h.

Referenced by get_gamma(), and set_gamma().

GammaTable< uint8 > Image_window8::GammaBlue [static, private]

Definition at line 45 of file iwin8.h.

Referenced by get_gamma(), and set_gamma().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:56:13 2007 for ExultEngine by  doxygen 1.5.1