So I have a basic setup here. Not sure if I'm suppose to specify which monitor I'm creating a window or something? Though I don't even get to creating a window. Here's my code so far...
#include<iostream>#include"glfw3.h"voiderror_callback(interror,constchar*description){puts(description);}intmain(){glfwSetErrorCallback(error_callback);if(!glfwInit()){std::cout<<"ERROR: GLFW failed to Initialize"<<std::endl;//TODO: Loggingreturn-1;}char*WindowTitle="Hello World";GLFWwindow*Window=glfwCreateWindow(960,540,WindowTitle,NULL,NULL);if(!Window){glfwTerminate();//TODO: Loggingreturn-1;}//TODO: Running loop//NOTE: Yaystd::cout<<"Window Created successfully"<<std::endl;glfwTerminate();system("pause");return0;}
However, glfwInit returns false, prints out ERROR: GLFW failed to initialize (because I told it to when failing of course) and set it to exit with int -1 per the basic setup guide diddly.
I have two monitors, one isn't 1920x1080 but I'm not sure exactly what the problem is. I'm using an AMD graphics card and AMD processor.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hopefully this is the right forum to post this.
So I have a basic setup here. Not sure if I'm suppose to specify which monitor I'm creating a window or something? Though I don't even get to creating a window. Here's my code so far...
However, glfwInit returns false, prints out ERROR: GLFW failed to initialize (because I told it to when failing of course) and set it to exit with int -1 per the basic setup guide diddly.
I have two monitors, one isn't 1920x1080 but I'm not sure exactly what the problem is. I'm using an AMD graphics card and AMD processor.
Does the error callback print anything?
I believe that's the thing printing out "no monitors found". Because I don't have anything else that would print that.
(Just tested it, when I delete the callback it doesn't say the no monitors found)
What version of what OS are you running? Is it running in a VM?
Negative, Windows 8.1. And no it isn't pirated.
Wouldn't matter if it was.
Please file an issue.
alrighty, just had to be sure. Thanks.