NasNas
An intuitive and beginner friendly 2D game framework for C++
Renderable.hpp
1 // Created by Modar Nasser on 21/04/2021.
2 
3 #pragma once
4 
5 #include <vector>
6 
7 namespace ns {
8  class Renderable {
9  friend class App;
10  public:
11  Renderable();
12  virtual ~Renderable();
13  private:
14  static std::vector<Renderable*> list;
15  virtual void render() = 0;
16  };
17 }
18 
Definition: App.hpp:39