Question: OpenGL C + + - Write a display ( ) function that draws the IBM logo . You should assume that the view volume goes

OpenGL C++- Write a display() function that draws the IBM logo. You should
assume that the view volume goes from 0 to 15 in the y axis and that the thickness of each
bar in the logo is 1.
You may want to use the following functions:
1. drawCircle(cx, cy, r) which draws a filled circle centered at location
(cx, cy) with radius r.
2. drawArc(float cx, float cy, float r, float startAngle, float
endAngle) which draws an arc of a circle of radius r, centered at (cx, cy) from
startAngle to endAngle.
3. OpenGl function glRecti(x1,y1,x2,y2) which draws a filled rectangle between integer
corners (x1,y1) and (x2, y2).
HINT: Consider drawing some polygons and then erasing some portions of them.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!