MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
renderable_resource.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #include <cstdlib>
6 
7 namespace mbgl {
8 namespace gl {
9 
11 protected:
12  explicit RenderableResource() = default;
13 
14 public:
15  virtual void bind() = 0;
16 
17  virtual void swap() {
18  // Renderable resources that require a swap function to be called explicitly
19  // can override this method.
20  }
21 };
22 
23 } // namespace gl
24 } // namespace mbgl
Definition: actor.hpp:15