Hi,
I wanted to see if any of the GL 3.3 and 4.0 functions are available in the OpenTK developer builds. I tried both branches/gl4 and trunk and didn't see anything. Specifically, I'm interested in the new sampler objects - GL.GenSamplers, etc.
Regards,
Patrick
Comments
Re: OpenGL 3.3 and 4.0 Functions
Hi Patrick. I just checked the build that i have and they're in there (Including GL.GenSamplers). I'm using a updated build that i generated myself. check the second half of this post for building details:
http://www.opentk.com/node/2081
Re: OpenGL 3.3 and 4.0 Functions
Thanks for the link. I wouldn't have gotten as far as I did without it. I ran into a few new problems in addition to the ones you mentioned:
I'll just wait for the official build. Thanks!
Patrick
Re: OpenGL 3.3 and 4.0 Functions
it only took a few minutes to fix and I'm impatient :P. generating the bindings from the new specs got rid of some needed enum like the ones i added, i just copied them from a previous opentk build, and changed the version parameters. On the other hand it doesn't look like it'll be too much longer till an official build is released.
Re: OpenGL 3.3 and 4.0 Functions
I haven't actually managed to build a working copy of the gl4 branch with the new specs - I spent an hour recursing through errors on Friday (fix one error, and two more spring up).
You wouldn't happen to have more detailed instructions as to correcting all the errors, or better yet a patch file from a working build?
Re: OpenGL 3.3 and 4.0 Functions
Here's a link to my patched gl4 with the new specs.
http://www.ployproductions.com/OpenGL.rar
Just extract it into your OpenTK\Graphics\OpenGL folder and build using
I haven't fully tested it yet but it builds with no errors, all my previous projects work and the new additions also work.
Re: OpenGL 3.3 and 4.0 Functions
The gl4 branch contains a couple of backwards incompatible changes (bugfixes) but they affect rather exotic APIs (APPLE_object_purgeable) so they are less of an issue.
I am going to release an alpha gl4 build in the next few days which will be equivalent to the link in the previous post (so use that in the meantime). Strongly-typed enums will be coming shortly after that.
Re: OpenGL 3.3 and 4.0 Functions
Thanks for the patch. I added fixes for DrawRangeElements and StencilFuncSeparate, and added BlendingFactorDest.DstColor and BlendingFactorDest.OneMinusDstColor. The zip with these changes is here:
http://dl.dropbox.com/u/1851229/OpenTKGL4/OpenGL2.zip
Regards,
Patrick
Virtual Globe and Terrain Rendering Blog
Re: OpenGL 3.3 and 4.0 Functions
The gl4 branch contains a couple of backwards incompatible changes (bugfixes) but they affect rather exotic APIs (APPLE_object_purgeable) so they are less of an issue.
Any idea just how incompatible gl4 is with trunk at this point? I need several of the features from trunk, but I also need access to ARB_tessellation_shader.
--
Tristam MacDonald - swiftcoding
Re: OpenGL 3.3 and 4.0 Functions
The gl4 branch merges into trunk cleanly (a single conflict in enumext.spec can be resolved in favor of gl4) and you are unlikely to encounter any compatibility issues. However, I'd suggest simply dropping the GL4 files directly into your trunk instead of going down that path.