Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

wglGetProcAddress function (wingdi.h)

Feedback

In this article

ThewglGetProcAddress function returns the address of an OpenGL extension function for use with the current OpenGL rendering context.

Syntax

PROC wglGetProcAddress(  LPCSTR unnamedParam1);

Parameters

unnamedParam1

Points to anull-terminated string that is the name of the extension function. The name of the extension function must be identical to a corresponding function implemented by OpenGL.

Return value

When the function succeeds, the return value is the address of the extension function.

When no current rendering context exists or the function fails, the return value isNULL. To get extended error information, callGetLastError.

Remarks

The OpenGL library supports multiple implementations of its functions. Extension functions supported in one rendering context are not necessarily available in a separate rendering context. Thus, for a given rendering context in an application, use the function addresses returned by thewglGetProcAddress function only.

The spelling and the case of the extension function pointed to bylpszProc must be identical to that of a function supported and implemented by OpenGL. Because extension functions are not exported by OpenGL, you must usewglGetProcAddress to get the addresses of vendor-specific extension functions.

The extension function addresses are unique for each pixel format. All rendering contexts of a given pixel format share the same extension function addresses.

Requirements

RequirementValue
Minimum supported clientWindows 2000 Professional [desktop apps only]
Minimum supported serverWindows 2000 Server [desktop apps only]
Target PlatformWindows
Headerwingdi.h
LibraryOpengl32.lib
DLLOpengl32.dll

See also

OpenGL on Windows

WGL Functions

glGetString

wglMakeCurrent


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?