mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-01 15:50:27 +02:00
Add a unified cross platform OpenGL core profile binding (#52)
This commit is contained in:
@ -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;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user