#include <renderer.h>
Inheritance diagram for renderer:
Public Methods | |
virtual | ~renderer () |
virtual bool | start_decode (const std::string &fname, int version, int nbframes)=0 throw (std::exception) |
start of animation output | |
virtual bool | init_frame (const point &size)=0 throw (std::exception) |
start of animation output | |
virtual bool | set_palette (const palette &pal)=0 throw (std::exception) |
set a new palette | |
virtual char * | lock_frame (int frame)=0 throw (std::exception) |
lock a frame buffer | |
virtual bool | unlock_frame ()=0 throw (std::exception) |
unlock a frame buffer | |
virtual bool | flip_frame ()=0 throw (std::exception) |
flip a frame buffer | |
virtual bool | wait (int ms)=0 throw (std::exception) |
wait for some time | |
virtual sound_renderer * | get_sound_renderer ()=0 throw (std::exception) |
request for a sound_renderer | |
virtual bool | save_current () throw () |
debugging function : do not use |
This is the interface for frame output. Several implementations of these interface exist, each having a particular application.
Definition at line 76 of file renderer.h.
|
Definition at line 78 of file renderer.h. |
|
flip a frame buffer This is called by the animation player when the current frame should be shown.
Implemented in base_renderer. |
|
request for a sound_renderer This is called by the animation player when sound output is required by the animation.
Implemented in base_renderer, and window_renderer. |
|
start of animation output This is called by the animation player when the frame size is changing.
Implemented in base_renderer, bitmap_renderer, bitmap_file_renderer, and window_renderer. |
|
lock a frame buffer This is called by the animation player when a frame is going to be decoded.
Implemented in base_renderer. |
|
debugging function : do not use
Reimplemented in bitmap_file_renderer. Definition at line 151 of file renderer.h. |
|
set a new palette This is called by the animation player when the palette is changing.
Implemented in base_renderer, and bitmap_renderer. Referenced by player::update_palette(). |
|
start of animation output This is called by the animation player when output is going to start.
Implemented in base_renderer. |
|
unlock a frame buffer This is called by the animation player when a frame has been decoded.
Implemented in base_renderer. |
|
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. |