Hi,
I want to learn some basic OpenGL and use SFML for everything else, no GLUT/GLEW. I found this online tutorials:
http://www.opengl-tutorial.org/.
My system supports OpenGL 4.5. And afaik glBegin()-tutorials are outdated. Is it possible to use "modern" openGL with SFML. I get compilation errors with these lines:
GLuint VertexArrayID;
glGenVertexArrays(1, &VertexArrayID);
glBindVertexArray(VertexArrayID);
Error is: identifier "glGenVertexArrays" is undefined
So I have 3 questions:
1.) Does OpenGL 4.5 work with SFML? (I would like to use SFML 2D functionality with OpenGL 3D)
2.) glGenVertexXXX is GLEW/GLUT?! Maybe that's why I get the error?!
3.) Any good tutorial or book suggestions for a beginner?!
EDIT:
4.) Yeah, maybe I should keep in mind, that not all systems support the latest. Is there some info somewhere which OS supports which version of OpenGL?! .. Edit2.)
http://store.steampowered.com/hwsurvey guess most users seem to have at least a OpenGL 3.0 compatible card (compared to DX10) ...
Regards,
Wafthrudnir
Edit: I just read, that under windows the default headers are OpenGL 1.1. Someone suggested to use Glew. urgh...really?! (
http://stackoverflow.com/questions/37736829/glgenvertexarrays-not-available-in-c)
I am using Visual Studio 2015, the included GL.h doesn't contain the stated functions and the header says:
BUILD Version: 0004 // Increment this if a change has global effects
Copyright (c) 1985-96, Microsoft Corporation
Path is: c:\Program Files (x86)\Windows Kits\8.1\Include\um\gl\GL.h