ScholarMatic | 24/7 Homework Help

ScholarMatic Will Help You Write Your Essays and Term Papers

Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.

OpenGL Shapes Program

by | Nov 30, 2023 | questions

The project description andrequirementsare in the attached word document. The skeleton project is also provided.Below is a description of each of the five classes that you must write:

  1. TheTextclass must contain a constructor that is supplied theColorthat defines the text color, aPointthat specifies the text location and a string containing the text to be displayed. It must also contain adrawfunction because it is extends the abstract classGraphic. Thedrawfunction must draw the text using GLUT bitmap 9 by 15 characters.
  2. TheConvexPolygonclass must contain a constructor declared protected that is called only by its subclasses. That constructor is passed the number of vertices in the polygon and its color. The number of vertices together with an array ofPoints that defined those vertices should be protected data elements of the class. It must also containadrawfunction because it is extends the abstract classGraphic. Thatdrawfunction should be used to all three types of convex polygons.
  3. TheIsoscelesTriangleclass must have a constructor thatis supplied theColorof the triangle, aPointthat specifies the location of the top vertex, and the height and width of the triangle. It must allocate the array ofPoints that defined the triangle and compute their values.
  4. TheParallelogramclass must have a constructor that is suppliedtheColorof the parallelogram, twoPoints that specifies the location of the upper left and lower right vertices in addition to anxoffset value that specifies the x distance between the upper and lower left vertices.It must allocate the array ofPoints that defined the parallelogram and compute their values.
  5. TheRegularPolygonclass must contain a constructor that is suppliedtheColorof the polygon, the number of sides, aPointthat specifies the location of its center, and the radius, which defines the distance between the center and each of the vertices.It must allocate the array ofPoints that defined the regular polygon and compute their values.
ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

HOME TO CERTIFIED WRITERS

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing

Have a similar question?

PLAGIRAISM FREE PAPERS

All papers we provide are well-researched, properly formatted and cited.

TOP QUALITY

All papers we provide are well-researched, properly formatted and cited.

HIGHLY SECURED

All papers we provide are well-researched, properly formatted and cited.

ScholarMatic: Get Started

Assignment Writing Service

Feel safe and secure when placing an order on our portal!
Fruitful cooperation begins with solid guarantees, and we are professional enough to promise perfect results. Let’s get it started!