#include <win32.h>
Inheritance diagram for window_renderer:
Public Methods | |
window_renderer () throw (std::exception) | |
virtual | ~window_renderer () throw () |
bool | init_frame (const point &size) throw (std::exception) |
start of animation output | |
void | dump (char *data, int size) throw (std::exception) |
bool | wait (int ms) throw () |
wait for some time | |
void | clean () throw () |
memory cleanup (deletes frame buffer) | |
virtual sound_renderer * | get_sound_renderer () throw (std::exception) |
request for a sound_renderer | |
bool | set_palette (const palette &pal) throw () |
set a new palette | |
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 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 | set_frame (int f) throw () |
Static Private Methods | |
LRESULT WINAPI | windowProc (HWND, UINT, WPARAM, LPARAM) |
DWORD CALLBACK | threadProc (void *) |
Private Attributes | |
HWND | _hwnd |
the window handle | |
char * | _bitmap |
bitmap data of the current frame | |
int | _size |
size of the bitmap data | |
int | _clock |
date of the last frame update (in ms) | |
HANDLE | _hThread |
handle of the thread that handle window messages | |
HANDLE | _hEvent |
handle to an event use for thread synchronisation | |
HANDLE | _hMutex |
handle to a mutex to protect write access to _bitmap | |
ds_wave_out * | _out |
the sound_renderer |
Definition at line 88 of file win32.h.
|
|
|
|
|
memory cleanup (deletes frame buffer)
Reimplemented from base_renderer. |
|
Definition at line 54 of file brenderer.h. References base_renderer::_data. Referenced by font_renderer::save(). |
|
Implements bitmap_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 bitmap_renderer::_bmi. Referenced by 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.
Reimplemented from base_renderer. |
|
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 bitmap_renderer. Definition at line 365 of file win32.cpp. References bitmap_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. |
|
Definition at line 317 of file win32.cpp. References windowProc(). |
|
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.
Implements renderer. |
|
Definition at line 278 of file win32.cpp. References _bitmap, _hEvent, _hMutex, and bitmap_renderer::get_bmi(). Referenced by threadProc(). |
|
bitmap data of the current frame
Definition at line 91 of file win32.h. Referenced by windowProc(). |
|
date of the last frame update (in ms)
|
|
handle to an event use for thread synchronisation
Definition at line 95 of file win32.h. Referenced by windowProc(). |
|
handle to a mutex to protect write access to _bitmap
Definition at line 96 of file win32.h. Referenced by windowProc(). |
|
handle of the thread that handle window messages
|
|
the window handle
|
|
the sound_renderer
|
|
size of the bitmap data
|
|
|