]> git.sesse.net Git - nageru/blobdiff - futatabi/flow.h
Some clang-formatting of Futatabi.
[nageru] / futatabi / flow.h
index 08b25904356ab61265835e46cf219105c5ae88d2..760a5f31d58dd70b9f04ecbda70377db7e9ee689 100644 (file)
@@ -90,20 +90,24 @@ public:
        void render_to(const std::array<GLuint, num_elements> &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<GLuint, num_elements> &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: