69 |
69 |
70 class QEglContext; |
70 class QEglContext; |
71 |
71 |
72 // Create an EGL context, but don't bind it to a surface. If single-context |
72 // Create an EGL context, but don't bind it to a surface. If single-context |
73 // mode is enabled, this will return the previously-created context. |
73 // mode is enabled, this will return the previously-created context. |
74 Q_OPENVG_EXPORT QEglContext *qt_vg_create_context(QPaintDevice *device); |
74 // "devType" indicates the type of device using the context, usually |
|
75 // QInternal::Widget or QInternal::Pixmap. |
|
76 Q_OPENVG_EXPORT QEglContext *qt_vg_create_context |
|
77 (QPaintDevice *device, int devType); |
75 |
78 |
76 // Destroy an EGL context that was created by qt_vg_create_context(). |
79 // Destroy an EGL context that was created by qt_vg_create_context(). |
77 // If single-context mode is enabled, this will decrease the reference count. |
80 // If single-context mode is enabled, this will decrease the reference count. |
78 Q_OPENVG_EXPORT void qt_vg_destroy_context(QEglContext *context); |
81 // "devType" indicates the type of device destroying the context, usually |
|
82 // QInternal::Widget or QInternal::Pixmap. |
|
83 Q_OPENVG_EXPORT void qt_vg_destroy_context |
|
84 (QEglContext *context, int devType); |
79 |
85 |
80 // Return the shared pbuffer surface that can be made current to |
86 // Return the shared pbuffer surface that can be made current to |
81 // destroy VGImage objects when there is no other surface available. |
87 // destroy VGImage objects when there is no other surface available. |
82 Q_OPENVG_EXPORT EGLSurface qt_vg_shared_surface(void); |
88 Q_OPENVG_EXPORT EGLSurface qt_vg_shared_surface(void); |
83 |
89 |