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

Author Topic: Need GLEW for SFML?  (Read 3590 times)

0 Members and 1 Guest are viewing this topic.

Guni

  • Newbie
  • *
  • Posts: 20
    • View Profile
Need GLEW for SFML?
« on: February 20, 2012, 07:06:06 pm »
I believe SFML can be used to create OpenGL contexts, but does it load the OpenGL functions, or will I need to use a separate OpenGL loading library?

Basically, does SFML do this?
http://www.opengl.org/wiki/OpenGL_Loading_Library

Edit:
I ask this because after I include SFML's OpenGL header like this:
Code: [Select]
#include <SFML/OpenGL.hpp>

I still get compiler errors like this:
Code: [Select]
1>Main.cpp(16): error C3861: 'glCreateShader': identifier not found
1>Main.cpp(18): error C3861: 'glShaderSource': identifier not found


Edit 2:
I tried to boil down my question to the essential issue, but if I should provide more information, I will gladly do so.

Edit 3: I am using SFML 2.0, linking everything statically.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Need GLEW for SFML?
« Reply #1 on: February 20, 2012, 08:04:36 pm »
You must use an extension loader (like GLEW), SFML doesn't do that.
Laurent Gomila - SFML developer

Guni

  • Newbie
  • *
  • Posts: 20
    • View Profile
Need GLEW for SFML?
« Reply #2 on: February 20, 2012, 10:19:46 pm »
Thanks

 

anything