Gnash 0.8.9
|
#include <riscossup.h>
Public Member Functions | |
RiscosGui (unsigned long xid, float scale, bool loop, RunResources &r) | |
virtual | ~RiscosGui () |
virtual bool | init (int argc, char **argv[]) |
Initialise the gui and the associated renderer. | |
virtual bool | createWindow (int width, int height) |
virtual bool | createWindow (const char *title, int width, int height, int xPosition=0, int yPosition=0) |
Create and display our window. | |
virtual bool | run () |
Start main rendering loop. | |
virtual bool | createMenu () |
virtual bool | setupEvents () |
virtual void | renderBuffer () |
virtual void | setInterval (unsigned int interval) |
Set main loop delay in milliseconds. | |
virtual void | setTimeout (unsigned int timeout) |
Set the time in milliseconds after which the programme should exit. | |
virtual void | setInvalidatedRegion (const SWFRect &bounds) |
Gives the GUI a *hint* which region of the stage should be redrawn. |
gnash::RiscosGui::RiscosGui | ( | unsigned long | xid, |
float | scale, | ||
bool | loop, | ||
RunResources & | r | ||
) |
build buildd gnash gui riscos riscos cpp gnash::RiscosGui::~RiscosGui | ( | ) | [virtual] |
bool gnash::RiscosGui::createMenu | ( | ) | [virtual] |
References GNASH_REPORT_FUNCTION.
bool gnash::RiscosGui::createWindow | ( | int | width, |
int | height | ||
) | [virtual] |
References gnash::Gui::_height, gnash::Gui::_width, GNASH_REPORT_FUNCTION, height, and width.
Referenced by createWindow().
bool gnash::RiscosGui::createWindow | ( | const char * | title, |
int | width, | ||
int | height, | ||
int | xPosition = 0 , |
||
int | yPosition = 0 |
||
) | [virtual] |
Create and display our window.
title | The window title. |
width | The desired window width in pixels. |
height | The desired window height in pixels. |
xPosition | The desired window X position from the top left corner. |
yPosition | The desired window Y position from the top left corner. |
Implements gnash::Gui.
References createWindow(), and gnash::Gui::error().
bool gnash::RiscosGui::init | ( | int | argc, |
char ** | argv[] | ||
) | [virtual] |
Initialise the gui and the associated renderer.
argc | The commandline argument count. |
argv | The commandline arguments. |
Implements gnash::Gui.
References gnash::Gui::_renderer, gnash::Gui::_runResources, gnash::Gui::error(), gnash::key::f, GNASH_REPORT_FUNCTION, and gnash::RunResources::setRenderer().
void gnash::RiscosGui::renderBuffer | ( | ) | [virtual] |
Render the current buffer. For OpenGL, this means that the front and back buffers are swapped.
Implements gnash::Gui.
References gnash::Gui::error().
Referenced by run().
bool gnash::RiscosGui::run | ( | ) | [virtual] |
Start main rendering loop.
Implements gnash::Gui.
References gnash::Gui::advance_movie(), gnash::Gui::error(), GNASH_REPORT_FUNCTION, renderBuffer(), setInvalidatedRegion(), and gnash::key::t.
void gnash::RiscosGui::setInterval | ( | unsigned int | interval | ) | [virtual] |
Set main loop delay in milliseconds.
Reimplemented from gnash::Gui.
References gnash::Gui::_interval.
void gnash::RiscosGui::setInvalidatedRegion | ( | const SWFRect & | bounds | ) | [virtual] |
Gives the GUI a *hint* which region of the stage should be redrawn.
There is *no* restriction what the GUI might do with these coordinates. Normally the GUI forwards the information to the renderer so that it avoids rendering regions that did not change anyway. The GUI can also alter the bounds before passing them to the renderer and it's absolutely legal for the GUI to simply ignore the call.
Coordinates are in TWIPS!
Note this information is given to the GUI and not directly to the renderer because both of them need to support this feature for correct results. It is up to the GUI to forward this information to the renderer.
Reimplemented from gnash::Gui.
References gnash::Gui::_height, gnash::Gui::_renderer, gnash::Gui::_width, gnash::SWFRect::get_x_max(), gnash::SWFRect::get_x_min(), gnash::SWFRect::get_y_max(), gnash::SWFRect::get_y_min(), and gnash::SWFRect::width().
Referenced by run().
void gnash::RiscosGui::setTimeout | ( | unsigned int | timeout | ) | [virtual] |
Set the time in milliseconds after which the programme should exit.
Implements gnash::Gui.
bool gnash::RiscosGui::setupEvents | ( | ) | [virtual] |
References GNASH_REPORT_FUNCTION.