Assignment1 - Computer Graphics Assignment #1 Drawing Lines...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Computer Graphics Assignment #1 Drawing Lines and Polygons n Input file ü Number of vertices ü Vertex information - Index - Position : x, y (0~500) ü Number of polygons ü Polygon information - Index - Number of vertices - Indices of vertices (counter clockwise) vertex index vertex position polygon index the number of vertices
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
n Output view ü Polygons image n Development environment will be given ü http://vplab.snu.ac.kr/lectures/10-1/graphics/CGAssignments.zip ü CAssignment1 : You can write a program in this class ü You can use only SetPixel() for drawing COLORREF SetPixel(HDC hdc, int X, int Y, COLORREF crColor) hdc: A handle to the device context X: The x-coordinate, in logical units, of the point to be set Y: The y-coordinate, in logical units, of the point to be set crColor: The color to be used to paint the point
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Assignment1 - Computer Graphics Assignment #1 Drawing Lines...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online