// had to add this is as GLEW was giving me an unknown enum error(1280) :(for(bool empty(false);!empty;){ GLenum err(glGetError()); if(err == GL_NO_ERROR) empty = true; else if(err != 1280) std::cerr << "ERROR I REPEAT ERROR: " << err << "\n"}
As the comment says it was throwing up an error code of 1280 which is an unknown enum error! Turns out this is a common problem one which I personally haven't ever come across so took a bit of time and a shed load of std::cerr's. Most of the other problems were unused variable warnings from callback funtions so I put a few things in to block these out such as
void Resize(GLFWwindow * window, int width, int height){// really no point in window apart from killing the issue message of unused var if(width == height && window) { glViewport(0, 0, width, height); }
There was one more annoying error in that none of my play again screen would render right but that was because I passed the wrong value into it. Instead of passing the playing area i passed player this took an hour to solve which is alot longer than i wanted it to take but hay ho.
I might at some point add a computer player in to this game but that wont be today or tomorrow! If I do it will have three difficulty levels of easy, medium and hard. All in all I have enjoyed this although it isn't the best looking game ever I never have been much of an artist and it is Tic-Tac-Toe. If you wish to see the game/code it is on GitHub