mirror of
https://github.com/minetest/irrlicht.git
synced 2025-06-28 06:20:21 +02:00
Add a unified cross platform OpenGL core profile binding (#52)
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
3152
include/mt_opengl.h
Executable file
3152
include/mt_opengl.h
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user