convert GLFWwindow* to IntPtr
#include <GLFW/glfw3.h>
GLFWwindow* window = glfwCreateWindow(800, 600, "GLFW Window", NULL, NULL);
// Convert GLFWwindow* to IntPtr
IntPtr windowIntPtr = reinterpret_cast<IntPtr>(window);
#include <GLFW/glfw3.h>
GLFWwindow* window = glfwCreateWindow(800, 600, "GLFW Window", NULL, NULL);
// Convert GLFWwindow* to IntPtr
IntPtr windowIntPtr = reinterpret_cast<IntPtr>(window);