mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-27 21:36:13 +01:00
Implements sfContext_getFunction
This commit is contained in:
1 parent
47cf45ad54
commit
8d14b53047
2 files changed
+19
No files matched your search
@@ -32,6 +32,8 @@
|
|||||||
#include <SFML/Window/Types.h>
|
#include <SFML/Window/Types.h>
|
||||||
#include <SFML/Window/Window.h>
|
#include <SFML/Window/Window.h>
|
||||||
|
|
||||||
|
typedef void (*GlFunctionPointer)();
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Create a new context
|
/// \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);
|
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.
|
/// \brief Get the settings of the context.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -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)
|
sfContextSettings sfContext_getSettings(const sfContext* context)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user