Home > Back-end >  In C shape
In C shape

Time:09-21

1) Shape is the abstract parent class graphics class, it contains an abstract method the draw ();

2) in his derived class implements the draw () method, their properties and properties of modified methods;

3) Graphic is used to store the current existing object and draw the existing object;

4) OpenGLApp is used to test the collection classes, methods initGL () is used to create and initialize Graphics class instance, method display () draw all save Graphics in the Graphics class instance, reshape () is used to modify Graphics Graphics areas of the class instance attribute value;

5) Point class used to store the Shape set Point attribute;

6) and in the main function of creating OpenGLApp instance and invoke the relevant members of the method, establishing a different shape, all kinds of graphic the draw () method call, and by the changes of the coordinates of all kinds of shape reshape () method,

CodePudding user response:

Here are the class diagram, shouldn't be hard

CodePudding user response:

A beginner, so I don't know much about

CodePudding user response:

Not to ask questions

CodePudding user response:

Ask the class how to write
  • Related