Код: Выделить всё
void Window::init(const std::string& title, uint32_t width, uint32_t height) {
this->title = title;
glfwInit();
handler = glfwCreateWindow(width, height, title.c_str(), nullptr, nullptr);
glfwMakeContextCurrent(handler);
if (glewInit() != GLEW_OK) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78520400/share-glfw-context-through-different-dll-and-exe[/url]
Мобильная версия