Skip to content
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

Fixed Several API disparities #216

Merged
merged 2 commits into from Jun 2, 2022
Merged

Fixed Several API disparities #216

merged 2 commits into from Jun 2, 2022

Conversation

ghost
Copy link

@ghost ghost commented Jun 1, 2022

Mentioned in #210: CSFML specifies return type of sfImage_flipVertically and sfImage_flipHorizontally of type void but C# invocation method did not match this.

Mentioned in #215: CSFML defines 2 functions that were not exposed: sfShader_setUniform(.. sfColor) and sfVertexBuffer_bind. The former is now exposed as SetUniform(string, color). The latter is now bound to a static member of VertexBuffer named Bind(VertexBuffer)

(#210) Fixed type disparity between CSFML and SFML.Net sfImage_flipVertically & sfImage_flipHorizontally
(#215) added "SetUniform(string name, Color color)" override for sfShader_setUniform & added static member "Bind()" for sfVertexBuffer_bind
Copy link
Member

@eXpl0it3r eXpl0it3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some small formatting changes

src/SFML.Graphics/Shader.cs Show resolved Hide resolved
src/SFML.Graphics/Shader.cs Show resolved Hide resolved
src/SFML.Graphics/VertexBuffer.cs Show resolved Hide resolved
src/SFML.Graphics/VertexBuffer.cs Show resolved Hide resolved
@eXpl0it3r eXpl0it3r added the Bug label Jun 2, 2022
@eXpl0it3r eXpl0it3r merged commit 8c29157 into SFML:master Jun 2, 2022
@eXpl0it3r
Copy link
Member

Thanks for aligning these! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant