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

Author Topic: Modern OpenGL with SFML 2.0  (Read 5268 times)

0 Members and 1 Guest are viewing this topic.

AgonizingBroadcast

  • Newbie
  • *
  • Posts: 6
    • View Profile
Modern OpenGL with SFML 2.0
« on: May 13, 2013, 06:59:41 pm »
Is it possible to use modern OpenGL (4+) with SFML 2.0?

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Modern OpenGL with SFML 2.0
« Reply #1 on: May 13, 2013, 07:08:14 pm »
Is it possible to use modern OpenGL (4+) with SFML 2.0?

Not at the moment, but what is the reason that you want a newer version of OpenGL?
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

AgonizingBroadcast

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Modern OpenGL with SFML 2.0
« Reply #2 on: May 13, 2013, 07:09:46 pm »
Is it possible to use modern OpenGL (4+) with SFML 2.0?

Not at the moment, but what is the reason that you want a newer version of OpenGL?

Ah okay, I wanted to use it as soon it's going to become a standard and it will help me understand graphics programming. Thanks for the fast reply.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Modern OpenGL with SFML 2.0
« Reply #3 on: May 13, 2013, 07:11:22 pm »
Yes it is possible.
Laurent Gomila - SFML developer

AgonizingBroadcast

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Modern OpenGL with SFML 2.0
« Reply #4 on: May 13, 2013, 07:13:40 pm »
Yes it is possible.

Oh. Is there any special function calls I need to do or does it just work out of the box when I include SFML/OpenGL.hpp and SFML/Graphics.hpp ?

iride

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
Re: Modern OpenGL with SFML 2.0
« Reply #5 on: May 13, 2013, 10:00:29 pm »
You probably need glew

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Modern OpenGL with SFML 2.0
« Reply #6 on: May 13, 2013, 10:38:39 pm »
Read the "OpenGL in a SFML window" tutorial, everything is explained.
Laurent Gomila - SFML developer

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Modern OpenGL with SFML 2.0
« Reply #7 on: May 13, 2013, 10:46:23 pm »
Yes it is possible.

Yea my bad....  :-\
I clicked the reply button to fast... Yes it is possibly to use higher versions of OpenGL.

I thought the OP wanted to make SFML internally work with a higher version like OpenGL ES.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor