We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

# CS602 Assignment # 1 (Dead Iine April 16, 2012)

Assignment No. 1

Spring 2012

Rules for Marking

Your assignment will not get any credit if: -

• Submitted after due date
• It is copied

Objective

To build concepts concerning hardware and techniques used in Computer Graphics

Assignment

Q1)

Device an algorithm for drawing a Rounded Rectangle

You are required to explain the procedure (Even in simple English), you can implement but it is not necessary.

10

Q2)

Give a brief introduction of Accelerated Graphics Port, how it is used to enable the 3-D graphics on personal computers.                                       10

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Views: 692

Attachments:

### Replies to This Discussion

discuss here

is this correct?

void set_pixel(int x, int y);

void round_rectangle(int x, int y, int width, int height, int radius)
{
for(int i = 0;i < width - 2 * radius;i++)
{
set_pixel(x + radius + i, y);
set_pixel(x + radius + i, y + height);
}

for(int i = 0;i < height - 2 * radius;i++)
{
set_pixel(x, y + radius + i);
set_pixel(x + width, y + radius + i);
}

for(int i = 0;i <= radius;i++)
{
set_pixel(x + width - radius + i, (int)(y + height  - radius * sin(i * (pi/(2 * radius))));
}
}

i tried this code but its givnig some problem

You are required to explain the procedure Even in simple English, you can implement but it is not necessary.

bhai is correct please tel me

I'm trying but totally confused, C, C++, Assembly. what is being gone?

help neededdddddddddddddd

pehlay sawal ka koi idea day day plzzzzzzzzzzzzzzzzzzzzzz, thora sa idea,,,,,,,,,,,, plz

??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

AOA

plz give idea somebody.today is last day

## Latest Activity

51 seconds ago
16 minutes ago
Mani Siddiqui BS VIII posted discussions
40 minutes ago
1 hour ago
1 hour ago
Mani Siddiqui BS VIII posted a status
"کسی کی معصوم ہنسی کے پیچھے درد کو محسوس تو کرو سنا ہے ہنس ہنس کے لوگ خود کو سزا دیتے ہیں"
1 hour ago
jimmy zack updated their profile
1 hour ago
ARhum replied to ARhum's discussion Tu Bewafa Kahan TaK Hai,,,///
2 hours ago

1

2

3

## HELP SUPPORT

This is a member-supported website. Your contribution is greatly appreciated!