Menu shapes in openGL | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Menu shapes in openGL

Hello how are you guys? I wrote a code that shows a different shapes to the user and i set it as a menu so in the output window the user have different shapes to choose but the problem is the shapes it doesn’t show off I don’t know why so plz guys i need your help , thank you. https://code.sololearn.com/cEawTtBmAyE0/?ref=app

17th May 2023, 11:48 PM
Nini
Nini - avatar
2 Answers
+ 5
You cannot use any graphics libraries in Sololearn C++ playground, only console. And please do not tag languages like Java or Python, if they are irrelevant to your question.
18th May 2023, 5:09 AM
Tibor Santa
Tibor Santa - avatar
+ 4
After each change you have to clear the window and then draw with the new data.
18th May 2023, 6:40 AM
JaScript
JaScript - avatar