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

Poll

Do you want core profile only context creation in SFML?

yes
1 (100%)
no
0 (0%)

Total Members Voted: 1

Voting closed: June 17, 2011, 07:59:50 pm

Author Topic: core profile  (Read 4368 times)

0 Members and 1 Guest are viewing this topic.

Yours3lf

  • Newbie
  • *
  • Posts: 43
    • View Profile
core profile
« on: May 18, 2011, 07:53:40 pm »
Hi everyone,

I'd like to request a new feature for SFML: specifying core profile only context creation.
Lately I've ported my 'engine' to OGL 3.3 and it really annoyed me that with deprecated functions my application still compiles, and doesn't complain.
It gave me a few annoying problems concerning this, especially when I tried to pass things to shaders, and when I tried to render with deprecated VBO functions.
So I think it'd make everyone's life easier if one could specify that he only wants non-deprecated functions in his OGL context.
This context doesn't necessarily has to be a full OGL 4.1 context with every extension, because if we wanted extensions GLEW would solve the problem.

This feature can be found in Freeglut as well in which you have to use it something like this:
Code: [Select]
int main(int argc, char* argv[])
{
glutInit(&argc, argv);
glutInitContextVersion(4, 1);
glutInitContextFlags(GLUT_FORWARD_COMPATIBLE);
glutInitContextProfile(GLUT_CORE_PROFILE);
...
}


So it is extremely easy to use, and it makes your life a LOT easier.

Best regards,
Yours3lf

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
core profile
« Reply #1 on: May 19, 2011, 02:42:14 am »
If I specify that I want an OpenGL 4.1 context, I want an OpenGL 4.1 context. Not an OpenGL 4.1 compatibility context.
I use the latest build of SFML2

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
core profile
« Reply #2 on: May 19, 2011, 07:35:28 am »
I think I already answered this request (I don't remember where).

I can't add this option as long as SFML itself is not compatible with it (ie. as long as it uses deprecated functions).
Laurent Gomila - SFML developer

Yours3lf

  • Newbie
  • *
  • Posts: 43
    • View Profile
core profile
« Reply #3 on: May 19, 2011, 07:31:31 pm »
:(

then it'd really need to be ported to OGL 3.3+

This is actually a feature that would be unique in a sense that so far I've only seen it in freeglut, which is not so good when it comes to engine programming. On the other side SFML is great when it comes to engine programming.

Yours3lf

  • Newbie
  • *
  • Posts: 43
    • View Profile
core profile
« Reply #4 on: May 19, 2011, 07:47:32 pm »
I have a question:

if I wanted to port it to OGL 3.3+, then besides the Graphics folder is there anywhere else stuff related to OGL?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
core profile
« Reply #5 on: May 19, 2011, 08:16:53 pm »
Quote
then it'd really need to be ported to OGL 3.3+

I'll work on this as soon as SFML 2.0 is released.

Quote
if I wanted to port it to OGL 3.3+, then besides the Graphics folder is there anywhere else stuff related to OGL?

Nop.
But you should wait, I'm currently changing a lot of stuff in the graphics module. Porting it now would be a waste of time.
Laurent Gomila - SFML developer

Yours3lf

  • Newbie
  • *
  • Posts: 43
    • View Profile
core profile
« Reply #6 on: May 20, 2011, 07:13:46 pm »
ok thanks :)