Add basic EGL support
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// Copyright (C) 2020 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Engine - OpenGL Renderer"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/OpenGLRenderer/Wrapper/Linux/EGLContextWayland.hpp>
|
||||
#include <Nazara/OpenGLRenderer/Wrapper/EGL/EGLLoader.hpp>
|
||||
#include <Nazara/OpenGLRenderer/Debug.hpp>
|
||||
|
||||
namespace Nz::GL
|
||||
{
|
||||
bool EGLContextWayland::Create(const ContextParams& params, WindowHandle window, const EGLContextBase* shareContext)
|
||||
{
|
||||
assert(window.type == WindowManager::Wayland);
|
||||
|
||||
NazaraError("Wayland is not yet supported");
|
||||
return false;
|
||||
}
|
||||
|
||||
void EGLContextWayland::Destroy()
|
||||
{
|
||||
EGLContextBase::Destroy();
|
||||
}
|
||||
}
|
||||
23
src/Nazara/OpenGLRenderer/Wrapper/Linux/EGLContextX11.cpp
Normal file
23
src/Nazara/OpenGLRenderer/Wrapper/Linux/EGLContextX11.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright (C) 2020 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Engine - OpenGL Renderer"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/OpenGLRenderer/Wrapper/Linux/EGLContextX11.hpp>
|
||||
#include <Nazara/OpenGLRenderer/Wrapper/EGL/EGLLoader.hpp>
|
||||
#include <Nazara/OpenGLRenderer/Debug.hpp>
|
||||
|
||||
namespace Nz::GL
|
||||
{
|
||||
bool EGLContextX11::Create(const ContextParams& params, WindowHandle window, const EGLContextBase* shareContext)
|
||||
{
|
||||
assert(window.type == WindowManager::X11);
|
||||
|
||||
NazaraError("X11 is not yet supported");
|
||||
return false;
|
||||
}
|
||||
|
||||
void EGLContextX11::Destroy()
|
||||
{
|
||||
EGLContextBase::Destroy();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user