Doxybook2 Example
 
Loading...
Searching...
No Matches
Handle.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace Engine {
4 namespace Graphics {
8 class Handle {
9 public:
10 Handle() = default;
11 virtual ~Handle() = default;
12
13 int getHandle() const {
14 return handle;
15 }
16
17 protected:
18 // OpenGL handle
19 int handle;
20 };
21
26 inline int getHandle(Handle& handle) {
27 return handle.getHandle();
28 }
29 } // namespace Graphics
30} // namespace Engine
Definition Handle.hpp:8
virtual ~Handle()=default
int getHandle() const
Definition Handle.hpp:13
int handle
Definition Handle.hpp:19
int getHandle(Handle &handle)
Some namespace inline function.
Definition Handle.hpp:26
Definition Framebuffer.hpp:6
This namespace contains all of the necessary engine components.
Definition Asset.hpp:5