Created
November 22, 2012 03:57
-
-
Save cjameshuff/4129379 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
static inline fstring operator%(const fstring & lhs, float4 rhs) { | |
std::string fs = lhs.next_fmt("f"); | |
fs = (fstring("(%s, %s, %s, %s)")% fs % fs % fs % fs).str(); | |
return lhs.append((fstring(fs)% rhs.x % rhs.y % rhs.z % rhs.w).str()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment