Gnash
0.8.10
|
#include <eglDevice.h>
Public Types | |
enum | quality_e { LOW, MEDIUM, HIGH } |
Public Member Functions | |
EGLDevice () | |
EGLDevice (int argc, char *argv[]) | |
EGLDevice (GnashDevice::rtype_t rtype) | |
virtual | ~EGLDevice () |
dtype_t | getType () |
bool | initDevice (int argc, char *argv[]) |
bool | attachWindow (GnashDevice::native_window_t window) |
const char * | getErrorString (int error) |
Return a string with the error code as text, instead of a numeric value. | |
size_t | getStride () |
Query the system for all supported configs. | |
size_t | getWidth () |
Get the width of the device. | |
size_t | getHeight () |
Get the Height of the device. | |
EGLint | getDepth () |
Get the depth of the device. | |
int | getRedSize () |
Get the size of the Red pixel. | |
int | getGreenSize () |
Get the size of the Green pixel. | |
int | getBlueSize () |
Get the size of the Blue pixel. | |
bool | isSingleBuffered () |
Is this device single buffered. | |
bool | isBufferDestroyed () |
Are buffers destroyed ? | |
int | getID () |
Get the window ID handle. | |
bool | supportsRenderer (GnashDevice::rtype_t rtype) |
Is the specified renderer supported by this hardware ? | |
bool | isNativeRender () |
Is this renderering natively. | |
bool | bindClient (GnashDevice::rtype_t rtype) |
size_t | getWidth (EGLSurface surface) |
size_t | getHeight (EGLSurface surface) |
bool | isBufferDestroyed (EGLSurface surface) |
bool | checkEGLConfig (EGLConfig config) |
Check the requested EGl configuration against the current one. | |
int | queryEGLConfig () |
Query the system for all supported configs. | |
int | queryEGLConfig (EGLDisplay display) |
Query the system for all supported configs. | |
void | printEGLConfig () |
void | printEGLConfig (EGLConfig config) |
void | printEGLContext () |
void | printEGLContext (EGLContext context) |
void | printEGLSurface () |
void | printEGLSurface (EGLSurface surface) |
void | printEGLAttribs (const EGLint *attrib) |
EGLSurface | createPbuffer (int width, int height) |
EGLSurface | createPbuffer (int width, int height, EGLClientBuffer buf, EGLenum type) |
EGLSurface | createPixmap (int width, int height, NativePixmapType buf) |
size_t | totalPbuffers () |
EGLSurface & | operator[] (int index) |
bool | swapBuffers () |
bool | copyPbuffers (size_t x) |
bool | makePbufferCurrent () |
bool | makePbufferCurrent (size_t x) |
size_t | getVerticalRes () |
size_t | getHorzRes () |
bool | isBackBuffered () |
bool | isMultiSample () |
EGLint | getSurfaceID () |
EGLint | getContextID () |
bool | isContextSingleBuffered () |
bool | isContextBackBuffered () |
EGLint | getSamples () |
EGLint | getSampleBuffers () |
EGLint | getMaxSwapInterval () |
EGLint | getMinSwapInterval () |
void | setAttrib (int bpp) |
Static Public Member Functions | |
static EGLint | getRenderableTypes () |
Protected Attributes | |
EGLConfig | _eglConfig |
EGLContext | _eglContext |
EGLSurface | _eglSurface |
EGLDisplay | _eglDisplay |
EGLNativeWindowType | _nativeWindow |
EGLNativePixmapType | _nativePixmap |
quality_e | _quality |
const EGLint * | _attrib |
unsigned int | _bpp |
std::vector< EGLSurface > | _pbuffers |
gnash::renderer::EGLDevice::EGLDevice | ( | ) |
References GNASH_REPORT_FUNCTION, setAttrib(), and _bpp.
gnash::renderer::EGLDevice::EGLDevice | ( | int | argc, |
char * | argv[] | ||
) |
References GNASH_REPORT_FUNCTION, setAttrib(), _bpp, initDevice(), and _.
gnash::renderer::EGLDevice::EGLDevice | ( | GnashDevice::rtype_t | rtype | ) |
References GNASH_REPORT_FUNCTION, setAttrib(), _bpp, initDevice(), _, and bindClient().
gnash::renderer::EGLDevice::~EGLDevice | ( | ) | [virtual] |
References _eglDisplay, _pbuffers, _eglContext, and _eglSurface.
bool gnash::renderer::EGLDevice::attachWindow | ( | GnashDevice::native_window_t | window | ) | [virtual] |
Attach Native Window to device. This connects a Native Window to the device so surfaces can be created.
Implements gnash::renderer::GnashDevice.
References GNASH_REPORT_FUNCTION, _nativeWindow, _eglSurface, _eglDisplay, _, _eglConfig, gnash::renderer::surface_attributes, getErrorString(), printEGLSurface(), _eglContext, and printEGLContext().
bool gnash::renderer::EGLDevice::bindClient | ( | GnashDevice::rtype_t | rtype | ) | [virtual] |
Reimplemented from gnash::renderer::GnashDevice.
References GNASH_REPORT_FUNCTION, gnash::renderer::GnashDevice::OPENGLES2, _, getErrorString(), gnash::renderer::GnashDevice::OPENGLES1, gnash::renderer::GnashDevice::OPENVG, gnash::renderer::GnashDevice::XORG, and gnash::renderer::GnashDevice::VAAPI.
Referenced by EGLDevice(), and gnash::gui::GtkOvgGlue::prepDrawingArea().
bool gnash::renderer::EGLDevice::checkEGLConfig | ( | EGLConfig | config | ) |
Check the requested EGl configuration against the current one.
References _bpp, and _eglDisplay.
Referenced by gnash::renderer::x11::X11Device::initDevice().
bool gnash::renderer::EGLDevice::copyPbuffers | ( | size_t | x | ) | [inline] |
References GNASH_REPORT_FUNCTION, _pbuffers, pix, and _eglDisplay.
EGLSurface gnash::renderer::EGLDevice::createPbuffer | ( | int | width, |
int | height | ||
) |
References width, height, _eglDisplay, _eglConfig, _, and _pbuffers.
EGLSurface gnash::renderer::EGLDevice::createPbuffer | ( | int | width, |
int | height, | ||
EGLClientBuffer | buf, | ||
EGLenum | type | ||
) |
References width, height, _eglDisplay, _eglConfig, _, and _pbuffers.
EGLSurface gnash::renderer::EGLDevice::createPixmap | ( | int | width, |
int | height, | ||
NativePixmapType | buf | ||
) |
References width, height, _eglDisplay, _eglConfig, _, and _pbuffers.
int gnash::renderer::EGLDevice::getBlueSize | ( | ) | [inline, virtual] |
Get the size of the Blue pixel.
Implements gnash::renderer::GnashDevice.
References _eglConfig, and _eglDisplay.
EGLint gnash::renderer::EGLDevice::getContextID | ( | ) | [inline] |
References _eglDisplay, and _eglContext.
EGLint gnash::renderer::EGLDevice::getDepth | ( | ) | [inline, virtual] |
Get the depth of the device.
Implements gnash::renderer::GnashDevice.
References _eglDisplay, and _eglConfig.
Referenced by getStride().
const char * gnash::renderer::EGLDevice::getErrorString | ( | int | error | ) | [virtual] |
Return a string with the error code as text, instead of a numeric value.
Implements gnash::renderer::GnashDevice.
Referenced by gnash::renderer::x11::X11Device::initDevice(), bindClient(), attachWindow(), and queryEGLConfig().
int gnash::renderer::EGLDevice::getGreenSize | ( | ) | [inline, virtual] |
Get the size of the Green pixel.
Implements gnash::renderer::GnashDevice.
References _eglConfig, and _eglDisplay.
size_t gnash::renderer::EGLDevice::getHeight | ( | ) | [inline, virtual] |
size_t gnash::renderer::EGLDevice::getHeight | ( | EGLSurface | surface | ) | [inline] |
References _eglDisplay.
size_t gnash::renderer::EGLDevice::getHorzRes | ( | ) | [inline] |
References _eglDisplay, and _eglSurface.
int gnash::renderer::EGLDevice::getID | ( | ) | [inline, virtual] |
EGLint gnash::renderer::EGLDevice::getMaxSwapInterval | ( | ) | [inline] |
References _eglDisplay, and _eglConfig.
EGLint gnash::renderer::EGLDevice::getMinSwapInterval | ( | ) | [inline] |
References _eglDisplay, and _eglConfig.
int gnash::renderer::EGLDevice::getRedSize | ( | ) | [inline, virtual] |
Get the size of the Red pixel.
Implements gnash::renderer::GnashDevice.
References _eglConfig, and _eglDisplay.
EGLint gnash::renderer::EGLDevice::getRenderableTypes | ( | ) | [static] |
EGLint gnash::renderer::EGLDevice::getSampleBuffers | ( | ) | [inline] |
References _eglDisplay, and _eglConfig.
EGLint gnash::renderer::EGLDevice::getSamples | ( | ) | [inline] |
References _eglDisplay, and _eglConfig.
size_t gnash::renderer::EGLDevice::getStride | ( | ) | [inline, virtual] |
Query the system for all supported configs.
Get the stride of the device
Implements gnash::renderer::GnashDevice.
References getDepth(), and getWidth().
EGLint gnash::renderer::EGLDevice::getSurfaceID | ( | ) | [inline] |
References _eglDisplay, and _eglSurface.
Referenced by getID().
dtype_t gnash::renderer::EGLDevice::getType | ( | ) | [inline, 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.
Implements gnash::renderer::GnashDevice.
References gnash::renderer::GnashDevice::EGL.
size_t gnash::renderer::EGLDevice::getVerticalRes | ( | ) | [inline] |
References _eglDisplay, and _eglSurface.
size_t gnash::renderer::EGLDevice::getWidth | ( | ) | [inline, virtual] |
Get the width of the device.
Implements gnash::renderer::GnashDevice.
References _eglSurface.
Referenced by getStride().
size_t gnash::renderer::EGLDevice::getWidth | ( | EGLSurface | surface | ) | [inline] |
References _eglDisplay.
bool gnash::renderer::EGLDevice::initDevice | ( | int | argc, |
char * | argv[] | ||
) | [virtual] |
Initialize GNASH Device layer. This mostly just initializes all the private data.
Implements gnash::renderer::GnashDevice.
Referenced by EGLDevice(), and gnash::renderer::gles1::Renderer_gles1::Renderer_gles1().
bool gnash::renderer::EGLDevice::isBackBuffered | ( | ) | [inline] |
References _eglDisplay, and _eglSurface.
bool gnash::renderer::EGLDevice::isBufferDestroyed | ( | ) | [inline, virtual] |
bool gnash::renderer::EGLDevice::isBufferDestroyed | ( | EGLSurface | surface | ) | [inline] |
References _eglDisplay.
bool gnash::renderer::EGLDevice::isContextBackBuffered | ( | ) | [inline] |
References _eglDisplay, and _eglContext.
bool gnash::renderer::EGLDevice::isContextSingleBuffered | ( | ) | [inline] |
References _eglDisplay, and _eglContext.
bool gnash::renderer::EGLDevice::isMultiSample | ( | ) | [inline] |
References _eglDisplay, and _eglSurface.
bool gnash::renderer::EGLDevice::isNativeRender | ( | ) | [inline, virtual] |
Is this renderering natively.
Implements gnash::renderer::GnashDevice.
References _eglDisplay, and _eglConfig.
bool gnash::renderer::EGLDevice::isSingleBuffered | ( | ) | [inline, virtual] |
Is this device single buffered.
Implements gnash::renderer::GnashDevice.
References _eglSurface, and _eglDisplay.
Referenced by swapBuffers().
bool gnash::renderer::EGLDevice::makePbufferCurrent | ( | ) | [inline] |
References _eglDisplay, _eglSurface, and _eglContext.
bool gnash::renderer::EGLDevice::makePbufferCurrent | ( | size_t | x | ) | [inline] |
References _pbuffers, _eglDisplay, and _eglContext.
EGLSurface& gnash::renderer::EGLDevice::operator[] | ( | int | index | ) | [inline] |
References _pbuffers.
void gnash::renderer::EGLDevice::printEGLAttribs | ( | const EGLint * | attrib | ) |
References gnash::key::i.
void gnash::renderer::EGLDevice::printEGLConfig | ( | ) | [inline] |
References printEGLConfig(), and _eglConfig.
Referenced by gnash::renderer::x11::X11Device::initDevice(), queryEGLConfig(), and printEGLConfig().
void gnash::renderer::EGLDevice::printEGLConfig | ( | EGLConfig | config | ) |
References red, blue, green, and _eglDisplay.
void gnash::renderer::EGLDevice::printEGLContext | ( | ) | [inline] |
References printEGLContext(), and _eglContext.
Referenced by attachWindow(), printEGLContext(), and gnash::gui::GtkOvgGlue::prepDrawingArea().
void gnash::renderer::EGLDevice::printEGLContext | ( | EGLContext | context | ) |
References _eglDisplay.
void gnash::renderer::EGLDevice::printEGLSurface | ( | ) | [inline] |
References printEGLSurface(), and _eglSurface.
Referenced by attachWindow(), printEGLSurface(), and gnash::gui::GtkOvgGlue::prepDrawingArea().
void gnash::renderer::EGLDevice::printEGLSurface | ( | EGLSurface | surface | ) |
References _eglDisplay.
int gnash::renderer::EGLDevice::queryEGLConfig | ( | ) | [inline] |
Query the system for all supported configs.
References queryEGLConfig(), and _eglDisplay.
Referenced by queryEGLConfig().
int gnash::renderer::EGLDevice::queryEGLConfig | ( | EGLDisplay | display | ) |
Query the system for all supported configs.
References GNASH_REPORT_FUNCTION, _, getErrorString(), gnash::key::i, and printEGLConfig().
void gnash::renderer::EGLDevice::setAttrib | ( | int | bpp | ) |
References _attrib.
Referenced by EGLDevice().
bool gnash::renderer::EGLDevice::supportsRenderer | ( | GnashDevice::rtype_t | rtype | ) | [virtual] |
Is the specified renderer supported by this hardware ?
Implements gnash::renderer::GnashDevice.
References GNASH_REPORT_FUNCTION, _eglDisplay, _eglContext, gnash::renderer::GnashDevice::OPENGLES2, gnash::renderer::GnashDevice::OPENGLES1, and gnash::renderer::GnashDevice::OPENVG.
bool gnash::renderer::EGLDevice::swapBuffers | ( | ) | [inline, virtual] |
Reimplemented from gnash::renderer::GnashDevice.
References isSingleBuffered(), _eglDisplay, and _eglSurface.
Referenced by gnash::gui::GtkOvgGlue::setRenderHandlerSize().
size_t gnash::renderer::EGLDevice::totalPbuffers | ( | ) | [inline] |
References _pbuffers.
const EGLint* gnash::renderer::EGLDevice::_attrib [protected] |
Referenced by setAttrib().
unsigned int gnash::renderer::EGLDevice::_bpp [protected] |
Referenced by EGLDevice(), and checkEGLConfig().
EGLConfig gnash::renderer::EGLDevice::_eglConfig [protected] |
EGLContext gnash::renderer::EGLDevice::_eglContext [protected] |
EGLDisplay gnash::renderer::EGLDevice::_eglDisplay [protected] |
Referenced by ~EGLDevice(), gnash::renderer::x11::X11Device::initDevice(), supportsRenderer(), attachWindow(), checkEGLConfig(), printEGLConfig(), printEGLContext(), printEGLSurface(), createPbuffer(), createPixmap(), getDepth(), getRedSize(), getGreenSize(), getBlueSize(), isSingleBuffered(), isNativeRender(), getWidth(), getHeight(), isBufferDestroyed(), queryEGLConfig(), swapBuffers(), copyPbuffers(), makePbufferCurrent(), getVerticalRes(), getHorzRes(), isBackBuffered(), isMultiSample(), getSurfaceID(), getContextID(), isContextSingleBuffered(), isContextBackBuffered(), getSamples(), getSampleBuffers(), getMaxSwapInterval(), and getMinSwapInterval().
EGLSurface gnash::renderer::EGLDevice::_eglSurface [protected] |
EGLNativePixmapType gnash::renderer::EGLDevice::_nativePixmap [protected] |
EGLNativeWindowType gnash::renderer::EGLDevice::_nativeWindow [protected] |
Referenced by attachWindow().
std::vector<EGLSurface> gnash::renderer::EGLDevice::_pbuffers [protected] |
Referenced by ~EGLDevice(), createPbuffer(), createPixmap(), totalPbuffers(), operator[](), copyPbuffers(), and makePbufferCurrent().
quality_e gnash::renderer::EGLDevice::_quality [protected] |
Referenced by gnash::renderer::x11::X11Device::initDevice().