Moved platform OpenGL loading code into their respective context implementations.
This commit is contained in:
parent
38f0464ab0
commit
c30a3da8d5
13 changed files with 153 additions and 112 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue