globjects  1.0.0.000000000000
Strict OpenGL objects wrapper.
Loading...
Searching...
No Matches
Referenced.h
Go to the documentation of this file.
1
2#pragma once
3
4#include <globjects/globjects_api.h>
5
7
8
9namespace globjects
10{
11
12
22class GLOBJECTS_API Referenced : public HeapOnly
23{
24public:
26
27 void ref() const;
28 void unref() const;
29
30 int refCounter() const;
31
32private:
33 Referenced(const Referenced &) = delete;
34 Referenced & operator=(const Referenced &) = delete;
35
36protected:
37 virtual ~Referenced();
38
39private:
40 mutable int m_refCounter;
41};
42
43
44} // namespace globjects
The HeapOnly class Restricts creation to heap.
Definition HeapOnly.h:17
Superclass for all classes that use reference counting in globjects.
Definition Referenced.h:23
int refCounter() const
Contains all the classes that wrap OpenGL functionality.