glGetSynciv

query the properties of a sync object

Signature

glGetSynciv( GLsync ( sync ) , GLenum ( pname ) , GLsizei ( bufSize ) , GLsizei *( length ) , GLint *( values ) )-> void
glGetSync( sync , pname , bufSize = 1 , length = None , values = None )
Wrapper around glGetSynciv that auto-allocates buffers
    
    sync -- the GLsync struct pointer (see glGetSynciv)
    pname -- constant to retrieve (see glGetSynciv)
    bufSize -- defaults to 1, maximum number of items to retrieve,
        currently all constants are defined to return a single 
        value 
    length -- None or a GLint() instance (ONLY!), must be a byref()
        capable object with a .value attribute which retrieves the 
        set value
    values -- None or an array object, if None, will be a default 
        return-array-type of length bufSize
    
    returns values[:length.value], i.e. an array with the values set 
    by the call, currently always a single-value array.
    
glGetSynciv( sync , pname , bufSize , length , values )

Parameters

VariablesDescription
sync
Specifies the sync object whose properties to query.
pname
Specifies the parameter whose value to retrieve from the sync object specified in sync .
bufSize
Specifies the size of the buffer whose address is given in values .
length
Specifies the address of an variable to receive the number of integers placed in values .
values
Specifies the address of an array to receive the values of the queried parameter.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glGetSynciv
OpenGLContext tests/arbsync.py Lines: 41