Ejemplo n.º 1
0
/**
 *  @eglsymbols
 *  @eglfunref{BindAPI}
 */
inline Boolean BindAPI(RenderingAPI api)
{
	Boolean result(
		EGLPLUS_EGLFUNC(BindAPI)(EGLenum(api)),
		std::nothrow
	);
	EGLPLUS_VERIFY_SIMPLE(BindAPI);
	return result;
}
Ejemplo n.º 2
0
	/**
	 *  @eglsymbols
	 *  @eglfunref{DestroyContext}
	 */
	~Context(void)
	{
		if(_handle != EGL_NO_CONTEXT)
		{
			EGLPLUS_EGLFUNC(DestroyContext)(
				GetEGLHandle(_display),
				_handle
			);
			EGLPLUS_VERIFY_SIMPLE(DestroyContext);
		}
	}
Ejemplo n.º 3
0
	static ::EGLContext _init(
		const Display& display,
		const Config& config,
		::EGLContext share_context,
		const EGLint* attribs
	)
	{
		::EGLContext result = EGLPLUS_EGLFUNC(CreateContext)(
			GetEGLHandle(display),
			GetEGLHandle(config),
			share_context,
			attribs
		);
		EGLPLUS_VERIFY_SIMPLE(CreateContext);
		return result;
	}
Ejemplo n.º 4
0
/**
 *  @eglsymbols
 *  @eglfunref{QueryAPI}
 */
inline RenderingAPI QueryAPI(void)
{
	EGLenum result = EGLPLUS_EGLFUNC(QueryAPI)();
	EGLPLUS_VERIFY_SIMPLE(QueryAPI);
	return RenderingAPI(result);
}
Ejemplo n.º 5
0
	/**
	 *  @eglsymbols
	 *  @eglfunref{WaitNative}
	 */
	bool WaitNative(EGLint engine) const
	{
		EGLBoolean result = EGLPLUS_EGLFUNC(WaitNative)(engine);
		EGLPLUS_VERIFY_SIMPLE(WaitNative);
		return result == EGL_TRUE;
	}
Ejemplo n.º 6
0
	/**
	 *  @eglsymbols
	 *  @eglfunref{WaitGL}
	 */
	bool WaitGL(void) const
	{
		EGLBoolean result = EGLPLUS_EGLFUNC(WaitGL)();
		EGLPLUS_VERIFY_SIMPLE(WaitGL);
		return result == EGL_TRUE;
	}