Documentation
This commit is contained in:
parent
f2c8339c3f
commit
7ce7fe4889
4 changed files with 36 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue