#include <win32.h>
Inheritance diagram for bitmap_renderer:
Public Methods | |
bitmap_renderer () throw (std::exception) | |
virtual | ~bitmap_renderer () throw () |
virtual bool | init_frame (const point &size) throw (std::exception) |
start of animation output | |
bool | set_palette (const palette &pal) throw () |
set a new palette | |
virtual void | dump (char *data, int size)=0 throw (std::exception) |
void | save (int f=-1) throw (std::exception) |
int | get_frame () const throw () |
virtual char * | lock_frame (int frame) throw (std::exception) |
lock a frame buffer | |
virtual bool | unlock_frame () throw () |
unlock a frame buffer | |
virtual bool | flip_frame () throw () |
flip a frame buffer | |
virtual bool | start_decode (const std::string &fname, int version, int nbframes) throw () |
start of animation output | |
virtual sound_renderer * | get_sound_renderer () throw (std::exception) |
request for a sound_renderer | |
virtual bool | wait (int ms)=0 throw (std::exception) |
wait for some time | |
virtual bool | save_current () throw () |
debugging function : do not use | |
Static Public Attributes | |
const int | HEADER_SIZE |
Protected Methods | |
const BITMAPINFO * | get_bmi () const throw () |
const std::string & | get_filename () const throw () |
int | get_nbframes () const throw () |
int | get_width () const throw () |
int | get_height () const throw () |
const palette & | pal () const throw () |
const char * | data () const throw () |
void | clean () throw () |
memory cleanup (deletes frame buffer) | |
void | set_frame (int f) throw () |
Private Attributes | |
int | _padding |
bitmap padding (width modulo 4) | |
BITMAPINFO * | _bmi |
pointer to the bitmap header and bitmap data. |
This class contains utility functions that convert a frame buffer to a valid windows DIB.
Definition at line 48 of file win32.h.
|
|
|
|
|
memory cleanup (deletes frame buffer)
Reimplemented in window_renderer. Definition at line 25 of file brenderer.cpp. |
|
Definition at line 54 of file brenderer.h. References base_renderer::_data. Referenced by font_renderer::save(). |
|
Implemented in bitmap_file_renderer, and window_renderer. |
|
flip a frame buffer This is called by the animation player when the current frame should be shown.
Implements renderer. Definition at line 65 of file brenderer.cpp. |
|
Definition at line 55 of file win32.h. References _bmi. Referenced by window_renderer::windowProc(). |
|
Definition at line 49 of file brenderer.h. References base_renderer::_fname. |
|
Definition at line 58 of file brenderer.h. References base_renderer::_frame. |
|
Definition at line 52 of file brenderer.h. References base_renderer::_height. Referenced by font_renderer::save(). |
|
Definition at line 50 of file brenderer.h. References base_renderer::_nbframes. |
|
request for a sound_renderer This is called by the animation player when sound output is required by the animation.
Implements renderer. Reimplemented in window_renderer. Definition at line 68 of file brenderer.h. |
|
Definition at line 51 of file brenderer.h. References base_renderer::_width. Referenced by font_renderer::save(). |
|
start of animation output This is called by the animation player when the frame size is changing.
Reimplemented from base_renderer. Reimplemented in bitmap_file_renderer, and window_renderer. Definition at line 206 of file win32.cpp. References base_renderer::init_frame(). Referenced by window_renderer::init_frame(), and bitmap_file_renderer::init_frame(). |
|
lock a frame buffer This is called by the animation player when a frame is going to be decoded.
Implements renderer. Definition at line 55 of file brenderer.cpp. |
|
Definition at line 53 of file brenderer.h. |
|
Implements base_renderer. |
|
debugging function : do not use
Reimplemented in bitmap_file_renderer. Definition at line 151 of file renderer.h. |
|
Definition at line 56 of file brenderer.h. References base_renderer::_frame. |
|
set a new palette This is called by the animation player when the palette is changing.
Reimplemented from base_renderer. Definition at line 217 of file win32.cpp. References base_renderer::set_palette(). |
|
start of animation output This is called by the animation player when output is going to start.
Implements renderer. Definition at line 67 of file brenderer.h. References base_renderer::_fname, and base_renderer::_nbframes. |
|
unlock a frame buffer This is called by the animation player when a frame has been decoded.
Implements renderer. Definition at line 61 of file brenderer.cpp. |
|
wait for some time This is called by the animation player when the animation should stay idle.
Implemented in null_renderer, font_renderer, bitmap_file_renderer, and window_renderer. |
|
pointer to the bitmap header and bitmap data.
Definition at line 51 of file win32.h. Referenced by get_bmi(). |
|
bitmap padding (width modulo 4)
|
|
|