Computer Graphics

Programs I have done :

Program 1 - Drawing static images.

Program 2 - MP Line
I recommend mugging the values of inc* and start* arrays if you want to use the code. It might be just too time consuming to derive them in the examination.

Program 3 - Line Graph

Program 4 - MP Circle

Program 5 - Transformations (Rectangle)

Program 6 - Transformations (House-like figure)

Please note that the (somewhat) complex macros you see at the top of the programs 5 and 6 are the main lines in the program. However, they are not axiomatic and shouldn't be mugged. You are supposed to derive this (They are got from the composition matrix of the required transform.)

Program 7 - Cohen Sutherland Line Clipping

Program 8 :

Hermite Curve

Bezier Curve

Program 9 - Cube 3d Rotation

Program 10 - Polygon Filling

Rename codes to .cpp before use.

Hosted by www.Geocities.ws

1