Lec6 - Lecture 6: Introduction to Graphics PIC 10A Todd...

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

View Full Document Right Arrow Icon
1 Lecture 6: Introduction to Graphics PIC 10A Todd Wittman Why Study Graphics? • For the next couple days, we’re going to study computer graphics using a special library written by the textbook authors. • This is not a standard or very useful library, so you probably won’t ever see it again. • C++ was designed for number crunching and data management, not graphics. • So why are we studying graphics? – It’s good practice with classes and objects. – It’s a warm-up for real graphics programming. – It’s fun.
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 Sec 3.4 : Graphics Applications • For most of this course, we deal with text- based console applications (cin / cout). • For just one week, we’re going to look at graphics applications which display simple shapes in the graphics win dow, not the console. • So our commands will be quite different. For example, use cwin instead of cout . cout << my_circle; //Does not draw a circle. cwin << my_circle; //Draws a circle. Not A Console Application! We’ll walk you through this Thursday in the PIC Lab.
Background image of page 2
3 Starting a Graphics Application • To use the graphics, we have to include the textbook’s special library: # include “ccc_win.h”
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/27/2010 for the course PIC 157-050-21 taught by Professor Wittman during the Fall '10 term at UCLA.

Page1 / 7

Lec6 - Lecture 6: Introduction to Graphics PIC 10A Todd...

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

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