| 32 | namespace oid { |
| 33 | |
| 34 | class Background final : public Component { |
| 35 | public: |
| 36 | Background(const std::shared_ptr<GameObject>& game_object, |
| 37 | const std::shared_ptr<RenderCanvas>& gl_canvas); |
| 38 | |
| 39 | ~Background() noexcept override; |
| 40 | |
| 41 | Background(const Background&) = delete; |
| 42 | |
| 43 | Background& operator=(const Background&) = delete; |
| 44 | |
| 45 | Background(Background&&) = delete; |
| 46 | |
| 47 | Background& operator=(Background&&) = delete; |
| 48 | |
| 49 | [[nodiscard]] bool initialize() override; |
| 50 | |
| 51 | void update() override { |
| 52 | // Do nothing |
| 53 | } |
| 54 | |
| 55 | void draw(const mat4& projection, const mat4& view_inv) override; |
| 56 | |
| 57 | [[nodiscard]] constexpr int render_index() const override; |
| 58 | |
| 59 | private: |
| 60 | ShaderProgram background_prog; |
| 61 | GLuint background_vbo{0}; |
| 62 | }; |
| 63 | |
| 64 | } // namespace oid |
| 65 |
nothing calls this directly
no outgoing calls
no test coverage detected