mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Irrlicht: Use EGL over GLX (#15286)
This commit is contained in:
parent
d4daa9fd40
commit
aa273119f2
8 changed files with 128 additions and 548 deletions
|
@ -31,6 +31,10 @@ public:
|
|||
aren't create. */
|
||||
bool initialize(const SIrrlichtCreationParameters ¶ms, const SExposedVideoData &data) override;
|
||||
|
||||
// Set EGL window.
|
||||
// Call this if window is not known at time of initialize()
|
||||
void setWindow(const SExposedVideoData &data);
|
||||
|
||||
// Terminate EGL.
|
||||
/* Terminate EGL context. This method break both existed surface and context. */
|
||||
void terminate() override;
|
||||
|
@ -66,6 +70,9 @@ public:
|
|||
// Swap buffers.
|
||||
bool swapBuffers() override;
|
||||
|
||||
// Returns native visual ID. Will choose config if not already done.
|
||||
EGLint getNativeVisualID();
|
||||
|
||||
protected:
|
||||
enum EConfigStyle
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue