示例#1
0
static int LoadExt_I3D_digital_video_control()
{
	int numFailed = 0;
	_funcptr_wglGetDigitalVideoParametersI3D = (PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC)IntGetProcAddress("wglGetDigitalVideoParametersI3D");
	if(!_funcptr_wglGetDigitalVideoParametersI3D) ++numFailed;
	_funcptr_wglSetDigitalVideoParametersI3D = (PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC)IntGetProcAddress("wglSetDigitalVideoParametersI3D");
	if(!_funcptr_wglSetDigitalVideoParametersI3D) ++numFailed;
	return numFailed;
}
示例#2
0
static int Load_ARB_multitexture()
{
	int numFailed = 0;
	sf_ptrc_glActiveTextureARB = (void (CODEGEN_FUNCPTR *)(GLenum))IntGetProcAddress("glActiveTextureARB");
	if (!sf_ptrc_glActiveTextureARB) numFailed++;
	sf_ptrc_glClientActiveTextureARB = (void (CODEGEN_FUNCPTR *)(GLenum))IntGetProcAddress("glClientActiveTextureARB");
	if (!sf_ptrc_glClientActiveTextureARB) numFailed++;
	return numFailed;
}
示例#3
0
static int LoadExt_EXT_make_current_read()
{
	int numFailed = 0;
	_funcptr_wglGetCurrentReadDCEXT = (PFNWGLGETCURRENTREADDCEXTPROC)IntGetProcAddress("wglGetCurrentReadDCEXT");
	if(!_funcptr_wglGetCurrentReadDCEXT) ++numFailed;
	_funcptr_wglMakeContextCurrentEXT = (PFNWGLMAKECONTEXTCURRENTEXTPROC)IntGetProcAddress("wglMakeContextCurrentEXT");
	if(!_funcptr_wglMakeContextCurrentEXT) ++numFailed;
	return numFailed;
}
示例#4
0
static int LoadExt_EXT_swap_control()
{
	int numFailed = 0;
	_funcptr_wglGetSwapIntervalEXT = (PFNWGLGETSWAPINTERVALEXTPROC)IntGetProcAddress("wglGetSwapIntervalEXT");
	if(!_funcptr_wglGetSwapIntervalEXT) ++numFailed;
	_funcptr_wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC)IntGetProcAddress("wglSwapIntervalEXT");
	if(!_funcptr_wglSwapIntervalEXT) ++numFailed;
	return numFailed;
}
示例#5
0
static int LoadExt_NV_vertex_array_range()
{
	int numFailed = 0;
	_funcptr_wglAllocateMemoryNV = (PFNWGLALLOCATEMEMORYNVPROC)IntGetProcAddress("wglAllocateMemoryNV");
	if(!_funcptr_wglAllocateMemoryNV) ++numFailed;
	_funcptr_wglFreeMemoryNV = (PFNWGLFREEMEMORYNVPROC)IntGetProcAddress("wglFreeMemoryNV");
	if(!_funcptr_wglFreeMemoryNV) ++numFailed;
	return numFailed;
}
示例#6
0
static int LoadExt_EXT_pixel_format()
{
	int numFailed = 0;
	_funcptr_wglChoosePixelFormatEXT = (PFNWGLCHOOSEPIXELFORMATEXTPROC)IntGetProcAddress("wglChoosePixelFormatEXT");
	if(!_funcptr_wglChoosePixelFormatEXT) ++numFailed;
	_funcptr_wglGetPixelFormatAttribfvEXT = (PFNWGLGETPIXELFORMATATTRIBFVEXTPROC)IntGetProcAddress("wglGetPixelFormatAttribfvEXT");
	if(!_funcptr_wglGetPixelFormatAttribfvEXT) ++numFailed;
	_funcptr_wglGetPixelFormatAttribivEXT = (PFNWGLGETPIXELFORMATATTRIBIVEXTPROC)IntGetProcAddress("wglGetPixelFormatAttribivEXT");
	if(!_funcptr_wglGetPixelFormatAttribivEXT) ++numFailed;
	return numFailed;
}
示例#7
0
static int LoadExt_NV_present_video()
{
	int numFailed = 0;
	_funcptr_wglBindVideoDeviceNV = (PFNWGLBINDVIDEODEVICENVPROC)IntGetProcAddress("wglBindVideoDeviceNV");
	if(!_funcptr_wglBindVideoDeviceNV) ++numFailed;
	_funcptr_wglEnumerateVideoDevicesNV = (PFNWGLENUMERATEVIDEODEVICESNVPROC)IntGetProcAddress("wglEnumerateVideoDevicesNV");
	if(!_funcptr_wglEnumerateVideoDevicesNV) ++numFailed;
	_funcptr_wglQueryCurrentContextNV = (PFNWGLQUERYCURRENTCONTEXTNVPROC)IntGetProcAddress("wglQueryCurrentContextNV");
	if(!_funcptr_wglQueryCurrentContextNV) ++numFailed;
	return numFailed;
}
示例#8
0
static int LoadExt_ARB_render_texture()
{
	int numFailed = 0;
	_funcptr_wglBindTexImageARB = (PFNWGLBINDTEXIMAGEARBPROC)IntGetProcAddress("wglBindTexImageARB");
	if(!_funcptr_wglBindTexImageARB) ++numFailed;
	_funcptr_wglReleaseTexImageARB = (PFNWGLRELEASETEXIMAGEARBPROC)IntGetProcAddress("wglReleaseTexImageARB");
	if(!_funcptr_wglReleaseTexImageARB) ++numFailed;
	_funcptr_wglSetPbufferAttribARB = (PFNWGLSETPBUFFERATTRIBARBPROC)IntGetProcAddress("wglSetPbufferAttribARB");
	if(!_funcptr_wglSetPbufferAttribARB) ++numFailed;
	return numFailed;
}
示例#9
0
static int LoadExt_ARB_pixel_format()
{
	int numFailed = 0;
	_funcptr_wglChoosePixelFormatARB = (PFNWGLCHOOSEPIXELFORMATARBPROC)IntGetProcAddress("wglChoosePixelFormatARB");
	if(!_funcptr_wglChoosePixelFormatARB) ++numFailed;
	_funcptr_wglGetPixelFormatAttribfvARB = (PFNWGLGETPIXELFORMATATTRIBFVARBPROC)IntGetProcAddress("wglGetPixelFormatAttribfvARB");
	if(!_funcptr_wglGetPixelFormatAttribfvARB) ++numFailed;
	_funcptr_wglGetPixelFormatAttribivARB = (PFNWGLGETPIXELFORMATATTRIBIVARBPROC)IntGetProcAddress("wglGetPixelFormatAttribivARB");
	if(!_funcptr_wglGetPixelFormatAttribivARB) ++numFailed;
	return numFailed;
}
示例#10
0
static int LoadExt_EXT_display_color_table()
{
	int numFailed = 0;
	_funcptr_wglBindDisplayColorTableEXT = (PFNWGLBINDDISPLAYCOLORTABLEEXTPROC)IntGetProcAddress("wglBindDisplayColorTableEXT");
	if(!_funcptr_wglBindDisplayColorTableEXT) ++numFailed;
	_funcptr_wglCreateDisplayColorTableEXT = (PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC)IntGetProcAddress("wglCreateDisplayColorTableEXT");
	if(!_funcptr_wglCreateDisplayColorTableEXT) ++numFailed;
	_funcptr_wglDestroyDisplayColorTableEXT = (PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC)IntGetProcAddress("wglDestroyDisplayColorTableEXT");
	if(!_funcptr_wglDestroyDisplayColorTableEXT) ++numFailed;
	_funcptr_wglLoadDisplayColorTableEXT = (PFNWGLLOADDISPLAYCOLORTABLEEXTPROC)IntGetProcAddress("wglLoadDisplayColorTableEXT");
	if(!_funcptr_wglLoadDisplayColorTableEXT) ++numFailed;
	return numFailed;
}
示例#11
0
static int LoadExt_I3D_gamma()
{
	int numFailed = 0;
	_funcptr_wglGetGammaTableI3D = (PFNWGLGETGAMMATABLEI3DPROC)IntGetProcAddress("wglGetGammaTableI3D");
	if(!_funcptr_wglGetGammaTableI3D) ++numFailed;
	_funcptr_wglGetGammaTableParametersI3D = (PFNWGLGETGAMMATABLEPARAMETERSI3DPROC)IntGetProcAddress("wglGetGammaTableParametersI3D");
	if(!_funcptr_wglGetGammaTableParametersI3D) ++numFailed;
	_funcptr_wglSetGammaTableI3D = (PFNWGLSETGAMMATABLEI3DPROC)IntGetProcAddress("wglSetGammaTableI3D");
	if(!_funcptr_wglSetGammaTableI3D) ++numFailed;
	_funcptr_wglSetGammaTableParametersI3D = (PFNWGLSETGAMMATABLEPARAMETERSI3DPROC)IntGetProcAddress("wglSetGammaTableParametersI3D");
	if(!_funcptr_wglSetGammaTableParametersI3D) ++numFailed;
	return numFailed;
}
示例#12
0
static int LoadExt_I3D_swap_frame_usage()
{
	int numFailed = 0;
	_funcptr_wglBeginFrameTrackingI3D = (PFNWGLBEGINFRAMETRACKINGI3DPROC)IntGetProcAddress("wglBeginFrameTrackingI3D");
	if(!_funcptr_wglBeginFrameTrackingI3D) ++numFailed;
	_funcptr_wglEndFrameTrackingI3D = (PFNWGLENDFRAMETRACKINGI3DPROC)IntGetProcAddress("wglEndFrameTrackingI3D");
	if(!_funcptr_wglEndFrameTrackingI3D) ++numFailed;
	_funcptr_wglGetFrameUsageI3D = (PFNWGLGETFRAMEUSAGEI3DPROC)IntGetProcAddress("wglGetFrameUsageI3D");
	if(!_funcptr_wglGetFrameUsageI3D) ++numFailed;
	_funcptr_wglQueryFrameTrackingI3D = (PFNWGLQUERYFRAMETRACKINGI3DPROC)IntGetProcAddress("wglQueryFrameTrackingI3D");
	if(!_funcptr_wglQueryFrameTrackingI3D) ++numFailed;
	return numFailed;
}
示例#13
0
static int LoadExt_ARB_buffer_region()
{
	int numFailed = 0;
	_funcptr_wglCreateBufferRegionARB = (PFNWGLCREATEBUFFERREGIONARBPROC)IntGetProcAddress("wglCreateBufferRegionARB");
	if(!_funcptr_wglCreateBufferRegionARB) ++numFailed;
	_funcptr_wglDeleteBufferRegionARB = (PFNWGLDELETEBUFFERREGIONARBPROC)IntGetProcAddress("wglDeleteBufferRegionARB");
	if(!_funcptr_wglDeleteBufferRegionARB) ++numFailed;
	_funcptr_wglRestoreBufferRegionARB = (PFNWGLRESTOREBUFFERREGIONARBPROC)IntGetProcAddress("wglRestoreBufferRegionARB");
	if(!_funcptr_wglRestoreBufferRegionARB) ++numFailed;
	_funcptr_wglSaveBufferRegionARB = (PFNWGLSAVEBUFFERREGIONARBPROC)IntGetProcAddress("wglSaveBufferRegionARB");
	if(!_funcptr_wglSaveBufferRegionARB) ++numFailed;
	return numFailed;
}
示例#14
0
static int LoadExt_I3D_swap_frame_lock()
{
	int numFailed = 0;
	_funcptr_wglDisableFrameLockI3D = (PFNWGLDISABLEFRAMELOCKI3DPROC)IntGetProcAddress("wglDisableFrameLockI3D");
	if(!_funcptr_wglDisableFrameLockI3D) ++numFailed;
	_funcptr_wglEnableFrameLockI3D = (PFNWGLENABLEFRAMELOCKI3DPROC)IntGetProcAddress("wglEnableFrameLockI3D");
	if(!_funcptr_wglEnableFrameLockI3D) ++numFailed;
	_funcptr_wglIsEnabledFrameLockI3D = (PFNWGLISENABLEDFRAMELOCKI3DPROC)IntGetProcAddress("wglIsEnabledFrameLockI3D");
	if(!_funcptr_wglIsEnabledFrameLockI3D) ++numFailed;
	_funcptr_wglQueryFrameLockMasterI3D = (PFNWGLQUERYFRAMELOCKMASTERI3DPROC)IntGetProcAddress("wglQueryFrameLockMasterI3D");
	if(!_funcptr_wglQueryFrameLockMasterI3D) ++numFailed;
	return numFailed;
}
示例#15
0
static int LoadExt_I3D_image_buffer()
{
	int numFailed = 0;
	_funcptr_wglAssociateImageBufferEventsI3D = (PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC)IntGetProcAddress("wglAssociateImageBufferEventsI3D");
	if(!_funcptr_wglAssociateImageBufferEventsI3D) ++numFailed;
	_funcptr_wglCreateImageBufferI3D = (PFNWGLCREATEIMAGEBUFFERI3DPROC)IntGetProcAddress("wglCreateImageBufferI3D");
	if(!_funcptr_wglCreateImageBufferI3D) ++numFailed;
	_funcptr_wglDestroyImageBufferI3D = (PFNWGLDESTROYIMAGEBUFFERI3DPROC)IntGetProcAddress("wglDestroyImageBufferI3D");
	if(!_funcptr_wglDestroyImageBufferI3D) ++numFailed;
	_funcptr_wglReleaseImageBufferEventsI3D = (PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC)IntGetProcAddress("wglReleaseImageBufferEventsI3D");
	if(!_funcptr_wglReleaseImageBufferEventsI3D) ++numFailed;
	return numFailed;
}
示例#16
0
static int LoadExt_NV_video_capture()
{
	int numFailed = 0;
	_funcptr_wglBindVideoCaptureDeviceNV = (PFNWGLBINDVIDEOCAPTUREDEVICENVPROC)IntGetProcAddress("wglBindVideoCaptureDeviceNV");
	if(!_funcptr_wglBindVideoCaptureDeviceNV) ++numFailed;
	_funcptr_wglEnumerateVideoCaptureDevicesNV = (PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC)IntGetProcAddress("wglEnumerateVideoCaptureDevicesNV");
	if(!_funcptr_wglEnumerateVideoCaptureDevicesNV) ++numFailed;
	_funcptr_wglLockVideoCaptureDeviceNV = (PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC)IntGetProcAddress("wglLockVideoCaptureDeviceNV");
	if(!_funcptr_wglLockVideoCaptureDeviceNV) ++numFailed;
	_funcptr_wglQueryVideoCaptureDeviceNV = (PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC)IntGetProcAddress("wglQueryVideoCaptureDeviceNV");
	if(!_funcptr_wglQueryVideoCaptureDeviceNV) ++numFailed;
	_funcptr_wglReleaseVideoCaptureDeviceNV = (PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC)IntGetProcAddress("wglReleaseVideoCaptureDeviceNV");
	if(!_funcptr_wglReleaseVideoCaptureDeviceNV) ++numFailed;
	return numFailed;
}
示例#17
0
static int LoadExt_EXT_pbuffer()
{
	int numFailed = 0;
	_funcptr_wglCreatePbufferEXT = (PFNWGLCREATEPBUFFEREXTPROC)IntGetProcAddress("wglCreatePbufferEXT");
	if(!_funcptr_wglCreatePbufferEXT) ++numFailed;
	_funcptr_wglDestroyPbufferEXT = (PFNWGLDESTROYPBUFFEREXTPROC)IntGetProcAddress("wglDestroyPbufferEXT");
	if(!_funcptr_wglDestroyPbufferEXT) ++numFailed;
	_funcptr_wglGetPbufferDCEXT = (PFNWGLGETPBUFFERDCEXTPROC)IntGetProcAddress("wglGetPbufferDCEXT");
	if(!_funcptr_wglGetPbufferDCEXT) ++numFailed;
	_funcptr_wglQueryPbufferEXT = (PFNWGLQUERYPBUFFEREXTPROC)IntGetProcAddress("wglQueryPbufferEXT");
	if(!_funcptr_wglQueryPbufferEXT) ++numFailed;
	_funcptr_wglReleasePbufferDCEXT = (PFNWGLRELEASEPBUFFERDCEXTPROC)IntGetProcAddress("wglReleasePbufferDCEXT");
	if(!_funcptr_wglReleasePbufferDCEXT) ++numFailed;
	return numFailed;
}
示例#18
0
static int LoadExt_NV_gpu_affinity()
{
	int numFailed = 0;
	_funcptr_wglCreateAffinityDCNV = (PFNWGLCREATEAFFINITYDCNVPROC)IntGetProcAddress("wglCreateAffinityDCNV");
	if(!_funcptr_wglCreateAffinityDCNV) ++numFailed;
	_funcptr_wglDeleteDCNV = (PFNWGLDELETEDCNVPROC)IntGetProcAddress("wglDeleteDCNV");
	if(!_funcptr_wglDeleteDCNV) ++numFailed;
	_funcptr_wglEnumGpuDevicesNV = (PFNWGLENUMGPUDEVICESNVPROC)IntGetProcAddress("wglEnumGpuDevicesNV");
	if(!_funcptr_wglEnumGpuDevicesNV) ++numFailed;
	_funcptr_wglEnumGpusFromAffinityDCNV = (PFNWGLENUMGPUSFROMAFFINITYDCNVPROC)IntGetProcAddress("wglEnumGpusFromAffinityDCNV");
	if(!_funcptr_wglEnumGpusFromAffinityDCNV) ++numFailed;
	_funcptr_wglEnumGpusNV = (PFNWGLENUMGPUSNVPROC)IntGetProcAddress("wglEnumGpusNV");
	if(!_funcptr_wglEnumGpusNV) ++numFailed;
	return numFailed;
}
static int Load_NV_gpu_affinity()
{
	int numFailed = 0;
	_ptrc_wglCreateAffinityDCNV = (HDC (CODEGEN_FUNCPTR *)(const HGPUNV *))IntGetProcAddress("wglCreateAffinityDCNV");
	if(!_ptrc_wglCreateAffinityDCNV) numFailed++;
	_ptrc_wglDeleteDCNV = (BOOL (CODEGEN_FUNCPTR *)(HDC))IntGetProcAddress("wglDeleteDCNV");
	if(!_ptrc_wglDeleteDCNV) numFailed++;
	_ptrc_wglEnumGpuDevicesNV = (BOOL (CODEGEN_FUNCPTR *)(HGPUNV, UINT, PGPU_DEVICE))IntGetProcAddress("wglEnumGpuDevicesNV");
	if(!_ptrc_wglEnumGpuDevicesNV) numFailed++;
	_ptrc_wglEnumGpusFromAffinityDCNV = (BOOL (CODEGEN_FUNCPTR *)(HDC, UINT, HGPUNV *))IntGetProcAddress("wglEnumGpusFromAffinityDCNV");
	if(!_ptrc_wglEnumGpusFromAffinityDCNV) numFailed++;
	_ptrc_wglEnumGpusNV = (BOOL (CODEGEN_FUNCPTR *)(UINT, HGPUNV *))IntGetProcAddress("wglEnumGpusNV");
	if(!_ptrc_wglEnumGpusNV) numFailed++;
	return numFailed;
}
示例#20
0
static int LoadExt_ARB_create_context()
{
	int numFailed = 0;
	_funcptr_wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)IntGetProcAddress("wglCreateContextAttribsARB");
	if(!_funcptr_wglCreateContextAttribsARB) ++numFailed;
	return numFailed;
}
示例#21
0
static int LoadExt_EXT_extensions_string()
{
	int numFailed = 0;
	_funcptr_wglGetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC)IntGetProcAddress("wglGetExtensionsStringEXT");
	if(!_funcptr_wglGetExtensionsStringEXT) ++numFailed;
	return numFailed;
}
示例#22
0
static int LoadExt_NV_copy_image()
{
	int numFailed = 0;
	_funcptr_wglCopyImageSubDataNV = (PFNWGLCOPYIMAGESUBDATANVPROC)IntGetProcAddress("wglCopyImageSubDataNV");
	if(!_funcptr_wglCopyImageSubDataNV) ++numFailed;
	return numFailed;
}
示例#23
0
static int LoadExt_3DL_stereo_control()
{
	int numFailed = 0;
	_funcptr_wglSetStereoEmitterState3DL = (PFNWGLSETSTEREOEMITTERSTATE3DLPROC)IntGetProcAddress("wglSetStereoEmitterState3DL");
	if(!_funcptr_wglSetStereoEmitterState3DL) ++numFailed;
	return numFailed;
}
示例#24
0
static int Load_EXT_blend_equation_separate()
{
	int numFailed = 0;
	sf_ptrc_glBlendEquationSeparateEXT = (void (CODEGEN_FUNCPTR *)(GLenum, GLenum))IntGetProcAddress("glBlendEquationSeparateEXT");
	if (!sf_ptrc_glBlendEquationSeparateEXT) numFailed++;
	return numFailed;
}
示例#25
0
static int Load_SGI_swap_control(void)
{
    int numFailed = 0;
    sf_ptrc_glXSwapIntervalSGI = reinterpret_cast<int (CODEGEN_FUNCPTR *)(int)>(IntGetProcAddress("glXSwapIntervalSGI"));
    if (!sf_ptrc_glXSwapIntervalSGI)
        numFailed++;
    return numFailed;
}
static int Load_NV_video_output()
{
	int numFailed = 0;
	_ptrc_wglBindVideoImageNV = (BOOL (CODEGEN_FUNCPTR *)(HPVIDEODEV, HPBUFFERARB, int))IntGetProcAddress("wglBindVideoImageNV");
	if(!_ptrc_wglBindVideoImageNV) numFailed++;
	_ptrc_wglGetVideoDeviceNV = (BOOL (CODEGEN_FUNCPTR *)(HDC, int, HPVIDEODEV *))IntGetProcAddress("wglGetVideoDeviceNV");
	if(!_ptrc_wglGetVideoDeviceNV) numFailed++;
	_ptrc_wglGetVideoInfoNV = (BOOL (CODEGEN_FUNCPTR *)(HPVIDEODEV, unsigned long *, unsigned long *))IntGetProcAddress("wglGetVideoInfoNV");
	if(!_ptrc_wglGetVideoInfoNV) numFailed++;
	_ptrc_wglReleaseVideoDeviceNV = (BOOL (CODEGEN_FUNCPTR *)(HPVIDEODEV))IntGetProcAddress("wglReleaseVideoDeviceNV");
	if(!_ptrc_wglReleaseVideoDeviceNV) numFailed++;
	_ptrc_wglReleaseVideoImageNV = (BOOL (CODEGEN_FUNCPTR *)(HPBUFFERARB, int))IntGetProcAddress("wglReleaseVideoImageNV");
	if(!_ptrc_wglReleaseVideoImageNV) numFailed++;
	_ptrc_wglSendPbufferToVideoNV = (BOOL (CODEGEN_FUNCPTR *)(HPBUFFERARB, int, unsigned long *, BOOL))IntGetProcAddress("wglSendPbufferToVideoNV");
	if(!_ptrc_wglSendPbufferToVideoNV) numFailed++;
	return numFailed;
}
int wgl_LoadFunctions(HDC hdc)
{
	ClearExtensionVars();
	
	_ptrc_wglGetExtensionsStringARB = (const char * (CODEGEN_FUNCPTR *)(HDC))IntGetProcAddress("wglGetExtensionsStringARB");
	if(!_ptrc_wglGetExtensionsStringARB) return wgl_LOAD_FAILED;
	
	ProcExtsFromExtString((const char *)_ptrc_wglGetExtensionsStringARB(hdc));
	return wgl_LOAD_SUCCEEDED;
}
示例#28
0
static int InternalLoad(HDC hdc)
{
	ClearExtensionVars();
	
	_funcptr_wglGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)IntGetProcAddress("wglGetExtensionsStringARB");
	if(!_funcptr_wglGetExtensionsStringARB) return 0;
	
	ProcExtsFromExtString((const char *)_funcptr_wglGetExtensionsStringARB(hdc));
	
	return wgl_LOAD_SUCCEEDED;
}
示例#29
0
文件: extensions.c 项目: dvdbrink/ion
void wgl_CheckExtensions(HDC hdc)
{
  ClearExtensionVariables();
  
  {
    typedef const char * (CODEGEN_FUNCPTR *MYGETEXTSTRINGPROC)(HDC);
    MYGETEXTSTRINGPROC InternalGetExtensionString = (MYGETEXTSTRINGPROC)IntGetProcAddress("wglGetExtensionsStringARB");
    if(!InternalGetExtensionString) return;
    ProcExtsFromExtString((const char *)InternalGetExtensionString(hdc));
  }
}
static int Load_NV_present_video()
{
	int numFailed = 0;
	_ptrc_wglBindVideoDeviceNV = (BOOL (CODEGEN_FUNCPTR *)(HDC, unsigned int, HVIDEOOUTPUTDEVICENV, const int *))IntGetProcAddress("wglBindVideoDeviceNV");
	if(!_ptrc_wglBindVideoDeviceNV) numFailed++;
	_ptrc_wglEnumerateVideoDevicesNV = (int (CODEGEN_FUNCPTR *)(HDC, HVIDEOOUTPUTDEVICENV *))IntGetProcAddress("wglEnumerateVideoDevicesNV");
	if(!_ptrc_wglEnumerateVideoDevicesNV) numFailed++;
	_ptrc_wglQueryCurrentContextNV = (BOOL (CODEGEN_FUNCPTR *)(int, int *))IntGetProcAddress("wglQueryCurrentContextNV");
	if(!_ptrc_wglQueryCurrentContextNV) numFailed++;
	return numFailed;
}