Check out example codes for "convert GLFWwindow* to IntPtr". It will help you in understanding the concepts better.

Code Example 1

// C++/CLR
// Convert to IntPtr
IntPtr ptr(window);

// Convert back to GLFWwindow*
(GLFWwindow*) ptr.ToPointer();

Learn ReactJs, React Native from akashmittal.com