Documentation

This commit is contained in:
Pcornat 2026-01-10 16:13:38 +01:00
commit 7ce7fe4889
Signed by: Pcornat
GPG key ID: E0326CC678A00BDD
4 changed files with 36 additions and 0 deletions

View file

@ -4,6 +4,9 @@
#include <GLFW/glfw3.h>
namespace window {
/*!
* \brief This class is a RAII object for GLFW library.
*/
class ContextWindow final {
private:
bool init{ false };
@ -11,6 +14,10 @@ namespace window {
public:
ContextWindow() noexcept = delete;
/*!
* \brief Constructor to initialize GLFW library
* \param error_clbk GLFW error callback. Can be null
*/
explicit ContextWindow(const GLFWerrorfun error_clbk) noexcept;
~ContextWindow() noexcept;