-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuery.hpp
More file actions
33 lines (25 loc) · 799 Bytes
/
Copy pathQuery.hpp
File metadata and controls
33 lines (25 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include <cstdint>
#include "easygl/Export.hpp"
#include "easygl/Types.hpp"
#include "easygl/detail/GenerationTracked.hpp"
#include "easygl/detail/NonCopyable.hpp"
namespace easygl
{
class EASYGL_API Query : public detail::NonCopyable, public detail::GenerationTracked
{
public:
Query();
~Query();
Query(Query&& other) noexcept;
Query& operator=(Query&& other) noexcept;
void create();
void destroy() noexcept;
[[nodiscard]] bool is_valid_gl_object() const;
void begin(QueryTarget target) const;
void end(QueryTarget target) const;
[[nodiscard]] bool is_result_available() const;
[[nodiscard]] unsigned int result() const;
[[nodiscard]] u64 result_u64() const;
};
}