Add basic EGL support
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// 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
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef NAZARA_OPENGLRENDERER_EGLCONTEXTWAYLAND_HPP
|
||||
#define NAZARA_OPENGLRENDERER_EGLCONTEXTWAYLAND_HPP
|
||||
|
||||
#include <Nazara/Prerequisites.hpp>
|
||||
#include <Nazara/OpenGLRenderer/Wrapper/EGL/EGLContextBase.hpp>
|
||||
|
||||
namespace Nz::GL
|
||||
{
|
||||
class EGLContextWayland final : public EGLContextBase
|
||||
{
|
||||
public:
|
||||
using EGLContextBase::EGLContextBase;
|
||||
EGLContextWayland(const EGLContextWayland&) = default;
|
||||
EGLContextWayland(EGLContextWayland&&) = default;
|
||||
~EGLContextWayland() = default;
|
||||
|
||||
bool Create(const ContextParams& params, WindowHandle window, const EGLContextBase* shareContext = nullptr) override;
|
||||
void Destroy() override;
|
||||
|
||||
EGLContextWayland& operator=(const EGLContextWayland&) = default;
|
||||
EGLContextWayland& operator=(EGLContextWayland&&) = default;
|
||||
};
|
||||
}
|
||||
|
||||
#include <Nazara/OpenGLRenderer/Wrapper/Linux/EGLContextWayland.inl>
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,12 @@
|
||||
// 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/Debug.hpp>
|
||||
|
||||
namespace Nz::GL
|
||||
{
|
||||
}
|
||||
|
||||
#include <Nazara/OpenGLRenderer/DebugOff.hpp>
|
||||
@@ -0,0 +1,33 @@
|
||||
// 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
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef NAZARA_OPENGLRENDERER_EGLCONTEXTWIN32_HPP
|
||||
#define NAZARA_OPENGLRENDERER_EGLCONTEXTWIN32_HPP
|
||||
|
||||
#include <Nazara/Prerequisites.hpp>
|
||||
#include <Nazara/OpenGLRenderer/Wrapper/EGL/EGLContextBase.hpp>
|
||||
|
||||
namespace Nz::GL
|
||||
{
|
||||
class EGLContextX11 final : public EGLContextBase
|
||||
{
|
||||
public:
|
||||
using EGLContextBase::EGLContextBase;
|
||||
EGLContextX11(const EGLContextX11&) = default;
|
||||
EGLContextX11(EGLContextX11&&) = default;
|
||||
~EGLContextX11() = default;
|
||||
|
||||
bool Create(const ContextParams& params, WindowHandle window, const EGLContextBase* shareContext = nullptr) override;
|
||||
void Destroy() override;
|
||||
|
||||
EGLContextX11& operator=(const EGLContextX11&) = default;
|
||||
EGLContextX11& operator=(EGLContextX11&&) = default;
|
||||
};
|
||||
}
|
||||
|
||||
#include <Nazara/OpenGLRenderer/Wrapper/Linux/EGLContextX11.inl>
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,12 @@
|
||||
// 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/Debug.hpp>
|
||||
|
||||
namespace Nz::GL
|
||||
{
|
||||
}
|
||||
|
||||
#include <Nazara/OpenGLRenderer/DebugOff.hpp>
|
||||
Reference in New Issue
Block a user