13QDirectFbGLContext::QDirectFbGLContext(IDirectFBGL *glContext)
14 : m_dfbGlContext(glContext)
17 DFBGLAttributes glAttribs;
18 result = m_dfbGlContext->GetAttributes(glContext, &glAttribs);
20 m_windowFormat.setDepthBufferSize(glAttribs.depth_size);
21 m_windowFormat.setStencilBufferSize(glAttribs.stencil_size);
23 m_windowFormat.setRedBufferSize(glAttribs.red_size);
24 m_windowFormat.setGreenBufferSize(glAttribs.green_size);
25 m_windowFormat.setBlueBufferSize(glAttribs.blue_size);
26 m_windowFormat.setAlphaBufferSize(glAttribs.alpha_size);
28 m_windowFormat.setAccumBufferSize(glAttribs.accum_red_size);
29 m_windowFormat.setAlpha(glAttribs.accum_alpha_size);
31 m_windowFormat.setDoubleBuffer(glAttribs.double_buffer);
32 m_windowFormat.setStereo(glAttribs.stereo);
36void QDirectFbGLContext::makeCurrent()
39 m_dfbGlContext->Lock(m_dfbGlContext);
42void QDirectFbGLContext::doneCurrent()
45 m_dfbGlContext->Unlock(m_dfbGlContext);
48QFunctionPointer QDirectFbGLContext::getProcAddress(
const char *procName)
51 DFBResult
result = m_dfbGlContext->GetProcAddress(m_dfbGlContext, procName, &proc);
53 return (QFunctionPointer) proc;
54 return dlsym(RTLD_DEFAULT, procName);
57void QDirectFbGLContext::swapBuffers()
63QPlatformWindowFormat QDirectFbGLContext::platformWindowFormat()
const
65 return m_windowFormat;
virtual bool makeCurrent(QPlatformSurface *surface)=0
virtual void doneCurrent()=0
Combined button and popup list for selecting options.