X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fflow.h;h=760a5f31d58dd70b9f04ecbda70377db7e9ee689;hb=02ea864dc5a6dde7450c497581ff18d784ab832c;hp=08b25904356ab61265835e46cf219105c5ae88d2;hpb=eeda8995329601f9f4e35047358400833eeae68e;p=nageru diff --git a/futatabi/flow.h b/futatabi/flow.h index 08b2590..760a5f3 100644 --- a/futatabi/flow.h +++ b/futatabi/flow.h @@ -90,20 +90,24 @@ public: void render_to(const std::array &textures); // Convenience wrappers. - void render_to(GLuint texture0) { - render_to({{texture0}}); + void render_to(GLuint texture0) + { + render_to({ { texture0 } }); } - void render_to(GLuint texture0, GLuint texture1) { - render_to({{texture0, texture1}}); + void render_to(GLuint texture0, GLuint texture1) + { + render_to({ { texture0, texture1 } }); } - void render_to(GLuint texture0, GLuint texture1, GLuint texture2) { - render_to({{texture0, texture1, texture2}}); + void render_to(GLuint texture0, GLuint texture1, GLuint texture2) + { + render_to({ { texture0, texture1, texture2 } }); } - void render_to(GLuint texture0, GLuint texture1, GLuint texture2, GLuint texture3) { - render_to({{texture0, texture1, texture2, texture3}}); + void render_to(GLuint texture0, GLuint texture1, GLuint texture2, GLuint texture3) + { + render_to({ { texture0, texture1, texture2, texture3 } }); } private: @@ -118,20 +122,24 @@ public: void render_to(GLuint depth_rb, const std::array &textures); // Convenience wrappers. - void render_to(GLuint depth_rb, GLuint texture0) { - render_to(depth_rb, {{texture0}}); + void render_to(GLuint depth_rb, GLuint texture0) + { + render_to(depth_rb, { { texture0 } }); } - void render_to(GLuint depth_rb, GLuint texture0, GLuint texture1) { - render_to(depth_rb, {{texture0, texture1}}); + void render_to(GLuint depth_rb, GLuint texture0, GLuint texture1) + { + render_to(depth_rb, { { texture0, texture1 } }); } - void render_to(GLuint depth_rb, GLuint texture0, GLuint texture1, GLuint texture2) { - render_to(depth_rb, {{texture0, texture1, texture2}}); + void render_to(GLuint depth_rb, GLuint texture0, GLuint texture1, GLuint texture2) + { + render_to(depth_rb, { { texture0, texture1, texture2 } }); } - void render_to(GLuint depth_rb, GLuint texture0, GLuint texture1, GLuint texture2, GLuint texture3) { - render_to(depth_rb, {{texture0, texture1, texture2, texture3}}); + void render_to(GLuint depth_rb, GLuint texture0, GLuint texture1, GLuint texture2, GLuint texture3) + { + render_to(depth_rb, { { texture0, texture1, texture2, texture3 } }); } private: