• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ EGL_DLSYM函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中EGL_DLSYM函数的典型用法代码示例。如果您正苦于以下问题:C++ EGL_DLSYM函数的具体用法?C++ EGL_DLSYM怎么用?C++ EGL_DLSYM使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了EGL_DLSYM函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: eglCreatePixmapSurface

EGLSurface eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config,
		EGLNativePixmapType pixmap,
		const EGLint *attrib_list)
{
	EGL_DLSYM(&_eglCreatePixmapSurface, "eglCreatePixmapSurface");
	return (*_eglCreatePixmapSurface)(dpy, config, pixmap, attrib_list);
}
开发者ID:gripped,项目名称:hybris,代码行数:7,代码来源:egl.c


示例2: eglCreatePbufferFromClientBuffer

EGLSurface eglCreatePbufferFromClientBuffer(
		EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer,
		EGLConfig config, const EGLint *attrib_list)
{
	EGL_DLSYM(&_eglCreatePbufferFromClientBuffer, "eglCreatePbufferFromClientBuffer");
	return (*_eglCreatePbufferFromClientBuffer)(dpy, buftype, buffer, config, attrib_list);
}
开发者ID:gripped,项目名称:hybris,代码行数:7,代码来源:egl.c


示例3: eglGetConfigAttrib

EGLBoolean eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config,
		EGLint attribute, EGLint *value)
{
	EGL_DLSYM(&_eglGetConfigAttrib, "eglGetConfigAttrib");
	return (*_eglGetConfigAttrib)(dpy, config,
			attribute, value);
}
开发者ID:gripped,项目名称:hybris,代码行数:7,代码来源:egl.c


示例4: eglCreateWindowSurface

EGLSurface eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,
				  EGLNativeWindowType win,
				  const EGLint * attrib_list)
{
	EGL_DEBUG("%s: %s\n", __FILE__, __func__);
	EGL_DLSYM(eglCreateWindowSurface);
	return _eglCreateWindowSurface(dpy, config, win, attrib_list);
}
开发者ID:thayama,项目名称:libegl,代码行数:8,代码来源:egl.c


示例5: eglCreatePixmapSurface

EGLSurface eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config,
				  EGLNativePixmapType pixmap,
				  const EGLint * attrib_list)
{
	EGL_DEBUG("%s: %s\n", __FILE__, __func__);
	EGL_DLSYM(eglCreatePixmapSurface);
	return _eglCreatePixmapSurface(dpy, config, pixmap, attrib_list);
}
开发者ID:thayama,项目名称:libegl,代码行数:8,代码来源:egl.c


示例6: eglTerminate

EGLBoolean eglTerminate(EGLDisplay dpy)
{
	EGL_DLSYM(&_eglTerminate, "eglTerminate");

	struct _EGLDisplay *display = hybris_egl_display_get_mapping(dpy);
	ws_Terminate(display);
	return (*_eglTerminate)(dpy);
}
开发者ID:nbr11,项目名称:libhybris,代码行数:8,代码来源:egl.c


示例7: eglCreateContext

EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config,
			    EGLContext share_context,
			    const EGLint * attrib_list)
{
	EGL_DEBUG("%s: %s\n", __FILE__, __func__);
	EGL_DLSYM(eglCreateContext);
	return _eglCreateContext(dpy, config, share_context, attrib_list);
}
开发者ID:thayama,项目名称:libegl,代码行数:8,代码来源:egl.c


示例8: eglChooseConfig

EGLBoolean eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list,
		EGLConfig *configs, EGLint config_size,
		EGLint *num_config)
{
	EGL_DLSYM(&_eglChooseConfig, "eglChooseConfig");
	return (*_eglChooseConfig)(dpy, attrib_list,
			configs, config_size,
			num_config);
}
开发者ID:nbr11,项目名称:libhybris,代码行数:9,代码来源:egl.c


示例9: eglSwapBuffers

EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface surface)
{
	EGLBoolean ret; 
	HYBRIS_TRACE_BEGIN("hybris-egl", "eglSwapBuffers", "");
	EGL_DLSYM(&_eglSwapBuffers, "eglSwapBuffers");
	ret = (*_eglSwapBuffers)(dpy, surface);
	HYBRIS_TRACE_END("hybris-egl", "eglSwapBuffers", "");
	return ret;
}
开发者ID:F35X70,项目名称:libhybris,代码行数:9,代码来源:egl.c


示例10: eglChooseConfig

EGLBoolean eglChooseConfig(EGLDisplay dpy, const EGLint * attrib_list,
			   EGLConfig * configs, EGLint config_size,
			   EGLint * num_config)
{
	EGL_DEBUG("%s: %s\n", __FILE__, __func__);
	EGL_DLSYM(eglChooseConfig);
	return _eglChooseConfig(dpy, attrib_list,
			       configs, config_size, num_config);
}
开发者ID:thayama,项目名称:libegl,代码行数:9,代码来源:egl.c


示例11: eglCreatePbufferFromClientBuffer

EGLSurface eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype,
					    EGLClientBuffer buffer,
					    EGLConfig config,
					    const EGLint * attrib_list)
{
	EGL_DEBUG("%s: %s\n", __FILE__, __func__);
	EGL_DLSYM(eglCreatePbufferFromClientBuffer);
	return _eglCreatePbufferFromClientBuffer(dpy, buftype, buffer,
						config, attrib_list);
}
开发者ID:thayama,项目名称:libegl,代码行数:10,代码来源:egl.c


示例12: eglCreateWindowSurface

EGLSurface eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,
		EGLNativeWindowType win,
		const EGLint *attrib_list)
{
	EGL_DLSYM(&_eglCreateWindowSurface, "eglCreateWindowSurface");

	win = ws_CreateWindow(win,  _egldisplay2NDT(dpy));
	
	assert(((struct ANativeWindowBuffer *) win)->common.magic == ANDROID_NATIVE_WINDOW_MAGIC);

	EGLSurface result = (*_eglCreateWindowSurface)(dpy, config, win, attrib_list);
	egl_helper_push_mapping(result, win);
	return result;
}
开发者ID:F35X70,项目名称:libhybris,代码行数:14,代码来源:egl.c


示例13: eglSwapInterval

EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval)
{
	EGLBoolean ret;
	EGLSurface surface;
	EGLNativeWindowType win;
	HYBRIS_TRACE_BEGIN("hybris-egl", "eglSwapInterval", "=%d", interval);

	/* Some egl implementations don't pass through the setSwapInterval
	 * call.  Since we may support various swap intervals internally, we'll
	 * call it anyway and then give the wrapped egl implementation a chance
	 * to chage it. */
	EGL_DLSYM(&_eglGetCurrentSurface, "eglGetCurrentSurface");
	surface = (*_eglGetCurrentSurface)(EGL_DRAW);
	if (egl_helper_has_mapping(surface))
	    ws_setSwapInterval(dpy, egl_helper_get_mapping(surface), interval);

	HYBRIS_TRACE_BEGIN("native-egl", "eglSwapInterval", "=%d", interval);
	EGL_DLSYM(&_eglSwapInterval, "eglSwapInterval");
	ret = (*_eglSwapInterval)(dpy, interval);
	HYBRIS_TRACE_END("native-egl", "eglSwapInterval", "");
	HYBRIS_TRACE_END("hybris-egl", "eglSwapInterval", "");
	return ret;
}
开发者ID:nbr11,项目名称:libhybris,代码行数:23,代码来源:egl.c


示例14: eglDestroySurface

EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface)
{
	EGL_DLSYM(&_eglDestroySurface, "eglDestroySurface");
	EGLBoolean result = (*_eglDestroySurface)(dpy, surface);

	/**
         * If the surface was created via eglCreateWindowSurface, we must
         * notify the ws about surface destruction for clean-up.
	 **/
	if (egl_helper_has_mapping(surface)) {
	    ws_DestroyWindow(egl_helper_pop_mapping(surface));
	}

	return result;
}
开发者ID:nbr11,项目名称:libhybris,代码行数:15,代码来源:egl.c


示例15: _my_eglCreateImageKHR

static EGLImageKHR _my_eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list)
{
	EGL_DLSYM(&_eglCreateImageKHR, "eglCreateImageKHR");
	EGLenum newtarget = target;
	EGLClientBuffer newbuffer = buffer;

	ws_passthroughImageKHR(&newtarget, &newbuffer);
	if (newtarget == EGL_NATIVE_BUFFER_ANDROID)
	{
		assert(((struct ANativeWindowBuffer *) newbuffer)->common.magic == ANDROID_NATIVE_BUFFER_MAGIC);
		attrib_list=NULL;
	}

	EGLImageKHR ret = (*_eglCreateImageKHR)(dpy, EGL_NO_CONTEXT, newtarget, newbuffer, attrib_list);
	return ret;
}
开发者ID:F35X70,项目名称:libhybris,代码行数:16,代码来源:egl.c


示例16: eglCreateContext

EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config,
		EGLContext share_context,
		const EGLint *attrib_list)
{
	EGL_DLSYM(&_eglCreateContext, "eglCreateContext");

	EGLint *p = attrib_list;
	while (p != NULL && *p != EGL_NONE) {
		if (*p == EGL_CONTEXT_CLIENT_VERSION) {
			_egl_context_client_version = p[1];
		}
		p += 2;
	}

	return (*_eglCreateContext)(dpy, config, share_context, attrib_list);
}
开发者ID:nbr11,项目名称:libhybris,代码行数:16,代码来源:egl.c


示例17: eglGetProcAddress

__eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname)
{
	EGL_DLSYM(&_eglGetProcAddress, "eglGetProcAddress");
	if (strcmp(procname, "eglCreateImageKHR") == 0)
	{
		return _my_eglCreateImageKHR;
	} 
	else if (strcmp(procname, "glEGLImageTargetTexture2DOES") == 0)
	{
		return _my_glEGLImageTargetTexture2DOES;
	}
	__eglMustCastToProperFunctionPointerType ret = ws_eglGetProcAddress(procname);
	if (ret == NULL)
		return (*_eglGetProcAddress)(procname);
	else return ret;
}
开发者ID:F35X70,项目名称:libhybris,代码行数:16,代码来源:egl.c


示例18: _my_eglSwapBuffersWithDamageEXT

EGLBoolean _my_eglSwapBuffersWithDamageEXT(EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects)
{
	EGLNativeWindowType win;
	EGLBoolean ret;
	HYBRIS_TRACE_BEGIN("hybris-egl", "eglSwapBuffersWithDamageEXT", "");
	EGL_DLSYM(&_eglSwapBuffers, "eglSwapBuffers");

	if (egl_helper_has_mapping(surface)) {
		win = egl_helper_get_mapping(surface);
		ws_prepareSwap(dpy, win, rects, n_rects);
		ret = (*_eglSwapBuffers)(dpy, surface);
		ws_finishSwap(dpy, win);
	} else {
		ret = (*_eglSwapBuffers)(dpy, surface);
	}
	HYBRIS_TRACE_END("hybris-egl", "eglSwapBuffersWithDamageEXT", "");
	return ret;
}
开发者ID:nbr11,项目名称:libhybris,代码行数:18,代码来源:egl.c


示例19: eglGetDisplay

EGLDisplay eglGetDisplay(EGLNativeDisplayType display_id)
{
	EGL_DLSYM(&_eglGetDisplay, "eglGetDisplay");
	EGLNativeDisplayType real_display;

	if (!ws_IsValidDisplay(display_id))
	{
		return EGL_NO_DISPLAY;
	}

	real_display = (*_eglGetDisplay)(EGL_DEFAULT_DISPLAY);
	if (real_display == EGL_NO_DISPLAY)
	{
		return EGL_NO_DISPLAY;
	}
	_addMapping(display_id, real_display);
	return real_display;
}
开发者ID:F35X70,项目名称:libhybris,代码行数:18,代码来源:egl.c


示例20: eglGetProcAddress

__eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname)
{
	EGL_DLSYM(eglGetProcAddress);

	EGL_DEBUG("%s: %s(%s)\n", __FILE__, __func__, procname);
	if (strcmp(procname, "eglCreateImageKHR") == 0) {
		return (__eglMustCastToProperFunctionPointerType)__eglCreateImageKHR;
	}
#ifdef WANT_WAYLAND
	else if (strcmp(procname, "eglBindWaylandDisplayWL") == 0) {
		return (__eglMustCastToProperFunctionPointerType)__eglBindWaylandDisplayWL;
	} else if (strcmp(procname, "eglUnbindWaylandDisplayWL") == 0) {
		return (__eglMustCastToProperFunctionPointerType)__eglUnbindWaylandDisplayWL;
	} else if (strcmp(procname, "eglQueryWaylandBufferWL") == 0) {
		return (__eglMustCastToProperFunctionPointerType)__eglQueryWaylandBufferWL;
	}
#endif
	return _eglGetProcAddress(procname);
}
开发者ID:thayama,项目名称:libegl,代码行数:19,代码来源:egl.c



注:本文中的EGL_DLSYM函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ EGWithMaskChangeAttributes函数代码示例发布时间:2022-05-30
下一篇:
C++ EGLPlatformParameters函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap