Lecture 12 Part 2: Factories and Superclasses as Service Providers

September 19, 2012

Ambient temperature: 73.2oF Concepts Systems with prototypes do not care where the prototypes come from, so long as they have one. Have a “IPrototypeShapeFactory” hierarchy that can produce the prototype (size ~ 1.0 units) of any kind of shape, when you need it. Polygon and Image factories cannot store a unit-sized prototype; they will instead […]


Lecture 11 Part 2 & Lecture 12: Transforming how we Paint & Using Superclasses as Service Providers

September 17, 2012

Ambient temperature: 75.1oF Concepts Fishworld uses “Affine Transformations” to make its fish turn to face the correct direction. Everything takes place relative to the origin, and order of operations is important. This is why CS majors must take math courses: Their concepts become freakishly germane in matters of computer graphics. Dr. Wong advises us to […]