Skip to content

Instantly share code, notes, and snippets.

@cjameshuff
Created November 22, 2012 03:57
Show Gist options
  • Save cjameshuff/4129379 to your computer and use it in GitHub Desktop.
Save cjameshuff/4129379 to your computer and use it in GitHub Desktop.
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