From 53bd3517db4bf283f1d24dc13f2af8307c6abb68 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Mon, 9 Sep 2024 19:20:48 -0600 Subject: [PATCH] Update to new anti-aliasing naming --- include/CSFML/Graphics/RenderTexture.h | 2 +- include/CSFML/Window/Window.h | 8 ++++---- src/CSFML/Graphics/RenderTexture.cpp | 4 ++-- src/CSFML/Window/ConvertContextSettings.hpp | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/CSFML/Graphics/RenderTexture.h b/include/CSFML/Graphics/RenderTexture.h index fe09d1c3..95fc6801 100644 --- a/include/CSFML/Graphics/RenderTexture.h +++ b/include/CSFML/Graphics/RenderTexture.h @@ -335,7 +335,7 @@ CSFML_GRAPHICS_API const sfTexture* sfRenderTexture_getTexture(const sfRenderTex /// \return The maximum anti-aliasing level supported by the system /// //////////////////////////////////////////////////////////// -CSFML_GRAPHICS_API unsigned int sfRenderTexture_getMaximumAntialiasingLevel(void); +CSFML_GRAPHICS_API unsigned int sfRenderTexture_getMaximumAntiAliasingLevel(void); //////////////////////////////////////////////////////////// /// \brief Enable or disable the smooth filter on a render texture diff --git a/include/CSFML/Window/Window.h b/include/CSFML/Window/Window.h index 989024ed..b0c64640 100644 --- a/include/CSFML/Window/Window.h +++ b/include/CSFML/Window/Window.h @@ -57,7 +57,7 @@ typedef struct { unsigned int depthBits; ///< Bits of the depth buffer unsigned int stencilBits; ///< Bits of the stencil buffer - unsigned int antialiasingLevel; ///< Level of antialiasing + unsigned int antiAliasingLevel; ///< Level of anti-aliasing unsigned int majorVersion; ///< Major number of the context version to create unsigned int minorVersion; ///< Minor number of the context version to create uint32_t attributeFlags; ///< The attribute flags to create the context with @@ -75,7 +75,7 @@ typedef struct /// sfFullscreen, then \a mode must be a valid video mode. /// /// The fourth parameter is a pointer to a structure specifying -/// advanced OpenGL context settings such as antialiasing, +/// advanced OpenGL context settings such as anti-aliasing, /// depth-buffer bits, etc. /// /// \param mode Video mode to use (defines the width, height and depth of the rendering area of the window) @@ -103,7 +103,7 @@ CSFML_WINDOW_API sfWindow* sfWindow_create(sfVideoMode mode, /// sfFullscreen, then \a mode must be a valid video mode. /// /// The fourth parameter is a pointer to a structure specifying -/// advanced OpenGL context settings such as antialiasing, +/// advanced OpenGL context settings such as anti-aliasing, /// depth-buffer bits, etc. /// /// \param mode Video mode to use (defines the width, height and depth of the rendering area of the window) @@ -129,7 +129,7 @@ CSFML_WINDOW_API sfWindow* sfWindow_createUnicode( /// rendering area into an already existing control. /// /// The second parameter is a pointer to a structure specifying -/// advanced OpenGL context settings such as antialiasing, +/// advanced OpenGL context settings such as anti-aliasing, /// depth-buffer bits, etc. /// /// \param handle Platform-specific handle of the control diff --git a/src/CSFML/Graphics/RenderTexture.cpp b/src/CSFML/Graphics/RenderTexture.cpp index fa523410..66a351b5 100644 --- a/src/CSFML/Graphics/RenderTexture.cpp +++ b/src/CSFML/Graphics/RenderTexture.cpp @@ -288,9 +288,9 @@ void sfRenderTexture_setSmooth(sfRenderTexture* renderTexture, bool smooth) //////////////////////////////////////////////////////////// -unsigned int sfRenderTexture_getMaximumAntialiasingLevel() +unsigned int sfRenderTexture_getMaximumAntiAliasingLevel() { - return sf::RenderTexture::getMaximumAntialiasingLevel(); + return sf::RenderTexture::getMaximumAntiAliasingLevel(); } diff --git a/src/CSFML/Window/ConvertContextSettings.hpp b/src/CSFML/Window/ConvertContextSettings.hpp index 8f2e28a6..81c406d6 100644 --- a/src/CSFML/Window/ConvertContextSettings.hpp +++ b/src/CSFML/Window/ConvertContextSettings.hpp @@ -39,7 +39,7 @@ { return {settings.depthBits, settings.stencilBits, - settings.antialiasingLevel, + settings.antiAliasingLevel, settings.majorVersion, settings.minorVersion, settings.attributeFlags, @@ -53,7 +53,7 @@ { return {settings.depthBits, settings.stencilBits, - settings.antialiasingLevel, + settings.antiAliasingLevel, settings.majorVersion, settings.minorVersion, settings.attributeFlags,