New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to 2.4 #102
Update to 2.4 #102
Conversation
…der_createFromStream functions to allow loading of all three vertex + geometry + fragment shaders
Deprecated: sfImage* sfRenderWindow_capture(const sfRenderWindow*); Added: sfRenderWindow_setMouseCursorGrabbed(sfRenderWindow*, sfBool); Added: sfWindow_setMouseCursorGrabbed(sfWindow*, sfBool); Also reordered some functions according to order in SFML.
Deprecated old setParameter API.
sfLinesStrip -> sfLineStrip sfTrianglesStrip -> sfTriangleStrip sfTrianglesFan -> sfTriangleFan
Corrected some spacing/alignment.
Added return value to function sfSoundBufferRecorder_start
Hello Alec, My implementation is available at https://github.com/DJMaster/CSFML/tree/shader-patch (commits DJMaster@da9cce8 and DJMaster@bf46c53) Please also take a look at #100. |
Oh, oops. That would do it. Thanks. Do you mind if I just merge your branch onto this? |
Here's a compilation of API changes, check it out in case you forgot something |
Fixes shader loading.
@DJMaster, I merged your DJMaster/CSFML@da9cce8 and DJMaster/CSFML@bf46c53 over this branch. Thanks for the list @BlaXpirit. |
@dabbertorres well done, but as I mentioned in #100 I consider it a temporary workaround. |
I took it as more than temporary because it is most in line with SFML's API. Personally, I'd go for an API with an add(shaderSource, shaderType) and compile() functions, as that resolves this issue. But, that'd have to wait for yet another version. Haha. |
@dabbertorres: sfShader_add and sfShader_compile functions will be much more flexible. |
Is there any news about merger of this pull? I would like to update my Go bindings. (Shameless plug: https://gitlab.com/tapir/sfml) |
I will look over it this weekend, btw thanks @dabbertorres for organizing this. |
👍 |
In addition, I've got a SFML.NET fork based off this PR. Once issues here get ironed out, I'll update it accordingly and can make a PR there.
Happy to help! |
@zsbzsb any news :) |
Are there any blockers on this? I'd really like to update rust-sfml against SFML 2.4, as it fixes a really annoying music playback bug. |
I need this too. Please can we merge it On 9 Sep 2016 22:16, "Mika Attila" notifications@github.com wrote:
|
What is the problem with this merge? Can you at least point out the problem so we can make a new PR maybe. |
The only problem with this PR is that nobody has had the time yet to review it. It's a big modification, and it would take a huge amount of time to compare every added/modified function against the SFML 2.4 changelog, so I'll have to trust you ;) Let's merge it so that people can use it (and unlock their own bindings based on CSFML), and if something's wrong we can write patches later. Thanks for this huge contribution! |
Note to self: Actually try out a pull request before asking for it to be merged. |
I went through the changelogs for 2.3 and 2.4 and made the relevant changes in CSFML.
I believe I got everything. Let me know if I am missing anything.
I left the commits split up for easier navigation/checking before merging - I can squash them beforehand, if a merge is desired.
If it is decided this looks good, I can update SFML.NET as well.