Gnash
0.8.10
|
#include <fb_glue_agg.h>
Public Member Functions | |
FBAggGlue () | |
FBAggGlue (int fd) | |
~FBAggGlue () | |
bool | init (int argc, char ***argv) |
Initialise the Framebuffer GUI and the AGG renderer. | |
Renderer * | createRenderHandler () |
Create the renderer handler. | |
void | prepDrawingArea (void *drawing_area) |
Hand off a handle to the native drawing area to the renderer. | |
void | setInvalidatedRegion (const SWFRect &bounds) |
Gives the GUI a *hint* which region of the stage should be redrawn. | |
void | setInvalidatedRegions (const InvalidatedRanges &ranges) |
int | width () |
The Width of the drawing area, in pixels. For framebuffer based devices, this is the size of the display screen. | |
int | height () |
void | render () |
Render the current buffer. | |
void | render (void *const ) |
size_t | getWidth () |
size_t | getHeight () |
size_t | getDepth () |
Depth of the display. | |
Protected Attributes | |
int | _fd |
This is the file descriptor for the framebuffer memory. | |
struct fb_fix_screeninfo | _fixinfo |
struct fb_var_screeninfo | _varinfo |
boost::scoped_ptr< Renderer > | _renderer |
geometry::Range2d< int > | _validbounds |
std::vector< geometry::Range2d < int > > | _drawbounds |
gnash::gui::FBAggGlue::FBAggGlue | ( | int | fd | ) |
gnash::gui::FBAggGlue::~FBAggGlue | ( | ) |
References _fd.
Renderer * gnash::gui::FBAggGlue::createRenderHandler | ( | ) | [virtual] |
Create the renderer handler.
Implements gnash::gui::FBGlue.
References gnash::DeviceGlue::_device, _, width(), height(), _validbounds, gnash::geometry::Range2d::setTo(), gnash::renderer::rawfb::RawFBDevice::getRedSize(), gnash::renderer::rawfb::RawFBDevice::getGreenSize(), gnash::renderer::rawfb::RawFBDevice::getBlueSize(), gnash::renderer::rawfb::RawFBDevice::getDepth(), gnash::agg_detect_pixel_format(), gnash::create_Renderer_agg(), assert, gnash::renderer::rawfb::RawFBDevice::isSingleBuffered(), gnash::renderer::rawfb::RawFBDevice::getFBMemory(), gnash::renderer::rawfb::RawFBDevice::getOffscreenBuffer(), gnash::renderer::rawfb::RawFBDevice::getFBMemSize(), gnash::renderer::rawfb::RawFBDevice::getStride(), and _renderer.
Referenced by gnash::gui::FBGui::init(), and init().
size_t gnash::gui::FBAggGlue::getDepth | ( | ) | [inline] |
size_t gnash::gui::FBAggGlue::getHeight | ( | ) | [inline] |
Height of the drawing area, in pixels. For framebuffer based devices, this is the size of the display screen.
Reimplemented from gnash::DeviceGlue.
References gnash::DeviceGlue::_device.
size_t gnash::gui::FBAggGlue::getWidth | ( | ) | [inline] |
Get the Width of the drawing area, in pixels. For framebuffer based devices, this is the size of the display screen.
Reimplemented from gnash::DeviceGlue.
References gnash::DeviceGlue::_device.
int gnash::gui::FBAggGlue::height | ( | ) | [virtual] |
Height of the drawing area, in pixels. For framebuffer based devices, this is the size of the display screen.
Implements gnash::gui::FBGlue.
References gnash::DeviceGlue::_device.
Referenced by gnash::gui::FBGui::init(), and createRenderHandler().
bool gnash::gui::FBAggGlue::init | ( | int | argc, |
char *** | argv | ||
) |
Initialise the Framebuffer GUI and the AGG renderer.
argc | The commandline argument count. |
argv | The commandline arguments. |
References gnash::DeviceGlue::_device, gnash::renderer::rawfb::RawFBDevice::getHandle(), createRenderHandler(), _renderer, _, _varinfo, and gnash::renderer::rawfb::RawFBDevice::setGrayscaleLUT8().
void gnash::gui::FBAggGlue::prepDrawingArea | ( | void * | drawing_area | ) | [virtual] |
Hand off a handle to the native drawing area to the renderer.
Implements gnash::gui::FBGlue.
void gnash::gui::FBAggGlue::render | ( | ) | [virtual] |
Render the current buffer.
Implements gnash::gui::FBGlue.
References _drawbounds, _, __FUNCTION__, and gnash::DeviceGlue::_device.
void gnash::gui::FBAggGlue::render | ( | void * | const | ) | [inline, virtual] |
Reimplemented from gnash::gui::FBGlue.
void gnash::gui::FBAggGlue::setInvalidatedRegion | ( | const SWFRect & | bounds | ) |
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.
void gnash::gui::FBAggGlue::setInvalidatedRegions | ( | const InvalidatedRanges & | ranges | ) | [virtual] |
int gnash::gui::FBAggGlue::width | ( | ) | [virtual] |
The Width of the drawing area, in pixels. For framebuffer based devices, this is the size of the display screen.
Implements gnash::gui::FBGlue.
References gnash::DeviceGlue::_device.
Referenced by gnash::gui::FBGui::init(), and createRenderHandler().
std::vector< geometry::Range2d<int> > gnash::gui::FBAggGlue::_drawbounds [protected] |
Referenced by setInvalidatedRegions(), and render().
int gnash::gui::FBAggGlue::_fd [protected] |
This is the file descriptor for the framebuffer memory.
Referenced by ~FBAggGlue().
struct fb_fix_screeninfo gnash::gui::FBAggGlue::_fixinfo [protected] |
Referenced by FBAggGlue().
boost::scoped_ptr<Renderer> gnash::gui::FBAggGlue::_renderer [protected] |
Reimplemented from gnash::gui::FBGlue.
Referenced by setInvalidatedRegion(), setInvalidatedRegions(), init(), and createRenderHandler().
geometry::Range2d<int> gnash::gui::FBAggGlue::_validbounds [protected] |
Referenced by setInvalidatedRegions(), and createRenderHandler().
struct fb_var_screeninfo gnash::gui::FBAggGlue::_varinfo [protected] |
Referenced by FBAggGlue(), and init().