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

Author Topic: gl***() functions aren't defined after including sfml(fixed)  (Read 1013 times)

0 Members and 1 Guest are viewing this topic.

Clairvoire

  • Newbie
  • *
  • Posts: 29
    • AOL Instant Messenger - Clairvoire
    • View Profile
    • http://clairvoire.deviantart.com
gl***() functions aren't defined after including sfml(fixed)
« on: September 21, 2011, 06:42:34 am »
This is probably something silly I'm doing wrong, but the tutorial says I need only include SFML/Window.hpp to be able to use raw OpenGL code, like glBegin() and such.

However, it lists all the openGL code as being undefined.  Everything under SFML itself works fine though.  Am I forgetting to do something?

This is with VS2010, linked against static libraries, SFML_STATIC defined.

Thank you in advance~

Clairvoire

  • Newbie
  • *
  • Posts: 29
    • AOL Instant Messenger - Clairvoire
    • View Profile
    • http://clairvoire.deviantart.com
gl***() functions aren't defined after including sfml(fixed)
« Reply #1 on: September 21, 2011, 07:13:18 am »
Ah, nevermind, I looked at the opengl example and figured it out.  

I needed to include <SFML/OpenGL.hpp> too.  Whoops!