Add a unified cross platform OpenGL core profile binding (#52)

This commit is contained in:
hecks
2021-08-07 21:56:00 +02:00
committed by GitHub
parent 7709e1e5f8
commit 5bf68b5731
16 changed files with 4466 additions and 22 deletions

View File

@ -16,6 +16,7 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <libloaderapi.h>
namespace irr
{
@ -55,6 +56,9 @@ namespace video
//! Change render context, disable old and activate new defined by videoData
virtual bool activateContext(const SExposedVideoData& videoData, bool restorePrimaryOnZero) _IRR_OVERRIDE_;
// Get procedure address.
virtual void* getProcAddress(const std::string &procName) _IRR_OVERRIDE_;
// Swap buffers.
virtual bool swapBuffers() _IRR_OVERRIDE_;
@ -66,6 +70,8 @@ namespace video
PIXELFORMATDESCRIPTOR pfd;
ECOLOR_FORMAT ColorFormat;
void* FunctionPointers[1];
HMODULE libHandle;
};
}
}