Difference between revisions of "Intermediate C++ Game Programming Tutorial 16"

From Chilipedia
Jump to: navigation, search
(Video Timestamp Index)
Line 15: Line 15:
 
* [http://www.planetchili.net/downloads/I16-HW.zip Source.cpp (homework file)]
 
* [http://www.planetchili.net/downloads/I16-HW.zip Source.cpp (homework file)]
 
* [https://github.com/planetchili/sprite Sprite Repo (for bonus problem)]
 
* [https://github.com/planetchili/sprite Sprite Repo (for bonus problem)]
 +
 +
== Related Series ==
 +
For an in-depth look into the <algorithm> library and beyond, check out [[STD Gems]].
  
 
== Links ==
 
== Links ==

Revision as of 00:17, 14 November 2018

In the video we take a look at a couple of bangers from <algorithm>, and we learn what lambda functions are and how to use them.

Topics Covered

  • Algorithms std::sort and std::remove_if
  • Concepts (as in, type concepts like Comparable)
  • <functional> functors as predicates
  • Lambda functions

Video Timestamp Index

Tutorial 16

Homework

Solve the problems in Source.cpp attached below using the <algorithm> library and other parts of the standard library as extensively as possible. As a bonus problem, implement the sprite drawing effect shown at the end of the video using a lambda function.

Related Series

For an in-depth look into the <algorithm> library and beyond, check out STD Gems.

Links

Algorithms Library

See also