Question: Question: Build a C++ SFML recursive Pythagoras tree using a sqaure as base. It must contain a Makefile and .cpp and .hpp files. The picture
The picture contains notes . Please help me , my grade depends on this . Please thanks Notes: You should create a PTree class that derives from sf::Drawable. Then, you can have it just draw itself to your main window. Review Jon's Linesegment example to see a simple example of how to do this: LineDemo.tar.gz. Using SFML's ConvexShape class is a good way to draw a square. Your executable must read two parameters (integers): recursion-depth and window-size. You should create a square SFML window that's exactly as big as the window-size argument, and your triangle should fill it. . . Notes: You should create a PTree class that derives from sf::Drawable. Then, you can have it just draw itself to your main window. Review Jon's Linesegment example to see a simple example of how to do this: LineDemo.tar.gz. Using SFML's ConvexShape class is a good way to draw a square. Your executable must read two parameters (integers): recursion-depth and window-size. You should create a square SFML window that's exactly as big as the window-size argument, and your triangle should fill it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
