>>101340233
//you only have one window user pointer so i wouldn't necessarily make a camera class the user pointer in practice
//either a window class or something like std::map<string, void*> type so you can have more
//does nothing but dispatch to the actual frameSizeCallback
void glfwCamera::staticFrameSizeCallback(GLFWwindow* w, int width, int height) {
//set this in window init
reinterpret_cast<glfwCamera*>(glfwGetWindowUserPointer(w))->frameSizeCallback(width, height);
}
//include the window if you need it but it looks like you don't right here
void glfwCamera::frameSizeCallback(int width, int height) {
glViewPort(0, 0, width, height);
}