|
|
|
|
@ -115,10 +115,23 @@ class WindowlessWindowsEglContext {
|
|
|
|
|
* @brief Make the context current |
|
|
|
|
* |
|
|
|
|
* Prints error message and returns @cpp false @ce on failure, |
|
|
|
|
* otherwise returns @cpp true @ce. |
|
|
|
|
* otherwise returns @cpp true @ce. If the context is current on |
|
|
|
|
* another thread, you have to @ref release() it there first --- an |
|
|
|
|
* OpenGL context can't be current in multiple threads at the same |
|
|
|
|
* time. |
|
|
|
|
*/ |
|
|
|
|
bool makeCurrent(); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Release current context |
|
|
|
|
* @m_since_latest |
|
|
|
|
* |
|
|
|
|
* Releases a context previously made current using @ref makeCurrent(). |
|
|
|
|
* Prints error message and returns @cpp false @ce on failure, |
|
|
|
|
* otherwise returns @cpp true @ce. |
|
|
|
|
*/ |
|
|
|
|
bool release(); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Underlying OpenGL context |
|
|
|
|
* @m_since{2020,06} |
|
|
|
|
|