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

Question: Build a C++ SFML recursive Pythagoras tree using a sqaure as base. It must contain a Makefile and .cpp and .hpp files.
 Question: Build a C++ SFML recursive Pythagoras tree using a sqaureThe 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!