From e336d9fb775bf4c6db961919c4791e4da3528b2a Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Thu, 5 Sep 2024 13:56:17 -0600 Subject: [PATCH] Add missing `sf` prefix This function pointer is within the `sf::` namespace of SFML so it ought to have an `sf` prefix in CSFML. --- include/CSFML/Window/Context.h | 4 ++-- src/CSFML/Window/Context.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/CSFML/Window/Context.h b/include/CSFML/Window/Context.h index a803bff..1e36ff4 100644 --- a/include/CSFML/Window/Context.h +++ b/include/CSFML/Window/Context.h @@ -32,7 +32,7 @@ #include #include -typedef void (*GlFunctionPointer)(void); +typedef void (*sfGlFunctionPointer)(void); //////////////////////////////////////////////////////////// /// \brief Create a new context @@ -81,7 +81,7 @@ CSFML_WINDOW_API bool sfContext_setActive(sfContext* context, bool active); /// \return Address of the OpenGL function, 0 on failure /// //////////////////////////////////////////////////////////// -CSFML_WINDOW_API GlFunctionPointer sfContext_getFunction(const char* name); +CSFML_WINDOW_API sfGlFunctionPointer sfContext_getFunction(const char* name); //////////////////////////////////////////////////////////// /// \brief Get the settings of the context. diff --git a/src/CSFML/Window/Context.cpp b/src/CSFML/Window/Context.cpp index 29daf61..5ff2c43 100644 --- a/src/CSFML/Window/Context.cpp +++ b/src/CSFML/Window/Context.cpp @@ -60,7 +60,7 @@ bool sfContext_setActive(sfContext* context, bool active) //////////////////////////////////////////////////////////// -GlFunctionPointer sfContext_getFunction(const char* name) +sfGlFunctionPointer sfContext_getFunction(const char* name) { return sf::Context::getFunction(name); }