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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kire

Pages: [1]
1
Feature requests / OpenGL Forward Compatible Context
« on: November 28, 2010, 06:29:38 pm »
Ah so you would go from 4.0 to something like 3.9? I guess that will also work, yes :).

2
Feature requests / OpenGL Forward Compatible Context
« on: November 28, 2010, 06:08:30 pm »
Well,  I actually tried that way first because it's obviously easier, however there is no clear way of going from 4.0->3.3 with that method. That's why I came up with the versions array (the method is simply because I think it's tidier to reuse in multiple impl versions). And with this implementation adding support to a new version is simply done by adding it to an array, given of course that opengl's createcontext method doesn't change again :p.

Anway, thanks for looking at it :).

3
Feature requests / OpenGL Forward Compatible Context
« on: November 28, 2010, 03:53:11 pm »
Appearantly you even set the compatibility by default, which I think is great :).

However, concerning 4.x support I think this doesn't really work as expected, your 'release try' currently happens as follows:
Code: [Select]

while (!myContext && (mySettings.MajorVersion >= 3))
    {
        //Try create context

        // If we couldn't create an OpenGL 3 context, adjust the settings
        if (!myContext)
        {
            if (mySettings.MinorVersion > 0)
            {
                // If the minor version is not 0, we decrease it and try again
                mySettings.MinorVersion--;
            }
            else
            {
                // If the minor version is 0, we decrease the major version and stop with 3.x contexts
                mySettings.MajorVersion = 2;
            }
        }
    }


So if it cannot create a 4.1/4.0 context it will immediately fall back to 2.x, which shouldn't really happen. I added some methods to the more general GLContext and adapted the glx and wgl context classes accordingly. I think this fix is more future proof. Anyway, you can find the patch here

I know there are some weird looking +/- lines in the fix also, I guess that has something to do with line endings getting changed upon saving.

4
Feature requests / OpenGL Forward Compatible Context
« on: November 28, 2010, 01:12:51 pm »
In SFML 2.0, is there any plan to add a context setting to enable a forward compatible context? As I am developping on cutting edge and future-minded I really could use those.

I know how to create such contexts myself using wgl or glx (the two platforms I'm developping for most) but I'd rather see it wrapped in a decent cross-platform media API like SFML.

also, related: are OpenGL 4 and 4.1 contexts supported without problem? (I'm not getting my new gpu for another 2 weeks so can't test myself).

Kind regards

Pages: [1]
anything