summaryrefslogtreecommitdiff
path: root/src/SFML/Window/iOS/EaglContext.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SFML/Window/iOS/EaglContext.hpp')
-rw-r--r--src/SFML/Window/iOS/EaglContext.hpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/SFML/Window/iOS/EaglContext.hpp b/src/SFML/Window/iOS/EaglContext.hpp
index 7121f2e..9e32e07 100644
--- a/src/SFML/Window/iOS/EaglContext.hpp
+++ b/src/SFML/Window/iOS/EaglContext.hpp
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
-// Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org)
+// Copyright (C) 2007-2023 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from the use of this software.
@@ -32,7 +32,7 @@
#include <SFML/Window/iOS/ObjCType.hpp>
#include <SFML/System/Vector2.hpp>
#include <SFML/System/Clock.hpp>
-#include <OpenGLES/ES1/gl.h>
+#include <glad/gl.h>
SFML_DECLARE_OBJC_CLASS(EAGLContext);
@@ -91,6 +91,16 @@ public:
~EaglContext();
////////////////////////////////////////////////////////////
+ /// \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
+ ///
+ ////////////////////////////////////////////////////////////
+ static GlFunctionPointer getFunction(const char* name);
+
+ ////////////////////////////////////////////////////////////
/// \brief Recreate the render buffers of the context
///
/// This function must be called whenever the containing view