Sc.& ITĩ Projection Matrix and Perspective viewingĬomputer Graphics Projection Matrix and Perspective viewing b. Sc.& ITĬomputer Graphics Perspective Viewing System top, left N d F right, bottom FUUAST Dept. Orthographic: glMatrixMode(GL_PROJECTION) glLoadIdentity() glOrtho(-x, x,-y, y, near far) FUUAST Dept. Sc.& ITħ Projection Matrix and Orthographic ViewingĬomputer Graphics Projection Matrix and Orthographic Viewing a. Sc.& ITĬomputer Graphics Orthographic Viewing System y top Near Plane Far Plane left x bottom right N z F FUUAST Dept. OpenGL Computer Graphics v.Ĝolors: a.ĝrawing color: glColor3d(red, green, blue) b.ěackground Color: glClearColor(red, green, blue, alpha) c.Ĝlear Screen(Frame Buffer): glClear(GL_COLOR_BUFFER_BIT) d.Ĝolor Gradient: Every vertex with different color.
Lines: glBegin(GL_LINES) glVertex2d(x,y) glVertex2d(x,y) ……. GlBegin(GL_POINTS) glVertex2d(x,y) …… glEnd() b. Drawing primitives OpenGL Computer Graphics a. next to end:2, 3,4 ii.ĒD window and viewport a. Two Dimensional i.ğunctions’ structure a. OpenGL Computer Graphics Introduction 1.Ĝ# Wrapper (Tao Framework) i. OpenGL using Tao Framework in C# FUUAST Dept. of Computer Science & ITįederal Urdu University of Arts, Sciences and TechnologyĬomputer Graphics 3.