Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::glHardwareQuery Class Reference

#include <glHardwareQuery.h>

Public Member Functions

 glHardwareQuery () noexcept
 
void create (gl46core::GLenum queryType)
 
void destroy ()
 
bool isResultAvailable () const
 
I64 getResult () const
 
I64 getResultNoWait () const
 
U32 getID () const noexcept
 
bool enabled () const noexcept
 
void enabled (const bool state) noexcept
 

Protected Attributes

bool _enabled = true
 
U32 _queryID = 0u
 

Detailed Description

Definition at line 45 of file glHardwareQuery.h.

Constructor & Destructor Documentation

◆ glHardwareQuery()

Divide::glHardwareQuery::glHardwareQuery ( )
explicitnoexcept

Definition at line 8 of file glHardwareQuery.cpp.

Member Function Documentation

◆ create()

void Divide::glHardwareQuery::create ( gl46core::GLenum  queryType)

Definition at line 13 of file glHardwareQuery.cpp.

◆ destroy()

void Divide::glHardwareQuery::destroy ( )

Definition at line 19 of file glHardwareQuery.cpp.

◆ enabled() [1/2]

bool Divide::glHardwareQuery::enabled ( ) const
inlinenoexcept

Definition at line 57 of file glHardwareQuery.h.

◆ enabled() [2/2]

void Divide::glHardwareQuery::enabled ( const bool  state)
inlinenoexcept

Definition at line 58 of file glHardwareQuery.h.

◆ getID()

U32 Divide::glHardwareQuery::getID ( ) const
inlinenoexcept

Definition at line 56 of file glHardwareQuery.h.

◆ getResult()

I64 Divide::glHardwareQuery::getResult ( ) const

Definition at line 35 of file glHardwareQuery.cpp.

◆ getResultNoWait()

I64 Divide::glHardwareQuery::getResultNoWait ( ) const

Definition at line 42 of file glHardwareQuery.cpp.

◆ isResultAvailable()

bool Divide::glHardwareQuery::isResultAvailable ( ) const

Definition at line 28 of file glHardwareQuery.cpp.

Member Data Documentation

◆ _enabled

bool Divide::glHardwareQuery::_enabled = true
protected

Definition at line 61 of file glHardwareQuery.h.

◆ _queryID

U32 Divide::glHardwareQuery::_queryID = 0u
protected

Definition at line 62 of file glHardwareQuery.h.


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