Encapsulates sync object and fence functionality.
More...
#include </home/chochlik/devel/oglplus/include/oglplus/sync.hpp>
Encapsulates sync object and fence functionality.
Requires OpenGL 3.2 or the GL_ARB_sync extension.
Creates a new sync object for the specified condition
.
Sync objects are non-copyable
- Related OpenGL symbols:
- glFenceSync
Returns the condition of this Sync object.
- Related OpenGL symbols:
- glGetSync
GL_SYNC_CONDITION
bool oglplus::Sync::Signaled |
( |
void |
| ) |
const |
Returns true if this Sync object is in signaled status.
- Related OpenGL symbols:
- glGetSync
GL_SYNC_STATUS
GL_SIGNALED
Returns the status of this Sync object.
- Related OpenGL symbols:
- glGetSync
GL_SYNC_STATUS
SyncType oglplus::Sync::Type |
( |
void |
| ) |
const |
Returns the type of this Sync object.
- Related OpenGL symbols:
- glGetSync
GL_OBJECT_TYPE
void oglplus::Sync::Wait |
( |
GLuint64 |
timeout = GL_TIMEOUT_IGNORED | ) |
const |
Wait for the condition to be satisfied.
- Related OpenGL symbols:
- glWaitSync
The documentation for this class was generated from the following file:
- /home/chochlik/devel/oglplus/include/oglplus/sync.hpp