34 lines
1.1 KiB
C++
34 lines
1.1 KiB
C++
// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
|
|
// 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_WRAPPER_LINUX_EGLCONTEXTWAYLAND_HPP
|
|
#define NAZARA_OPENGLRENDERER_WRAPPER_LINUX_EGLCONTEXTWAYLAND_HPP
|
|
|
|
#include <NazaraUtils/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 // NAZARA_OPENGLRENDERER_WRAPPER_LINUX_EGLCONTEXTWAYLAND_HPP
|