Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing delcaration of virtual clear #4

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/hpp/render_strategy
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public:
virtual ~RenderStrategy() {}

// Pure virtual functions for rendering operations
virtual void clear(Layer& layer, color_t color) = 0;
virtual void setPixel(Layer& layer, pixel_t x, pixel_t y, color_t color) = 0;
virtual void drawLine(Layer& layer, pixel_t x1, pixel_t y1, pixel_t x2, pixel_t y2, color_t color) = 0;
virtual void drawRect(Layer& layer, pixel_t x, pixel_t y, pixel_t w, pixel_t h, color_t color) = 0;
Expand All @@ -48,8 +49,6 @@ public:
virtual void fillPolygon(Layer& layer, const std::vector<pixel_t>& points, color_t color) = 0;
virtual void drawText(Layer& layer, pixel_t x, pixel_t y, const char* text, color_t color) = 0;
virtual void drawImage(Layer& layer, pixel_t x, pixel_t y, const Layer& image) = 0;

// Additional methods for setup, teardown, or state management can be added here
};

#endif // RENDERSTRATEGY_HPP
Loading