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

#include <Query.h>

Public Member Functions

virtual ~Query ()
 
GLuint getId () const
 
GLenum getTarget () const
 
virtual void begin ()
 
virtual void end ()
 
GLint getValueInt () const
 
GLuint getValueUInt () const
 
GLint64 getValueInt64 () const
 
GLuint64 getValueUInt64 () const
 
bool isReady () const
 
bool isValid () const
 

Static Public Member Functions

static QueryRef create (GLenum target)
 

Protected Member Functions

 Query (GLuint target)
 

Protected Attributes

GLuint mId
 
GLenum mTarget
 

Detailed Description

Base class for OpenGL Query objects.

Constructor & Destructor Documentation

cinder::gl::Query::~Query ( )
virtual
cinder::gl::Query::Query ( GLuint  target)
protected

Member Function Documentation

QueryRef cinder::gl::Query::create ( GLenum  target)
static
GLuint cinder::gl::Query::getId ( ) const

Returns the id of this object.

GLenum cinder::gl::Query::getTarget ( ) const

Returns the target of this object.

void cinder::gl::Query::begin ( )
virtual

Begins a query.

void cinder::gl::Query::end ( )
virtual

Ends a query.

GLint cinder::gl::Query::getValueInt ( ) const

Returns the value of the underlying query with GLint precision.

GLuint cinder::gl::Query::getValueUInt ( ) const

Returns the value of the underlying query with GLuint precision.

GLint64 cinder::gl::Query::getValueInt64 ( ) const

Returns the value of the underlying query with GLint64 precision.

GLuint64 cinder::gl::Query::getValueUInt64 ( ) const

Returns the value of the underlying query with GLuint64 precision.

bool cinder::gl::Query::isReady ( ) const

Returns whether the query object is ready.

bool cinder::gl::Query::isValid ( ) const

Returns whether the query's id is valid (corresponds to an actual query object).

Member Data Documentation

GLuint cinder::gl::Query::mId
protected
GLenum cinder::gl::Query::mTarget
protected

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