/** * @eglsymbols * @eglfunref{BindAPI} */ inline Boolean BindAPI(RenderingAPI api) { Boolean result( EGLPLUS_EGLFUNC(BindAPI)(EGLenum(api)), std::nothrow ); EGLPLUS_VERIFY_SIMPLE(BindAPI); return result; }
/** * @eglsymbols * @eglfunref{QueryContext} */ bool Query(ContextAttrib attrib, EGLint& value) const { EGLBoolean result = EGLPLUS_EGLFUNC(QueryContext)( GetEGLHandle(_display), _handle, EGLint(EGLenum(attrib)), &value ); EGLPLUS_CHECK_SIMPLE(QueryContext); return result == EGL_TRUE; }
/** * @eglsymbols * @eglfunref{GetConfigAttrib} */ EGLint GetAttrib(ConfigAttrib attrib) const { EGLint result = 0; EGLPLUS_EGLFUNC(GetConfigAttrib)( FriendOf<Display>::GetHandle(_display), this->_handle, EGLint(EGLenum(attrib)), &result ); EGLPLUS_VERIFY(EGLPLUS_ERROR_INFO(GetConfigAttrib)); return result; }
/** * @eglsymbols * @eglfunref{GetConfigAttrib} * @egldefref{CONFORMANT} */ bool IsConformantTo(eglplus::RenderableTypeBit type) const { EGLenum a = GetAttrib(ConfigAttrib::Conformant); EGLenum b = EGLenum(type); return (a & b) == b; }
/** * @eglsymbols * @eglfunref{GetConfigAttrib} * @egldefref{SURFACE_TYPE} */ bool HasSurfaceType(eglplus::SurfaceTypeBit type) const { EGLenum a = GetAttrib(ConfigAttrib::SurfaceType); EGLenum b = EGLenum(type); return (a & b) == b; }
/** * @eglsymbols * @eglfunref{GetConfigAttrib} * @egldefref{SURFACE_TYPE} */ Bitfield<eglplus::SurfaceTypeBit> SurfaceTypes(void) const { return Bitfield<eglplus::SurfaceTypeBit>( EGLenum(GetAttrib(ConfigAttrib::SurfaceType)) ); }
/** * @eglsymbols * @eglfunref{GetConfigAttrib} * @egldefref{RENDERABLE_TYPE} */ bool HasRenderableType(eglplus::RenderableTypeBit type) const { EGLenum a = GetAttrib(ConfigAttrib::RenderableType); EGLenum b = EGLenum(type); return (a & b) == b; }
/** * @eglsymbols * @eglfunref{GetConfigAttrib} * @egldefref{RENDERABLE_TYPE} */ Bitfield<eglplus::RenderableTypeBit> RenderableTypes(void) const { return Bitfield<eglplus::RenderableTypeBit>( EGLenum(GetAttrib(ConfigAttrib::RenderableType)) ); }
/** * @eglsymbols * @eglfunref{GetConfigAttrib} * @egldefref{TRANSPARENT_TYPE} */ eglplus::TransparentType TransparentType(void) const { return eglplus::TransparentType( EGLenum(GetAttrib(ConfigAttrib::TransparentType)) ); }
/** * @eglsymbols * @eglfunref{GetConfigAttrib} * @egldefref{COLOR_BUFFER_TYPE} */ eglplus::ColorBufferType ColorBufferType(void) const { return eglplus::ColorBufferType( EGLenum(GetAttrib(ConfigAttrib::ColorBufferType)) ); }
/** * @eglsymbols * @eglfunref{GetConfigAttrib} * @egldefref{CONFIG_CAVEAT} */ eglplus::ConfigCaveat ConfigCaveat(void) const { return eglplus::ConfigCaveat( EGLenum(GetAttrib(ConfigAttrib::ConfigCaveat)) ); }