Gnash
0.8.10
|
#include <GnashDevice.h>
Public Types | |
enum | rtype_t { OPENVG, OPENGL, OPENGLES1, OPENGLES2, XORG, VAAPI } |
The list of supported renders that use devices. More... | |
enum | dtype_t { NODEV, EGL, DIRECTFB, X11, RAWFB } |
The list of supported device types. More... | |
typedef long | native_window_t |
Public Member Functions | |
GnashDevice (int argc, char *argv[]) | |
GnashDevice () | |
virtual | ~GnashDevice () |
virtual dtype_t | getType ()=0 |
virtual bool | initDevice (int argc, char *argv[])=0 |
virtual bool | attachWindow (native_window_t window)=0 |
virtual const char * | getErrorString (int error)=0 |
Return a string with the error code as text, instead of a numeric value. | |
virtual size_t | getStride ()=0 |
Query the system for all supported configs. | |
virtual size_t | getWidth ()=0 |
Get the width of the device. | |
virtual size_t | getHeight ()=0 |
Get the Height of the device. | |
virtual int | getDepth ()=0 |
Get the depth of the device. | |
virtual int | getRedSize ()=0 |
Get the size of the Red pixel. | |
virtual int | getGreenSize ()=0 |
Get the size of the Green pixel. | |
virtual int | getBlueSize ()=0 |
Get the size of the Blue pixel. | |
virtual bool | isSingleBuffered ()=0 |
Is this device single buffered. | |
virtual bool | isBufferDestroyed ()=0 |
Are buffers destroyed ? | |
virtual int | getID ()=0 |
Get the window ID handle. | |
virtual bool | supportsRenderer (rtype_t rtype)=0 |
Is the specified renderer supported by this hardware ? | |
virtual bool | isNativeRender ()=0 |
Is this renderering natively. | |
virtual boost::uint8_t * | getFBMemory () |
Get the memory from the real framebuffer. | |
virtual boost::uint8_t * | getOffscreenBuffer () |
Get the memory from an offscreen buffer to support Double Buffering. | |
virtual size_t | getFBMemSize () |
virtual bool | bindClient (GnashDevice::rtype_t) |
virtual bool | swapBuffers () |
typedef long gnash::renderer::GnashDevice::native_window_t |
Handle multiple window types. The derived classes will cast this to the proper data type.
gnash::renderer::GnashDevice::GnashDevice | ( | int | argc, |
char * | argv[] | ||
) |
gnash::renderer::GnashDevice::GnashDevice | ( | ) | [inline] |
virtual gnash::renderer::GnashDevice::~GnashDevice | ( | ) | [inline, virtual] |
virtual bool gnash::renderer::GnashDevice::attachWindow | ( | native_window_t | window | ) | [pure virtual] |
Attach Native Window to device. This connects a Native Window to the device so surfaces can be created.
Implemented in gnash::renderer::EGLDevice, gnash::renderer::x11::X11Device, gnash::renderer::rawfb::RawFBDevice, and gnash::renderer::directfb::DirectFBDevice.
virtual bool gnash::renderer::GnashDevice::bindClient | ( | GnashDevice::rtype_t | ) | [inline, virtual] |
Reimplemented in gnash::renderer::EGLDevice.
virtual int gnash::renderer::GnashDevice::getBlueSize | ( | ) | [pure virtual] |
Get the size of the Blue pixel.
Implemented in gnash::renderer::EGLDevice, gnash::renderer::x11::X11Device, gnash::renderer::directfb::DirectFBDevice, and gnash::renderer::rawfb::RawFBDevice.
virtual int gnash::renderer::GnashDevice::getDepth | ( | ) | [pure virtual] |
Get the depth of the device.
Implemented in gnash::renderer::EGLDevice, gnash::renderer::directfb::DirectFBDevice, gnash::renderer::x11::X11Device, and gnash::renderer::rawfb::RawFBDevice.
virtual const char* gnash::renderer::GnashDevice::getErrorString | ( | int | error | ) | [pure virtual] |
Return a string with the error code as text, instead of a numeric value.
Implemented in gnash::renderer::EGLDevice, gnash::renderer::x11::X11Device, gnash::renderer::rawfb::RawFBDevice, and gnash::renderer::directfb::DirectFBDevice.
virtual boost::uint8_t* gnash::renderer::GnashDevice::getFBMemory | ( | ) | [inline, virtual] |
Get the memory from the real framebuffer.
Reimplemented in gnash::renderer::rawfb::RawFBDevice.
virtual size_t gnash::renderer::GnashDevice::getFBMemSize | ( | ) | [inline, virtual] |
Reimplemented in gnash::renderer::rawfb::RawFBDevice.
virtual int gnash::renderer::GnashDevice::getGreenSize | ( | ) | [pure virtual] |
Get the size of the Green pixel.
Implemented in gnash::renderer::EGLDevice, gnash::renderer::x11::X11Device, gnash::renderer::directfb::DirectFBDevice, and gnash::renderer::rawfb::RawFBDevice.
virtual size_t gnash::renderer::GnashDevice::getHeight | ( | ) | [pure virtual] |
Get the Height of the device.
Implemented in gnash::renderer::EGLDevice, gnash::renderer::x11::X11Device, gnash::renderer::rawfb::RawFBDevice, and gnash::renderer::directfb::DirectFBDevice.
virtual int gnash::renderer::GnashDevice::getID | ( | ) | [pure virtual] |
Get the window ID handle.
Implemented in gnash::renderer::EGLDevice, gnash::renderer::directfb::DirectFBDevice, gnash::renderer::x11::X11Device, and gnash::renderer::rawfb::RawFBDevice.
virtual boost::uint8_t* gnash::renderer::GnashDevice::getOffscreenBuffer | ( | ) | [inline, virtual] |
Get the memory from an offscreen buffer to support Double Buffering.
Reimplemented in gnash::renderer::rawfb::RawFBDevice.
virtual int gnash::renderer::GnashDevice::getRedSize | ( | ) | [pure virtual] |
Get the size of the Red pixel.
Implemented in gnash::renderer::EGLDevice, gnash::renderer::x11::X11Device, gnash::renderer::rawfb::RawFBDevice, and gnash::renderer::directfb::DirectFBDevice.
virtual size_t gnash::renderer::GnashDevice::getStride | ( | ) | [pure virtual] |
Query the system for all supported configs.
Get the stride of the device
Implemented in gnash::renderer::rawfb::RawFBDevice, gnash::renderer::EGLDevice, and gnash::renderer::x11::X11Device.
virtual dtype_t gnash::renderer::GnashDevice::getType | ( | ) | [pure virtual] |
Get the type of the instatiated device. Since the renderer has a single value for the supported device, this is used to see which device has been loaded.
Implemented in gnash::renderer::EGLDevice, gnash::renderer::rawfb::RawFBDevice, gnash::renderer::x11::X11Device, and gnash::renderer::directfb::DirectFBDevice.
virtual size_t gnash::renderer::GnashDevice::getWidth | ( | ) | [pure virtual] |
Get the width of the device.
Implemented in gnash::renderer::EGLDevice, gnash::renderer::x11::X11Device, gnash::renderer::rawfb::RawFBDevice, and gnash::renderer::directfb::DirectFBDevice.
virtual bool gnash::renderer::GnashDevice::initDevice | ( | int | argc, |
char * | argv[] | ||
) | [pure virtual] |
Initialize GNASH Device layer. This mostly just initializes all the private data.
Implemented in gnash::renderer::EGLDevice, gnash::renderer::x11::X11Device, gnash::renderer::rawfb::RawFBDevice, and gnash::renderer::directfb::DirectFBDevice.
virtual bool gnash::renderer::GnashDevice::isBufferDestroyed | ( | ) | [pure virtual] |
Are buffers destroyed ?
Implemented in gnash::renderer::EGLDevice, gnash::renderer::directfb::DirectFBDevice, gnash::renderer::x11::X11Device, and gnash::renderer::rawfb::RawFBDevice.
virtual bool gnash::renderer::GnashDevice::isNativeRender | ( | ) | [pure virtual] |
Is this renderering natively.
Implemented in gnash::renderer::directfb::DirectFBDevice, gnash::renderer::EGLDevice, gnash::renderer::rawfb::RawFBDevice, and gnash::renderer::x11::X11Device.
virtual bool gnash::renderer::GnashDevice::isSingleBuffered | ( | ) | [pure virtual] |
Is this device single buffered.
Implemented in gnash::renderer::rawfb::RawFBDevice, gnash::renderer::EGLDevice, gnash::renderer::directfb::DirectFBDevice, and gnash::renderer::x11::X11Device.
virtual bool gnash::renderer::GnashDevice::supportsRenderer | ( | rtype_t | rtype | ) | [pure virtual] |
Is the specified renderer supported by this hardware ?
Implemented in gnash::renderer::EGLDevice, gnash::renderer::directfb::DirectFBDevice, gnash::renderer::x11::X11Device, and gnash::renderer::rawfb::RawFBDevice.
virtual bool gnash::renderer::GnashDevice::swapBuffers | ( | ) | [inline, virtual] |
Reimplemented in gnash::renderer::EGLDevice, and gnash::renderer::rawfb::RawFBDevice.
References GNASH_REPORT_FUNCTION.