openFrameworks and C++ Learning Resources for Beginners

Hi folks. I’ve written some introductory openFrameworks and C++ learning materials for a creative-coding college course. Newcomers to C++ and/or oF may find these useful.

The students in this course will be using oF with Visual Studio 2019 on Windows, but most of the notes apply to all environments.

This is a work in progress. I’d appreciate any feedback you might have. Pull requests for fixes are welcome. :slight_smile:

openFramework Basics - Introductory Tutorial

Upon completion of this module, you should be able to:

  • Install openFrameworks for use with Visual Studio 2019.
  • Create new oF projects using the Project Generator.
  • Describe the purpose of the setup, update, and draw methods.
  • Resize the drawing canvas and query for the canvas height/width.
  • Draw 2D shapes to the canvas in a variety of colours.
  • Change how the background is cleared before each frame.
  • Translate, rotate, scale, save, and restore the coordinate system.
  • Display images to the canvas.
  • Respond to keyboard and mouse events.
  • Display text to the debugging console and to the canvas.

Introduction to C++

Upon completion of this module, you should be able to:

  • Describe the three-part C++ build process.
  • Use comments in your C++ code.
  • Store data in variables and constants.
  • Define and use reference variables.
  • Understand the purpose for, and limits of, the primitive data types.
  • Output variables to the console.
  • Fetch user input from the keyboard.
  • Perform math operations on numbers and numeric variables.
  • Code various conditional and looping structures.
  • Define and use your own functions.
  • Use header files to forward declare functions.
  • Understand C++ scoping rules.

There are also modules on:

6 Likes