Moved platform OpenGL loading code into their respective context implementations.

This commit is contained in:
binary1248 2015-01-12 18:32:28 +01:00
parent 38f0464ab0
commit c30a3da8d5
13 changed files with 153 additions and 112 deletions

View file

@ -41,6 +41,8 @@ namespace priv
class GlContext;
}
typedef void (*GlFunctionPointer)();
////////////////////////////////////////////////////////////
/// \brief Class holding a valid drawing context
///
@ -76,6 +78,15 @@ public:
bool setActive(bool active);
public:
////////////////////////////////////////////////////////////
/// \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 Construct a in-memory context