]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.cpp
Style update: add spaces around assignment operators
[libs/gl.git] / source / pipeline.cpp
index 97c452658153acb8c7561652ee22dcc0fc928961..54ef25a10bca8e59a123eb96322123e393595640 100644 (file)
@@ -49,14 +49,14 @@ PipelinePass &Pipeline::add_pass(const Tag &tag)
        if(passes.count(tag))
                throw KeyError("Pass already exists");
 
-       PipelinePass &pass=passes[tag];
+       PipelinePass &pass = passes[tag];
        pass_order.push_back(tag);
        return pass;
 }
 
 PipelinePass &Pipeline::get_pass(const Tag &tag)
 {
-       PassMap::iterator i=passes.find(tag);
+       PassMap::iterator i = passes.find(tag);
        if(i==passes.end())
                throw KeyError("Unknown pass");
        return i->second;
@@ -64,7 +64,7 @@ PipelinePass &Pipeline::get_pass(const Tag &tag)
 
 const PipelinePass &Pipeline::get_pass(const Tag &tag) const
 {
-       PassMap::const_iterator i=passes.find(tag);
+       PassMap::const_iterator i = passes.find(tag);
        if(i==passes.end())
                throw KeyError("Unknown pass");
        return i->second;
@@ -85,14 +85,14 @@ void Pipeline::add_postprocessor(PostProcessor &pp)
        postproc.push_back(&pp);
        if(!fbo)
        {
-               fbo=new Framebuffer;
-               color_buf=new Texture2D;
+               fbo = new Framebuffer;
+               color_buf = new Texture2D;
                color_buf->set_min_filter(NEAREST);
                color_buf->set_mag_filter(NEAREST);
                color_buf->storage((hdr ? RGB16F : RGB), width, height, 0);
                color_buf->image(0, RGB, UNSIGNED_BYTE, 0);
                fbo->attach(COLOR_ATTACHMENT0, *color_buf, 0);
-               depth_buf=new Renderbuffer;
+               depth_buf = new Renderbuffer;
                depth_buf->storage(DEPTH_COMPONENT, width, height);
                fbo->attach(DEPTH_ATTACHMENT, *depth_buf);
                Framebuffer::unbind();
@@ -101,7 +101,7 @@ void Pipeline::add_postprocessor(PostProcessor &pp)
 
 void Pipeline::render(const Tag &tag) const
 {
-       const PipelinePass &pass=get_pass(tag);
+       const PipelinePass &pass = get_pass(tag);
 
        Bind bind_depth_test(pass.depth_test);
        Bind bind_blend(pass.blend);