I want to write an OpenGL program using C ++.
In this program, I want to use classes.
I want to write a class for the triangle and insert a function to draw a triangle in the class, and then another function to rotate the triangle and another function to move that. And in the rotation and moving function, the time variable should be given to these two functions as one of the inputs.
Next, in the display function, any number of triangle variables that I define can be drawn on the graphic display without any problems.
And whenever I want I would be able to use rotation and move functions or move the triangle over the time.
Yes, and? What’s your question here? Do you want somebody to verify if this design is good for you? (it’s bad and will perform terribly.) Do you want somebody to write the code for you? (that’s not going to happen.) What do you want?
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.