Implements sfContext_getFunction

This commit is contained in:
Luhrel authored and Lukas Dürrenberger committed 2022-10-27 22:11:25 +02:00
1 parent 47cf45ad54
commit 8d14b53047
2 files changed
+19

No files matched your search

+12
View File
@@ -32,6 +32,8 @@
#include <SFML/Window/Types.h>
#include <SFML/Window/Window.h>
typedef void (*GlFunctionPointer)();
////////////////////////////////////////////////////////////
/// \brief Create a new context
///
@@ -71,6 +73,16 @@ CSFML_WINDOW_API sfBool sfContext_isExtensionAvailable(const char* name);
////////////////////////////////////////////////////////////
CSFML_WINDOW_API sfBool sfContext_setActive(sfContext* context, sfBool active);
////////////////////////////////////////////////////////////
/// \brief Get the address of an OpenGL function.
///
/// \param name Name of the function to get the address of
///
/// \return Address of the OpenGL function, 0 on failure
///
////////////////////////////////////////////////////////////
CSFML_WINDOW_API GlFunctionPointer sfContext_getFunction(const char* name);
////////////////////////////////////////////////////////////
/// \brief Get the settings of the context.
///
+7
View File
@@ -59,6 +59,13 @@ sfBool sfContext_setActive(sfContext* context, sfBool active)
}
////////////////////////////////////////////////////////////
GlFunctionPointer sfContext_getFunction(const char* name)
{
return sf::Context::getFunction(name);
}
////////////////////////////////////////////////////////////
sfContextSettings sfContext_getSettings(const sfContext* context)
{