MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / Background

Class Background

src/visualization/components/background.h:34–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace oid {
33
34class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected