21 lines
501 B
C++
21 lines
501 B
C++
//
|
|
// Created by postaron on 05/01/2026.
|
|
//
|
|
|
|
#ifndef WINDOWGLFWGLLIB_OPENGL_CONTEXT_HPP
|
|
#define WINDOWGLFWGLLIB_OPENGL_CONTEXT_HPP
|
|
|
|
namespace gui {
|
|
class Window;
|
|
}
|
|
|
|
namespace opengl {
|
|
/*!
|
|
* \brief It takes a window object to get OpenGL context in current thread.
|
|
* \param win Window to use to init the GLEW context
|
|
* \return True: glew init, false: failed
|
|
*/
|
|
[[nodiscard]] bool init_glew(const gui::Window &win) noexcept;
|
|
}
|
|
|
|
#endif //WINDOWGLFWGLLIB_OPENGL_CONTEXT_HPP
|