Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to use OpenGL3?  (Read 2194 times)

0 Members and 2 Guests are viewing this topic.

con

  • Newbie
  • *
  • Posts: 12
    • View Profile
How to use OpenGL3?
« on: January 25, 2014, 06:28:11 pm »
Hello, I am using SFML to do some OpenGL programming.

Currently I want to access OpenGL 3 API and I get this error.
error: 'glGenBuffers' was not declared in this scope

I have downloaded SFML from github and built it myself, GLEW should be included in SFML right?

Jebbs

  • Sr. Member
  • ****
  • Posts: 358
  • DSFML Developer
    • View Profile
    • Email
Re: How to use OpenGL3?
« Reply #1 on: January 25, 2014, 08:40:52 pm »
I have downloaded SFML from github and built it myself, GLEW should be included in SFML right?

GLEW is used internally, yes, but you still need to include it if you yourself want to use it too.

Don't forget to read the tutorials carefully!

http://www.sfml-dev.org/tutorials/2.1/window-opengl.php
DSFML - SFML for the D Programming Language.