Cinder  0.9.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cinder::gl::Sync Class Reference

#include <Sync.h>

Public Member Functions

 ~Sync ()
 
GLenum clientWaitSync (GLbitfield flags=GL_SYNC_FLUSH_COMMANDS_BIT, GLuint64 timeoutNanoseconds=0)
 
void waitSync (GLbitfield flags=0, GLuint64 timeout=GL_TIMEOUT_IGNORED)
 
GLsync getObject ()
 

Static Public Member Functions

static SyncRef create (GLenum condition=GL_SYNC_GPU_COMMANDS_COMPLETE, GLbitfield flags=0)
 

Protected Member Functions

 Sync (GLenum condition, GLbitfield flags)
 

Protected Attributes

GLsync mSync
 

Constructor & Destructor Documentation

cinder::gl::Sync::~Sync ( )
cinder::gl::Sync::Sync ( GLenum  condition,
GLbitfield  flags 
)
protected

Member Function Documentation

SyncRef cinder::gl::Sync::create ( GLenum  condition = GL_SYNC_GPU_COMMANDS_COMPLETE,
GLbitfield  flags = 0 
)
static

Analogous to glFenceSync().

GLenum cinder::gl::Sync::clientWaitSync ( GLbitfield  flags = GL_SYNC_FLUSH_COMMANDS_BIT,
GLuint64  timeoutNanoseconds = 0 
)

Analogous to glClientWaitSync(). Returns GL_ALREADY_SIGNALED, GL_TIMEOUT_EXPIRED, GL_CONDITION_SATISFIED, or GL_WAIT_FAILED.

void cinder::gl::Sync::waitSync ( GLbitfield  flags = 0,
GLuint64  timeout = GL_TIMEOUT_IGNORED 
)

Analogous to glWaitSync(). As of this writing flags and timeout must be their default values, 0 and GL_TIMEOUT_IGNORED.

GLsync cinder::gl::Sync::getObject ( )

Returns the raw OpenGL Sync Object.

Member Data Documentation

GLsync cinder::gl::Sync::mSync
protected

The documentation for this class was generated from the following files: