diff options
author | hecks <42101236+hecktest@users.noreply.github.com> | 2021-08-07 21:56:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-07 21:56:00 +0200 |
commit | 5bf68b5731b1817c31959b8e3adf19a4c2307630 (patch) | |
tree | bcd0af6f07df105882f0353cd610abf00e26fe2e /include/IContextManager.h | |
parent | 7709e1e5f8d8429308ae20d366171fdf6e64bee8 (diff) | |
download | irrlicht-5bf68b5731b1817c31959b8e3adf19a4c2307630.tar.xz |
Add a unified cross platform OpenGL core profile binding (#52)
Diffstat (limited to 'include/IContextManager.h')
-rw-r--r-- | include/IContextManager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/IContextManager.h b/include/IContextManager.h index 1937190..207691b 100644 --- a/include/IContextManager.h +++ b/include/IContextManager.h @@ -7,6 +7,7 @@ #include "SExposedVideoData.h"
#include "SIrrCreationParameters.h"
+#include <string>
namespace irr
{
@@ -48,6 +49,9 @@ namespace video Note that only 1 thread at a time may access an OpenGL context. */
virtual bool activateContext(const SExposedVideoData& videoData, bool restorePrimaryOnZero=false) =0;
+ //! Get the address of any OpenGL procedure (including core procedures).
+ virtual void* getProcAddress(const std::string &procName) =0;
+
//! Swap buffers.
virtual bool swapBuffers() =0;
};
|