Add basic EGL support

This commit is contained in:
Jérôme Leclercq
2020-09-01 18:46:35 +02:00
parent 07a02ecfcd
commit ef737a8ecd
29 changed files with 1122 additions and 94 deletions

View File

@@ -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