Created
March 25, 2014 21:39
-
-
Save jherico/9771959 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <typename Function> | |
void for_each_eye(Function f){ | |
for (Eye eye = LEFT; eye <= RIGHT; eye = static_cast<Eye>(eye + 1)) { | |
f(eye); | |
} | |
} | |
... | |
for_each_eye([&](Eye eye){ | |
eyeArgs[eye].lookupTexture = | |
helper.createLookupTexture(glm::uvec2(512, 512), eye); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment