Gnash  0.8.11dev
Public Member Functions | Protected Attributes | List of all members
gnash::DeviceGlue Class Reference

#include <DeviceGlue.h>

Inheritance diagram for gnash::DeviceGlue:
gnash::GtkGlue gnash::gui::FBGlue gnash::GtkAggGlue gnash::GtkAggVaapiGlue gnash::GtkCairoGlue gnash::GtkGlExtGlue gnash::gui::GtkOvgGlue gnash::gui::FBAggGlue gnash::gui::FBgles1Glue gnash::gui::FBgles2Glue gnash::gui::FBOvgGlue

Public Member Functions

 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

std::unique_ptr< renderer::GnashDevice_device
 

Constructor & Destructor Documentation

§ DeviceGlue()

gnash::DeviceGlue::DeviceGlue ( )
inline

§ ~DeviceGlue()

gnash::DeviceGlue::~DeviceGlue ( )
inline

Member Function Documentation

§ attachWindow()

bool gnash::DeviceGlue::attachWindow ( renderer::GnashDevice::native_window_t  window)
inline

Attach the area to draw in to the lower level device. This makes the drawing area available to the dispaly device when binding the display to the native windowing system or framebuffer.

References _device.

§ bindClient()

bool gnash::DeviceGlue::bindClient ( renderer::GnashDevice::rtype_t  rtype)
inline

Bind the client API to the device. As EGL can support different renderers, namely OpenGL, OpenGLES1, OpenGLES2, and OpenVG. This is how the underlying hardware knows which API to implement.

References _device.

§ getDepth()

size_t gnash::DeviceGlue::getDepth ( )
inline

Depth of the display.

References _device.

Referenced by gnash::gui::FBOvgGlue::init().

§ getDevice()

renderer::GnashDevice::dtype_t gnash::DeviceGlue::getDevice ( )
inline

Get the current active device type.

References _device, gnash::renderer::GnashDevice::GNASH_NODEV, and setDevice().

§ getHeight()

size_t gnash::DeviceGlue::getHeight ( )
inline

Height of the drawing area, in pixels. For framebuffer based devices, this is the size of the display screen.

References _device.

Referenced by gnash::gui::FBOvgGlue::init(), and gnash::gui::FBGui::init().

§ getWidth()

size_t gnash::DeviceGlue::getWidth ( )
inline

Get the Width of the drawing area, in pixels. For framebuffer based devices, this is the size of the display screen.

References _device.

Referenced by gnash::gui::FBOvgGlue::init(), and gnash::gui::FBGui::init().

§ initDevice()

bool gnash::DeviceGlue::initDevice ( int  argc,
char *  argv[] 
)
inline

Initialze the device

Parameters
argcThe count of arguments from the command line
argvThe array of command line arguments
Returns
status

References _device.

§ probeDevices()

std::unique_ptr<renderer::GnashDevice::dtype_t[]> gnash::DeviceGlue::probeDevices ( )
inline

Probe the system to see what types of display devices exist. This doesn't select a device, it merely returns a list of what is available.

Returns
a list of devices

References gnash::renderer::GnashDevice::DIRECTFB, gnash::renderer::GnashDevice::EGL, gnash::renderer::GnashDevice::GNASH_NODEV, GNASH_REPORT_FUNCTION, gnash::renderer::GnashDevice::RAWFB, and gnash::renderer::GnashDevice::X11.

Referenced by gnash::gui::GtkOvgGlue::init(), and gnash::gui::FBOvgGlue::init().

§ resetDevice()

void gnash::DeviceGlue::resetDevice ( )
inline

Reset the the current device, which disables output.

References _device.

§ setDevice()

void gnash::DeviceGlue::setDevice ( renderer::GnashDevice::dtype_t  dtype)

§ swapBuffers()

bool gnash::DeviceGlue::swapBuffers ( )
inline

Make the current buffer the active one.

References _device.

Member Data Documentation

§ _device

std::unique_ptr<renderer::GnashDevice> gnash::DeviceGlue::_device
protected

The documentation for this class was generated from the following files: