Skip to content
Hebali edited this page Sep 12, 2014 · 6 revisions

Week 2:

  • Questions & Troubleshooting: Vectors and C++/Cinder
  • Drawing shapes in OpenGL:
    • A brief look under the hood of Cinder’s gl::draw() family of methods
    • Drawing with glBegin (see code samples):
      • Points, line segments, line strips
      • Triangles, triangle fans and triangle strips
      • Triangle strips to meshes
    • Configuration basics: wireframe, color, etc
  • Transformations and matrices in OpenGL (Part 1):
    • Matrix frames
    • Translation, rotation and scaling

Homework:

  • Using the triangle strip mesh example as a guide, please implement code to generate a cone, a torus and a sphere triangle strip mesh.

  • In class next week, each of you will give a brief presentation on one of the canonical “GoF” design patterns, which are described in the book, Design Patterns: Elements of Reusable Object-Oriented Software by Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides. I highly recommend you purchase and keep this book as a reference. However, the website: http://sourcemaking.com/design_patterns also provides excellent descriptions as well as sample code. Please spend some time browsing these patterns. Once you’ve familiarized yourself with the breadth, dig deeper into the pattern that you’ll be presenting. Draw it out for yourself, implement it a few times, explain it to someone who knows nothing about computers - really try to internalize it. For your presentation, please be prepared to describe your pattern, discuss its possible use cases and walk us through a C++ implementation (your own or one from the site above).

Clone this wiki locally