Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribedThe 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions