forked from Dav1dde/glad
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wgl: dynamically load opengl32.dll and wglGetProcAddress
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
- Loading branch information
Showing
3 changed files
with
117 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
{% import "template_utils.h" as template_utils with context %} | ||
#ifdef GLAD_WGL | ||
|
||
GLAD_API_CALL int gladLoaderLoadWGL(HDC hdc); | ||
GLAD_API_CALL int gladLoaderLoadWGL{{ 'Context' if options.mx }}({{ template_utils.context_arg(', ') }}HDC hdc); | ||
GLAD_API_CALL void gladLoaderUnloadWGL{{ 'Context' if options.mx }}({{ template_utils.context_arg(def='void') }}); | ||
GLAD_API_CALL void gladLoaderResetWGL{{ 'Context' if options.mx }}({{ template_utils.context_arg(def='void') }}); | ||
{% if not options.mx_global %} | ||
{% if options.mx_global %} | ||
GLAD_API_CALL int gladLoaderLoadWGL(HDC hdc); | ||
GLAD_API_CALL void gladLoaderUnloadWGL(void); | ||
GLAD_API_CALL void gladLoaderResetWGL(void); | ||
{% endif %} | ||
|
||
#endif | ||
#endif |