|
|
|
|
@ -5,7 +5,8 @@
|
|
|
|
|
|
|
|
|
|
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, |
|
|
|
|
2020, 2021 Vladimír Vondruš <mosra@centrum.cz> |
|
|
|
|
Copyright © 2020 Erik Wijmans <etw@gatech.edu> |
|
|
|
|
Copyright © 2020, 2021 Erik Wijmans <etw@gatech.edu> |
|
|
|
|
Copyright © 2021 Konstantinos Chatzilygeroudis <costashatz@gmail.com> |
|
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a |
|
|
|
|
copy of this software and associated documentation files (the "Software"), |
|
|
|
|
@ -123,13 +124,18 @@ class WindowlessEglContext {
|
|
|
|
|
* @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. |
|
|
|
|
*/ |
|
|
|
|
|