After many failed attempts to learn a bit of OpenGL I wanted to try again, this time with the help of SFML. I can't even get simple examples to compile though. This is my test code:
#include <SFML/Window.hpp>
int main() {
sf::Window app(sf::VideoMode(800, 600), "Test", sf::Style::Default, sf::ContextSettings(0, 0, 0, 4, 0));
GLuint buffer;
glGenBuffer(1, &buffer);
return 0;
}
The compiler complains about glGenBuffer not being declared. Using functions such as "glGetString(GL_VERSION)" works however (and returns the expected result). What am I doing wrong? Did something change from SFML 1.6 so I need to include more headers or is the mistake somewhere in my configuration?