Gnash
0.8.11dev
|
#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. More... | |
Renderer * | createRenderHandler () |
Create the renderer handler. More... | |
void | prepDrawingArea (void *drawing_area) |
Hand off a handle to the native drawing area to the renderer. More... | |
void | setInvalidatedRegion (const SWFRect &bounds) |
Gives the GUI a hint which region of the stage should be redrawn. More... | |
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. More... | |
int | height () |
void | render () |
Render the current buffer. More... | |
void | render (void *const) |
size_t | getWidth () |
size_t | getHeight () |
size_t | getDepth () |
![]() | |
FBGlue () | |
virtual | ~FBGlue () |
virtual bool | init (int argc, char **argv[])=0 |
virtual void | setRenderHandlerSize (int, int) |
virtual void | beforeRendering (movie_root *) |
![]() | |
DeviceGlue () | |
~DeviceGlue () | |
std::unique_ptr< renderer::GnashDevice::dtype_t[]> | probeDevices () |
void | resetDevice () |
Reset the the current device, which disables output. More... | |
renderer::GnashDevice::dtype_t | getDevice () |
Get the current active device type. More... | |
void | setDevice (renderer::GnashDevice::dtype_t dtype) |
bool | initDevice (int argc, char *argv[]) |
bool | attachWindow (renderer::GnashDevice::native_window_t window) |
bool | bindClient (renderer::GnashDevice::rtype_t rtype) |
size_t | getWidth () |
size_t | getHeight () |
size_t | getDepth () |
Depth of the display. More... | |
bool | swapBuffers () |
Make the current buffer the active one. More... | |
Protected Attributes | |
int | _fd |
This is the file descriptor for the framebuffer memory. More... | |
struct fb_fix_screeninfo | _fixinfo |
struct fb_var_screeninfo | _varinfo |
std::unique_ptr< Renderer > | _renderer |
geometry::Range2d< int > | _validbounds |
std::vector< geometry::Range2d< int > > | _drawbounds |
![]() | |
std::unique_ptr< Renderer > | _renderer |
![]() | |
std::unique_ptr< renderer::GnashDevice > | _device |
gnash::gui::FBAggGlue::FBAggGlue | ( | ) |
gnash::gui::FBAggGlue::FBAggGlue | ( | int | fd | ) |
gnash::gui::FBAggGlue::~FBAggGlue | ( | ) |
References _fd.
|
virtual |
Create the renderer handler.
Implements gnash::gui::FBGlue.
References _, gnash::DeviceGlue::_device, _renderer, _validbounds, gnash::agg_detect_pixel_format(), gnash::create_Renderer_agg(), gnash::renderer::rawfb::RawFBDevice::getBlueSize(), gnash::renderer::rawfb::RawFBDevice::getDepth(), gnash::renderer::rawfb::RawFBDevice::getFBMemory(), gnash::renderer::rawfb::RawFBDevice::getFBMemSize(), gnash::renderer::rawfb::RawFBDevice::getGreenSize(), gnash::renderer::rawfb::RawFBDevice::getOffscreenBuffer(), gnash::renderer::rawfb::RawFBDevice::getRedSize(), gnash::renderer::rawfb::RawFBDevice::getStride(), height(), gnash::renderer::rawfb::RawFBDevice::isSingleBuffered(), gnash::log_debug(), gnash::log_error(), gnash::geometry::Range2d< T >::setTo(), and width().
Referenced by init(), and gnash::gui::FBGui::init().
|
inline |
References gnash::DeviceGlue::_device, and _fd.
|
inline |
References gnash::DeviceGlue::_device.
|
inline |
References gnash::DeviceGlue::_device.
|
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 createRenderHandler(), and gnash::gui::FBGui::init().
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, _renderer, _varinfo, createRenderHandler(), gnash::renderer::rawfb::RawFBDevice::getHandle(), gnash::log_error(), and gnash::renderer::rawfb::RawFBDevice::setGrayscaleLUT8().
|
virtual |
Hand off a handle to the native drawing area to the renderer.
Implements gnash::gui::FBGlue.
|
virtual |
Render the current buffer.
Implements gnash::gui::FBGlue.
References _, __FUNCTION__, gnash::DeviceGlue::_device, _drawbounds, and gnash::log_error().
|
inlinevirtual |
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.
References _, _renderer, and gnash::log_error().
|
virtual |
Reimplemented from gnash::gui::FBGlue.
References _, __FUNCTION__, _drawbounds, _renderer, _validbounds, gnash::geometry::SnappingRanges2d< T >::getRange(), gnash::geometry::Intersection(), gnash::geometry::Range2d< T >::isNull(), gnash::log_error(), and gnash::geometry::SnappingRanges2d< T >::size().
|
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 createRenderHandler(), and gnash::gui::FBGui::init().
|
protected |
Referenced by render(), and setInvalidatedRegions().
|
protected |
This is the file descriptor for the framebuffer memory.
Referenced by getDepth(), and ~FBAggGlue().
|
protected |
|
protected |
Referenced by createRenderHandler(), init(), setInvalidatedRegion(), and setInvalidatedRegions().
|
protected |
Referenced by createRenderHandler(), and setInvalidatedRegions().
|
protected |
Referenced by init().