Hi guys,
I am new to SFML and have come across an issue and would like some advice on how to report it, or find out if it is already a known issue.
I have been trying to use the SFML/OpenGL.hpp header to access openGL function calls on a MacBook. However, this header file does not give me access to the standard OpenGL functions for generating or binding/unbinding vertex arrays, instead I am provided with Apple-specific versions of those functions as shown below:
glGenVertexArrays(GLsizei n, GLuint *arrays) ---> glGenVertexArraysAPPLE(GLsizei n, GLuint *ids)
glBindVertexArray(GLuint array) ---> glBindVertexArrayAPPLE(GLuint id)
After some research and experimentation on the subject, I found the cause of this to be the inclusion of a header file within the SFML/OpenGL.hpp header:
.....
#elif defined(SFML_SYSTEM_MACOS)
#include <OpenGL/gl.h>
.....
This header file I believe should actually be replaced with:
#include <OpenGL/gl3.h>
As I mentioned before, I am new to SFML and OpenGL so I may very well be wrong here, all I know is that if I include the above header file, I get access to the standard OpenGL functions to generate and bind vertex arrays. Using the Apple specific ones mentioned earlier result in my calls to glDrawArrays failing to render (no error messages), but using the above header and the standard vertex array functions fixes this problem.
If anyone has any advice on how I could further this issue, or if I am wrong in some way, I would appreciate your time.