NazaraEngine/include/Nazara/OpenGLRenderer/Wrapper/Win32/EGLContextWin32.hpp

39 lines
1.3 KiB
C++

// Copyright (C) 2022 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_WIN32_EGLCONTEXTWIN32_HPP
#define NAZARA_OPENGLRENDERER_WRAPPER_WIN32_EGLCONTEXTWIN32_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/OpenGLRenderer/Wrapper/EGL/EGLContextBase.hpp>
#include <Nazara/OpenGLRenderer/Wrapper/Win32/Win32Helper.hpp>
namespace Nz::GL
{
class EGLContextWin32 final : public EGLContextBase
{
public:
using EGLContextBase::EGLContextBase;
EGLContextWin32(const EGLContextWin32&) = default;
EGLContextWin32(EGLContextWin32&&) = default;
~EGLContextWin32() = default;
bool Create(const ContextParams& params, const EGLContextBase* shareContext = nullptr) override;
bool Create(const ContextParams& params, WindowHandle window, const EGLContextBase* shareContext = nullptr) override;
void Destroy() override;
EGLContextWin32& operator=(const EGLContextWin32&) = default;
EGLContextWin32& operator=(EGLContextWin32&&) = default;
private:
HWNDHandle m_ownedWindow;
};
}
#include <Nazara/OpenGLRenderer/Wrapper/Win32/EGLContextWin32.inl>
#endif // NAZARA_OPENGLRENDERER_WRAPPER_WIN32_EGLCONTEXTWIN32_HPP