Answered step by step
Verified Expert Solution
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.
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 The picture contains notes . Please help me , my grade depends on this . Please thanks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started