/**
 *  @eglsymbols
 *  @eglfunref{BindAPI}
 */
inline Boolean BindAPI(RenderingAPI api)
{
	Boolean result(
		EGLPLUS_EGLFUNC(BindAPI)(EGLenum(api)),
		std::nothrow
	);
	EGLPLUS_VERIFY_SIMPLE(BindAPI);
	return result;
}
Exemple #2
0
	/**
	 *  @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;
	}
Exemple #3
0
	/**
	 *  @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;
	}
Exemple #4
0
	/**
	 *  @eglsymbols
	 *  @eglfunref{GetConfigAttrib}
	 *  @egldefref{CONFORMANT}
	 */
	bool IsConformantTo(eglplus::RenderableTypeBit type) const
	{
		EGLenum a = GetAttrib(ConfigAttrib::Conformant);
		EGLenum b = EGLenum(type);
		return (a & b) == b;
	}
Exemple #5
0
	/**
	 *  @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;
	}
Exemple #6
0
	/**
	 *  @eglsymbols
	 *  @eglfunref{GetConfigAttrib}
	 *  @egldefref{SURFACE_TYPE}
	 */
	Bitfield<eglplus::SurfaceTypeBit> SurfaceTypes(void) const
	{
		return Bitfield<eglplus::SurfaceTypeBit>(
			EGLenum(GetAttrib(ConfigAttrib::SurfaceType))
		);
	}
Exemple #7
0
	/**
	 *  @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;
	}
Exemple #8
0
	/**
	 *  @eglsymbols
	 *  @eglfunref{GetConfigAttrib}
	 *  @egldefref{RENDERABLE_TYPE}
	 */
	Bitfield<eglplus::RenderableTypeBit> RenderableTypes(void) const
	{
		return Bitfield<eglplus::RenderableTypeBit>(
			EGLenum(GetAttrib(ConfigAttrib::RenderableType))
		);
	}
Exemple #9
0
	/**
	 *  @eglsymbols
	 *  @eglfunref{GetConfigAttrib}
	 *  @egldefref{TRANSPARENT_TYPE}
	 */
	eglplus::TransparentType TransparentType(void) const
	{
		return eglplus::TransparentType(
			EGLenum(GetAttrib(ConfigAttrib::TransparentType))
		);
	}
Exemple #10
0
	/**
	 *  @eglsymbols
	 *  @eglfunref{GetConfigAttrib}
	 *  @egldefref{COLOR_BUFFER_TYPE}
	 */
	eglplus::ColorBufferType ColorBufferType(void) const
	{
		return eglplus::ColorBufferType(
			EGLenum(GetAttrib(ConfigAttrib::ColorBufferType))
		);
	}
Exemple #11
0
	/**
	 *  @eglsymbols
	 *  @eglfunref{GetConfigAttrib}
	 *  @egldefref{CONFIG_CAVEAT}
	 */
	eglplus::ConfigCaveat ConfigCaveat(void) const
	{
		return eglplus::ConfigCaveat(
			EGLenum(GetAttrib(ConfigAttrib::ConfigCaveat))
		);
	}