Esempio n. 1
0
static int wgleIntLoad_AMD_gpu_association()
{
	int bIsLoaded = 1;
#ifndef WGL_AMD_gpu_association
	wglGetGPUIDsAMD = (PFNWGLGETGPUIDSAMDPROC)gleIntGetProcAddress("wglGetGPUIDsAMD");
	if(!wglGetGPUIDsAMD) bIsLoaded = 0;
	wglGetGPUInfoAMD = (PFNWGLGETGPUINFOAMDPROC)gleIntGetProcAddress("wglGetGPUInfoAMD");
	if(!wglGetGPUInfoAMD) bIsLoaded = 0;
	wglGetContextGPUIDAMD = (PFNWGLGETCONTEXTGPUIDAMDPROC)gleIntGetProcAddress("wglGetContextGPUIDAMD");
	if(!wglGetContextGPUIDAMD) bIsLoaded = 0;
	wglCreateAssociatedContextAMD = (PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC)gleIntGetProcAddress("wglCreateAssociatedContextAMD");
	if(!wglCreateAssociatedContextAMD) bIsLoaded = 0;
	wglCreateAssociatedContextAttribsAMD = (PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC)gleIntGetProcAddress("wglCreateAssociatedContextAttribsAMD");
	if(!wglCreateAssociatedContextAttribsAMD) bIsLoaded = 0;
	wglDeleteAssociatedContextAMD = (PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC)gleIntGetProcAddress("wglDeleteAssociatedContextAMD");
	if(!wglDeleteAssociatedContextAMD) bIsLoaded = 0;
	wglMakeAssociatedContextCurrentAMD = (PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC)gleIntGetProcAddress("wglMakeAssociatedContextCurrentAMD");
	if(!wglMakeAssociatedContextCurrentAMD) bIsLoaded = 0;
	wglGetCurrentAssociatedContextAMD = (PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC)gleIntGetProcAddress("wglGetCurrentAssociatedContextAMD");
	if(!wglGetCurrentAssociatedContextAMD) bIsLoaded = 0;
	wglBlitContextFramebufferAMD = (PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC)gleIntGetProcAddress("wglBlitContextFramebufferAMD");
	if(!wglBlitContextFramebufferAMD) bIsLoaded = 0;
#endif /*WGL_AMD_gpu_association*/
	return bIsLoaded;
}
Esempio n. 2
0
static int glXeIntLoad_EXT_texture_from_pixmap()
{
	int bIsLoaded = 1;
#ifndef GLX_EXT_texture_from_pixmap
	glXBindTexImageEXT = (PFNGLXBINDTEXIMAGEEXTPROC)gleIntGetProcAddress("glXBindTexImageEXT");
	if(!glXBindTexImageEXT) bIsLoaded = 0;
	glXReleaseTexImageEXT = (PFNGLXRELEASETEXIMAGEEXTPROC)gleIntGetProcAddress("glXReleaseTexImageEXT");
	if(!glXReleaseTexImageEXT) bIsLoaded = 0;
#endif /*GLX_EXT_texture_from_pixmap*/
	return bIsLoaded;
}
Esempio n. 3
0
static int glXeIntLoad_SGI_video_sync()
{
	int bIsLoaded = 1;
#ifndef GLX_SGI_video_sync
	glXGetVideoSyncSGI = (PFNGLXGETVIDEOSYNCSGIPROC)gleIntGetProcAddress("glXGetVideoSyncSGI");
	if(!glXGetVideoSyncSGI) bIsLoaded = 0;
	glXWaitVideoSyncSGI = (PFNGLXWAITVIDEOSYNCSGIPROC)gleIntGetProcAddress("glXWaitVideoSyncSGI");
	if(!glXWaitVideoSyncSGI) bIsLoaded = 0;
#endif /*GLX_SGI_video_sync*/
	return bIsLoaded;
}
Esempio n. 4
0
static int wgleIntLoad_ARB_make_current_read()
{
	int bIsLoaded = 1;
#ifndef WGL_ARB_make_current_read
	wglMakeContextCurrentARB = (PFNWGLMAKECONTEXTCURRENTARBPROC)gleIntGetProcAddress("wglMakeContextCurrentARB");
	if(!TestPointer((const void*)wglMakeContextCurrentARB)) bIsLoaded = 0;
	wglGetCurrentReadDCARB = (PFNWGLGETCURRENTREADDCARBPROC)gleIntGetProcAddress("wglGetCurrentReadDCARB");
	if(!TestPointer((const void*)wglGetCurrentReadDCARB)) bIsLoaded = 0;
#endif /*WGL_ARB_make_current_read*/
	return bIsLoaded;
}
Esempio n. 5
0
static int wgleIntLoad_EXT_make_current_read()
{
	int bIsLoaded = 1;
#ifndef WGL_EXT_make_current_read
	wglMakeContextCurrentEXT = (PFNWGLMAKECONTEXTCURRENTEXTPROC)gleIntGetProcAddress("wglMakeContextCurrentEXT");
	if(!wglMakeContextCurrentEXT) bIsLoaded = 0;
	wglGetCurrentReadDCEXT = (PFNWGLGETCURRENTREADDCEXTPROC)gleIntGetProcAddress("wglGetCurrentReadDCEXT");
	if(!wglGetCurrentReadDCEXT) bIsLoaded = 0;
#endif /*WGL_EXT_make_current_read*/
	return bIsLoaded;
}
Esempio n. 6
0
static int glXeIntLoad_SGI_make_current_read()
{
	int bIsLoaded = 1;
#ifndef GLX_SGI_make_current_read
	glXMakeCurrentReadSGI = (PFNGLXMAKECURRENTREADSGIPROC)gleIntGetProcAddress("glXMakeCurrentReadSGI");
	if(!glXMakeCurrentReadSGI) bIsLoaded = 0;
	glXGetCurrentReadDrawableSGI = (PFNGLXGETCURRENTREADDRAWABLESGIPROC)gleIntGetProcAddress("glXGetCurrentReadDrawableSGI");
	if(!glXGetCurrentReadDrawableSGI) bIsLoaded = 0;
#endif /*GLX_SGI_make_current_read*/
	return bIsLoaded;
}
Esempio n. 7
0
static int glXeIntLoad_SGIX_swap_barrier()
{
	int bIsLoaded = 1;
#ifndef GLX_SGIX_swap_barrier
	glXBindSwapBarrierSGIX = (PFNGLXBINDSWAPBARRIERSGIXPROC)gleIntGetProcAddress("glXBindSwapBarrierSGIX");
	if(!glXBindSwapBarrierSGIX) bIsLoaded = 0;
	glXQueryMaxSwapBarriersSGIX = (PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC)gleIntGetProcAddress("glXQueryMaxSwapBarriersSGIX");
	if(!glXQueryMaxSwapBarriersSGIX) bIsLoaded = 0;
#endif /*GLX_SGIX_swap_barrier*/
	return bIsLoaded;
}
Esempio n. 8
0
static int wgleIntLoad_I3D_digital_video_control()
{
	int bIsLoaded = 1;
#ifndef WGL_I3D_digital_video_control
	wglGetDigitalVideoParametersI3D = (PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC)gleIntGetProcAddress("wglGetDigitalVideoParametersI3D");
	if(!wglGetDigitalVideoParametersI3D) bIsLoaded = 0;
	wglSetDigitalVideoParametersI3D = (PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC)gleIntGetProcAddress("wglSetDigitalVideoParametersI3D");
	if(!wglSetDigitalVideoParametersI3D) bIsLoaded = 0;
#endif /*WGL_I3D_digital_video_control*/
	return bIsLoaded;
}
Esempio n. 9
0
static int glXeIntLoad_NV_present_video()
{
	int bIsLoaded = 1;
#ifndef GLX_NV_present_video
	glXEnumerateVideoDevicesNV = (PFNGLXENUMERATEVIDEODEVICESNVPROC)gleIntGetProcAddress("glXEnumerateVideoDevicesNV");
	if(!glXEnumerateVideoDevicesNV) bIsLoaded = 0;
	glXBindVideoDeviceNV = (PFNGLXBINDVIDEODEVICENVPROC)gleIntGetProcAddress("glXBindVideoDeviceNV");
	if(!glXBindVideoDeviceNV) bIsLoaded = 0;
#endif /*GLX_NV_present_video*/
	return bIsLoaded;
}
Esempio n. 10
0
static int wgleIntLoad_ARB_pixel_format()
{
	int bIsLoaded = 1;
#ifndef WGL_ARB_pixel_format
	wglGetPixelFormatAttribivARB = (PFNWGLGETPIXELFORMATATTRIBIVARBPROC)gleIntGetProcAddress("wglGetPixelFormatAttribivARB");
	if(!wglGetPixelFormatAttribivARB) bIsLoaded = 0;
	wglGetPixelFormatAttribfvARB = (PFNWGLGETPIXELFORMATATTRIBFVARBPROC)gleIntGetProcAddress("wglGetPixelFormatAttribfvARB");
	if(!wglGetPixelFormatAttribfvARB) bIsLoaded = 0;
	wglChoosePixelFormatARB = (PFNWGLCHOOSEPIXELFORMATARBPROC)gleIntGetProcAddress("wglChoosePixelFormatARB");
	if(!wglChoosePixelFormatARB) bIsLoaded = 0;
#endif /*WGL_ARB_pixel_format*/
	return bIsLoaded;
}
Esempio n. 11
0
static int wgleIntLoad_ARB_render_texture()
{
	int bIsLoaded = 1;
#ifndef WGL_ARB_render_texture
	wglBindTexImageARB = (PFNWGLBINDTEXIMAGEARBPROC)gleIntGetProcAddress("wglBindTexImageARB");
	if(!wglBindTexImageARB) bIsLoaded = 0;
	wglReleaseTexImageARB = (PFNWGLRELEASETEXIMAGEARBPROC)gleIntGetProcAddress("wglReleaseTexImageARB");
	if(!wglReleaseTexImageARB) bIsLoaded = 0;
	wglSetPbufferAttribARB = (PFNWGLSETPBUFFERATTRIBARBPROC)gleIntGetProcAddress("wglSetPbufferAttribARB");
	if(!wglSetPbufferAttribARB) bIsLoaded = 0;
#endif /*WGL_ARB_render_texture*/
	return bIsLoaded;
}
Esempio n. 12
0
static int wgleIntLoad_EXT_pixel_format()
{
	int bIsLoaded = 1;
#ifndef WGL_EXT_pixel_format
	wglGetPixelFormatAttribivEXT = (PFNWGLGETPIXELFORMATATTRIBIVEXTPROC)gleIntGetProcAddress("wglGetPixelFormatAttribivEXT");
	if(!wglGetPixelFormatAttribivEXT) bIsLoaded = 0;
	wglGetPixelFormatAttribfvEXT = (PFNWGLGETPIXELFORMATATTRIBFVEXTPROC)gleIntGetProcAddress("wglGetPixelFormatAttribfvEXT");
	if(!wglGetPixelFormatAttribfvEXT) bIsLoaded = 0;
	wglChoosePixelFormatEXT = (PFNWGLCHOOSEPIXELFORMATEXTPROC)gleIntGetProcAddress("wglChoosePixelFormatEXT");
	if(!wglChoosePixelFormatEXT) bIsLoaded = 0;
#endif /*WGL_EXT_pixel_format*/
	return bIsLoaded;
}
Esempio n. 13
0
static int wgleIntLoad_NV_present_video()
{
	int bIsLoaded = 1;
#ifndef WGL_NV_present_video
	wglEnumerateVideoDevicesNV = (PFNWGLENUMERATEVIDEODEVICESNVPROC)gleIntGetProcAddress("wglEnumerateVideoDevicesNV");
	if(!wglEnumerateVideoDevicesNV) bIsLoaded = 0;
	wglBindVideoDeviceNV = (PFNWGLBINDVIDEODEVICENVPROC)gleIntGetProcAddress("wglBindVideoDeviceNV");
	if(!wglBindVideoDeviceNV) bIsLoaded = 0;
	wglQueryCurrentContextNV = (PFNWGLQUERYCURRENTCONTEXTNVPROC)gleIntGetProcAddress("wglQueryCurrentContextNV");
	if(!wglQueryCurrentContextNV) bIsLoaded = 0;
#endif /*WGL_NV_present_video*/
	return bIsLoaded;
}
Esempio n. 14
0
static int wgleIntLoad_ARB_buffer_region()
{
	int bIsLoaded = 1;
#ifndef WGL_ARB_buffer_region
	wglCreateBufferRegionARB = (PFNWGLCREATEBUFFERREGIONARBPROC)gleIntGetProcAddress("wglCreateBufferRegionARB");
	if(!wglCreateBufferRegionARB) bIsLoaded = 0;
	wglDeleteBufferRegionARB = (PFNWGLDELETEBUFFERREGIONARBPROC)gleIntGetProcAddress("wglDeleteBufferRegionARB");
	if(!wglDeleteBufferRegionARB) bIsLoaded = 0;
	wglSaveBufferRegionARB = (PFNWGLSAVEBUFFERREGIONARBPROC)gleIntGetProcAddress("wglSaveBufferRegionARB");
	if(!wglSaveBufferRegionARB) bIsLoaded = 0;
	wglRestoreBufferRegionARB = (PFNWGLRESTOREBUFFERREGIONARBPROC)gleIntGetProcAddress("wglRestoreBufferRegionARB");
	if(!wglRestoreBufferRegionARB) bIsLoaded = 0;
#endif /*WGL_ARB_buffer_region*/
	return bIsLoaded;
}
Esempio n. 15
0
static int wgleIntLoad_I3D_image_buffer()
{
	int bIsLoaded = 1;
#ifndef WGL_I3D_image_buffer
	wglCreateImageBufferI3D = (PFNWGLCREATEIMAGEBUFFERI3DPROC)gleIntGetProcAddress("wglCreateImageBufferI3D");
	if(!wglCreateImageBufferI3D) bIsLoaded = 0;
	wglDestroyImageBufferI3D = (PFNWGLDESTROYIMAGEBUFFERI3DPROC)gleIntGetProcAddress("wglDestroyImageBufferI3D");
	if(!wglDestroyImageBufferI3D) bIsLoaded = 0;
	wglAssociateImageBufferEventsI3D = (PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC)gleIntGetProcAddress("wglAssociateImageBufferEventsI3D");
	if(!wglAssociateImageBufferEventsI3D) bIsLoaded = 0;
	wglReleaseImageBufferEventsI3D = (PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC)gleIntGetProcAddress("wglReleaseImageBufferEventsI3D");
	if(!wglReleaseImageBufferEventsI3D) bIsLoaded = 0;
#endif /*WGL_I3D_image_buffer*/
	return bIsLoaded;
}
Esempio n. 16
0
static int wgleIntLoad_I3D_swap_frame_lock()
{
	int bIsLoaded = 1;
#ifndef WGL_I3D_swap_frame_lock
	wglEnableFrameLockI3D = (PFNWGLENABLEFRAMELOCKI3DPROC)gleIntGetProcAddress("wglEnableFrameLockI3D");
	if(!wglEnableFrameLockI3D) bIsLoaded = 0;
	wglDisableFrameLockI3D = (PFNWGLDISABLEFRAMELOCKI3DPROC)gleIntGetProcAddress("wglDisableFrameLockI3D");
	if(!wglDisableFrameLockI3D) bIsLoaded = 0;
	wglIsEnabledFrameLockI3D = (PFNWGLISENABLEDFRAMELOCKI3DPROC)gleIntGetProcAddress("wglIsEnabledFrameLockI3D");
	if(!wglIsEnabledFrameLockI3D) bIsLoaded = 0;
	wglQueryFrameLockMasterI3D = (PFNWGLQUERYFRAMELOCKMASTERI3DPROC)gleIntGetProcAddress("wglQueryFrameLockMasterI3D");
	if(!wglQueryFrameLockMasterI3D) bIsLoaded = 0;
#endif /*WGL_I3D_swap_frame_lock*/
	return bIsLoaded;
}
Esempio n. 17
0
static int wgleIntLoad_I3D_gamma()
{
	int bIsLoaded = 1;
#ifndef WGL_I3D_gamma
	wglGetGammaTableParametersI3D = (PFNWGLGETGAMMATABLEPARAMETERSI3DPROC)gleIntGetProcAddress("wglGetGammaTableParametersI3D");
	if(!wglGetGammaTableParametersI3D) bIsLoaded = 0;
	wglSetGammaTableParametersI3D = (PFNWGLSETGAMMATABLEPARAMETERSI3DPROC)gleIntGetProcAddress("wglSetGammaTableParametersI3D");
	if(!wglSetGammaTableParametersI3D) bIsLoaded = 0;
	wglGetGammaTableI3D = (PFNWGLGETGAMMATABLEI3DPROC)gleIntGetProcAddress("wglGetGammaTableI3D");
	if(!wglGetGammaTableI3D) bIsLoaded = 0;
	wglSetGammaTableI3D = (PFNWGLSETGAMMATABLEI3DPROC)gleIntGetProcAddress("wglSetGammaTableI3D");
	if(!wglSetGammaTableI3D) bIsLoaded = 0;
#endif /*WGL_I3D_gamma*/
	return bIsLoaded;
}
Esempio n. 18
0
static int glXeIntLoad_NV_video_capture()
{
	int bIsLoaded = 1;
#ifndef GLX_NV_video_capture
	glXBindVideoCaptureDeviceNV = (PFNGLXBINDVIDEOCAPTUREDEVICENVPROC)gleIntGetProcAddress("glXBindVideoCaptureDeviceNV");
	if(!glXBindVideoCaptureDeviceNV) bIsLoaded = 0;
	glXEnumerateVideoCaptureDevicesNV = (PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC)gleIntGetProcAddress("glXEnumerateVideoCaptureDevicesNV");
	if(!glXEnumerateVideoCaptureDevicesNV) bIsLoaded = 0;
	glXLockVideoCaptureDeviceNV = (PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC)gleIntGetProcAddress("glXLockVideoCaptureDeviceNV");
	if(!glXLockVideoCaptureDeviceNV) bIsLoaded = 0;
	glXQueryVideoCaptureDeviceNV = (PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC)gleIntGetProcAddress("glXQueryVideoCaptureDeviceNV");
	if(!glXQueryVideoCaptureDeviceNV) bIsLoaded = 0;
	glXReleaseVideoCaptureDeviceNV = (PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC)gleIntGetProcAddress("glXReleaseVideoCaptureDeviceNV");
	if(!glXReleaseVideoCaptureDeviceNV) bIsLoaded = 0;
#endif /*GLX_NV_video_capture*/
	return bIsLoaded;
}
Esempio n. 19
0
static int wgleIntLoad_NV_video_capture()
{
	int bIsLoaded = 1;
#ifndef WGL_NV_video_capture
	wglBindVideoCaptureDeviceNV = (PFNWGLBINDVIDEOCAPTUREDEVICENVPROC)gleIntGetProcAddress("wglBindVideoCaptureDeviceNV");
	if(!wglBindVideoCaptureDeviceNV) bIsLoaded = 0;
	wglEnumerateVideoCaptureDevicesNV = (PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC)gleIntGetProcAddress("wglEnumerateVideoCaptureDevicesNV");
	if(!wglEnumerateVideoCaptureDevicesNV) bIsLoaded = 0;
	wglLockVideoCaptureDeviceNV = (PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC)gleIntGetProcAddress("wglLockVideoCaptureDeviceNV");
	if(!wglLockVideoCaptureDeviceNV) bIsLoaded = 0;
	wglQueryVideoCaptureDeviceNV = (PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC)gleIntGetProcAddress("wglQueryVideoCaptureDeviceNV");
	if(!wglQueryVideoCaptureDeviceNV) bIsLoaded = 0;
	wglReleaseVideoCaptureDeviceNV = (PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC)gleIntGetProcAddress("wglReleaseVideoCaptureDeviceNV");
	if(!wglReleaseVideoCaptureDeviceNV) bIsLoaded = 0;
#endif /*WGL_NV_video_capture*/
	return bIsLoaded;
}
Esempio n. 20
0
static int glXeIntLoad_OML_sync_control()
{
	int bIsLoaded = 1;
#ifndef GLX_OML_sync_control
	glXGetSyncValuesOML = (PFNGLXGETSYNCVALUESOMLPROC)gleIntGetProcAddress("glXGetSyncValuesOML");
	if(!glXGetSyncValuesOML) bIsLoaded = 0;
	glXGetMscRateOML = (PFNGLXGETMSCRATEOMLPROC)gleIntGetProcAddress("glXGetMscRateOML");
	if(!glXGetMscRateOML) bIsLoaded = 0;
	glXSwapBuffersMscOML = (PFNGLXSWAPBUFFERSMSCOMLPROC)gleIntGetProcAddress("glXSwapBuffersMscOML");
	if(!glXSwapBuffersMscOML) bIsLoaded = 0;
	glXWaitForMscOML = (PFNGLXWAITFORMSCOMLPROC)gleIntGetProcAddress("glXWaitForMscOML");
	if(!glXWaitForMscOML) bIsLoaded = 0;
	glXWaitForSbcOML = (PFNGLXWAITFORSBCOMLPROC)gleIntGetProcAddress("glXWaitForSbcOML");
	if(!glXWaitForSbcOML) bIsLoaded = 0;
#endif /*GLX_OML_sync_control*/
	return bIsLoaded;
}
Esempio n. 21
0
static int wgleIntLoad_EXT_pbuffer()
{
	int bIsLoaded = 1;
#ifndef WGL_EXT_pbuffer
	wglCreatePbufferEXT = (PFNWGLCREATEPBUFFEREXTPROC)gleIntGetProcAddress("wglCreatePbufferEXT");
	if(!wglCreatePbufferEXT) bIsLoaded = 0;
	wglGetPbufferDCEXT = (PFNWGLGETPBUFFERDCEXTPROC)gleIntGetProcAddress("wglGetPbufferDCEXT");
	if(!wglGetPbufferDCEXT) bIsLoaded = 0;
	wglReleasePbufferDCEXT = (PFNWGLRELEASEPBUFFERDCEXTPROC)gleIntGetProcAddress("wglReleasePbufferDCEXT");
	if(!wglReleasePbufferDCEXT) bIsLoaded = 0;
	wglDestroyPbufferEXT = (PFNWGLDESTROYPBUFFEREXTPROC)gleIntGetProcAddress("wglDestroyPbufferEXT");
	if(!wglDestroyPbufferEXT) bIsLoaded = 0;
	wglQueryPbufferEXT = (PFNWGLQUERYPBUFFEREXTPROC)gleIntGetProcAddress("wglQueryPbufferEXT");
	if(!wglQueryPbufferEXT) bIsLoaded = 0;
#endif /*WGL_EXT_pbuffer*/
	return bIsLoaded;
}
Esempio n. 22
0
static int glXeIntLoad_SGIX_pbuffer()
{
	int bIsLoaded = 1;
#ifndef GLX_SGIX_pbuffer
	glXCreateGLXPbufferSGIX = (PFNGLXCREATEGLXPBUFFERSGIXPROC)gleIntGetProcAddress("glXCreateGLXPbufferSGIX");
	if(!glXCreateGLXPbufferSGIX) bIsLoaded = 0;
	glXDestroyGLXPbufferSGIX = (PFNGLXDESTROYGLXPBUFFERSGIXPROC)gleIntGetProcAddress("glXDestroyGLXPbufferSGIX");
	if(!glXDestroyGLXPbufferSGIX) bIsLoaded = 0;
	glXQueryGLXPbufferSGIX = (PFNGLXQUERYGLXPBUFFERSGIXPROC)gleIntGetProcAddress("glXQueryGLXPbufferSGIX");
	if(!glXQueryGLXPbufferSGIX) bIsLoaded = 0;
	glXSelectEventSGIX = (PFNGLXSELECTEVENTSGIXPROC)gleIntGetProcAddress("glXSelectEventSGIX");
	if(!glXSelectEventSGIX) bIsLoaded = 0;
	glXGetSelectedEventSGIX = (PFNGLXGETSELECTEDEVENTSGIXPROC)gleIntGetProcAddress("glXGetSelectedEventSGIX");
	if(!glXGetSelectedEventSGIX) bIsLoaded = 0;
#endif /*GLX_SGIX_pbuffer*/
	return bIsLoaded;
}
Esempio n. 23
0
static int glXeIntLoad_SGIX_video_resize()
{
	int bIsLoaded = 1;
#ifndef GLX_SGIX_video_resize
	glXBindChannelToWindowSGIX = (PFNGLXBINDCHANNELTOWINDOWSGIXPROC)gleIntGetProcAddress("glXBindChannelToWindowSGIX");
	if(!glXBindChannelToWindowSGIX) bIsLoaded = 0;
	glXChannelRectSGIX = (PFNGLXCHANNELRECTSGIXPROC)gleIntGetProcAddress("glXChannelRectSGIX");
	if(!glXChannelRectSGIX) bIsLoaded = 0;
	glXQueryChannelRectSGIX = (PFNGLXQUERYCHANNELRECTSGIXPROC)gleIntGetProcAddress("glXQueryChannelRectSGIX");
	if(!glXQueryChannelRectSGIX) bIsLoaded = 0;
	glXQueryChannelDeltasSGIX = (PFNGLXQUERYCHANNELDELTASSGIXPROC)gleIntGetProcAddress("glXQueryChannelDeltasSGIX");
	if(!glXQueryChannelDeltasSGIX) bIsLoaded = 0;
	glXChannelRectSyncSGIX = (PFNGLXCHANNELRECTSYNCSGIXPROC)gleIntGetProcAddress("glXChannelRectSyncSGIX");
	if(!glXChannelRectSyncSGIX) bIsLoaded = 0;
#endif /*GLX_SGIX_video_resize*/
	return bIsLoaded;
}
Esempio n. 24
0
static int wgleIntLoad_ARB_pbuffer()
{
	int bIsLoaded = 1;
#ifndef WGL_ARB_pbuffer
	wglCreatePbufferARB = (PFNWGLCREATEPBUFFERARBPROC)gleIntGetProcAddress("wglCreatePbufferARB");
	if(!TestPointer((const void*)wglCreatePbufferARB)) bIsLoaded = 0;
	wglGetPbufferDCARB = (PFNWGLGETPBUFFERDCARBPROC)gleIntGetProcAddress("wglGetPbufferDCARB");
	if(!TestPointer((const void*)wglGetPbufferDCARB)) bIsLoaded = 0;
	wglReleasePbufferDCARB = (PFNWGLRELEASEPBUFFERDCARBPROC)gleIntGetProcAddress("wglReleasePbufferDCARB");
	if(!TestPointer((const void*)wglReleasePbufferDCARB)) bIsLoaded = 0;
	wglDestroyPbufferARB = (PFNWGLDESTROYPBUFFERARBPROC)gleIntGetProcAddress("wglDestroyPbufferARB");
	if(!TestPointer((const void*)wglDestroyPbufferARB)) bIsLoaded = 0;
	wglQueryPbufferARB = (PFNWGLQUERYPBUFFERARBPROC)gleIntGetProcAddress("wglQueryPbufferARB");
	if(!TestPointer((const void*)wglQueryPbufferARB)) bIsLoaded = 0;
#endif /*WGL_ARB_pbuffer*/
	return bIsLoaded;
}
Esempio n. 25
0
static int glXeIntLoad_EXT_import_context()
{
	int bIsLoaded = 1;
#ifndef GLX_EXT_import_context
	glXGetCurrentDisplayEXT = (PFNGLXGETCURRENTDISPLAYEXTPROC)gleIntGetProcAddress("glXGetCurrentDisplayEXT");
	if(!glXGetCurrentDisplayEXT) bIsLoaded = 0;
	glXQueryContextInfoEXT = (PFNGLXQUERYCONTEXTINFOEXTPROC)gleIntGetProcAddress("glXQueryContextInfoEXT");
	if(!glXQueryContextInfoEXT) bIsLoaded = 0;
	glXGetContextIDEXT = (PFNGLXGETCONTEXTIDEXTPROC)gleIntGetProcAddress("glXGetContextIDEXT");
	if(!glXGetContextIDEXT) bIsLoaded = 0;
	glXImportContextEXT = (PFNGLXIMPORTCONTEXTEXTPROC)gleIntGetProcAddress("glXImportContextEXT");
	if(!glXImportContextEXT) bIsLoaded = 0;
	glXFreeContextEXT = (PFNGLXFREECONTEXTEXTPROC)gleIntGetProcAddress("glXFreeContextEXT");
	if(!glXFreeContextEXT) bIsLoaded = 0;
#endif /*GLX_EXT_import_context*/
	return bIsLoaded;
}
Esempio n. 26
0
static int wgleIntLoad_NV_gpu_affinity()
{
	int bIsLoaded = 1;
#ifndef WGL_NV_gpu_affinity
	wglEnumGpusNV = (PFNWGLENUMGPUSNVPROC)gleIntGetProcAddress("wglEnumGpusNV");
	if(!wglEnumGpusNV) bIsLoaded = 0;
	wglEnumGpuDevicesNV = (PFNWGLENUMGPUDEVICESNVPROC)gleIntGetProcAddress("wglEnumGpuDevicesNV");
	if(!wglEnumGpuDevicesNV) bIsLoaded = 0;
	wglCreateAffinityDCNV = (PFNWGLCREATEAFFINITYDCNVPROC)gleIntGetProcAddress("wglCreateAffinityDCNV");
	if(!wglCreateAffinityDCNV) bIsLoaded = 0;
	wglEnumGpusFromAffinityDCNV = (PFNWGLENUMGPUSFROMAFFINITYDCNVPROC)gleIntGetProcAddress("wglEnumGpusFromAffinityDCNV");
	if(!wglEnumGpusFromAffinityDCNV) bIsLoaded = 0;
	wglDeleteDCNV = (PFNWGLDELETEDCNVPROC)gleIntGetProcAddress("wglDeleteDCNV");
	if(!wglDeleteDCNV) bIsLoaded = 0;
#endif /*WGL_NV_gpu_affinity*/
	return bIsLoaded;
}
Esempio n. 27
0
static int wgleIntLoad_ARB_create_context()
{
	int bIsLoaded = 1;
#ifndef WGL_ARB_create_context
	wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)gleIntGetProcAddress("wglCreateContextAttribsARB");
	if(!wglCreateContextAttribsARB) bIsLoaded = 0;
#endif /*WGL_ARB_create_context*/
	return bIsLoaded;
}
Esempio n. 28
0
static int wgleIntLoad_3DL_stereo_control()
{
	int bIsLoaded = 1;
#ifndef WGL_3DL_stereo_control
	wglSetStereoEmitterState3DL = (PFNWGLSETSTEREOEMITTERSTATE3DLPROC)gleIntGetProcAddress("wglSetStereoEmitterState3DL");
	if(!wglSetStereoEmitterState3DL) bIsLoaded = 0;
#endif /*WGL_3DL_stereo_control*/
	return bIsLoaded;
}
Esempio n. 29
0
static int wgleIntLoad_NV_copy_image()
{
	int bIsLoaded = 1;
#ifndef WGL_NV_copy_image
	wglCopyImageSubDataNV = (PFNWGLCOPYIMAGESUBDATANVPROC)gleIntGetProcAddress("wglCopyImageSubDataNV");
	if(!wglCopyImageSubDataNV) bIsLoaded = 0;
#endif /*WGL_NV_copy_image*/
	return bIsLoaded;
}
Esempio n. 30
0
static int wgleIntLoad_ARB_extensions_string()
{
	int bIsLoaded = 1;
#ifndef WGL_ARB_extensions_string
	wglGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)gleIntGetProcAddress("wglGetExtensionsStringARB");
	if(!wglGetExtensionsStringARB) bIsLoaded = 0;
#endif /*WGL_ARB_extensions_string*/
	return bIsLoaded;
}