aboutsummaryrefslogtreecommitdiff
path: root/include/IContextManager.h
diff options
context:
space:
mode:
authorhecks <42101236+hecktest@users.noreply.github.com>2021-08-07 21:56:00 +0200
committerGitHub <noreply@github.com>2021-08-07 21:56:00 +0200
commit5bf68b5731b1817c31959b8e3adf19a4c2307630 (patch)
treebcd0af6f07df105882f0353cd610abf00e26fe2e /include/IContextManager.h
parent7709e1e5f8d8429308ae20d366171fdf6e64bee8 (diff)
downloadirrlicht-5bf68b5731b1817c31959b8e3adf19a4c2307630.tar.xz
Add a unified cross platform OpenGL core profile binding (#52)
Diffstat (limited to 'include/IContextManager.h')
-rw-r--r--include/IContextManager.h4
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;
};