From: Mikko Rasa Date: Sun, 9 Feb 2020 22:06:54 +0000 (+0200) Subject: Cosmetic fixes X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=0a2ce396dc1eeba1963798691c4a988467d2c6bd;p=libs%2Fgl.git Cosmetic fixes --- diff --git a/source/environmentmap.cpp b/source/environmentmap.cpp index bf2a6359..efd13709 100644 --- a/source/environmentmap.cpp +++ b/source/environmentmap.cpp @@ -31,7 +31,6 @@ EnvironmentMap::EnvironmentMap(unsigned s, Renderable &r, Renderable &e): camera.set_field_of_view(Geometry::Angle::right()); camera.set_aspect_ratio(1); camera.set_depth_clip(0.1, 100); - } void EnvironmentMap::set_depth_clip(float n, float f) diff --git a/source/lighting.h b/source/lighting.h index 572b2c89..ca214fc8 100644 --- a/source/lighting.h +++ b/source/lighting.h @@ -3,7 +3,6 @@ #include #include -#include "bindable.h" #include "color.h" #include "gl.h" #include "programdata.h" diff --git a/source/material.h b/source/material.h index 17ea8839..ead11618 100644 --- a/source/material.h +++ b/source/material.h @@ -2,7 +2,6 @@ #define MSP_GL_MATERIAL_H_ #include -#include "bindable.h" #include "color.h" #include "programdata.h" @@ -12,7 +11,7 @@ namespace GL { /** Stores basic material properties. This includes color and reflection parameters, but does not include texturing. Materials interact with light -soucres and ambient lighting to produce the base color of a surface. Textures +sources and ambient lighting to produce the base color of a surface. Textures can be used to add detail. Material provides a set of uniform variables for use with shaders. diff --git a/source/pipeline.cpp b/source/pipeline.cpp index 02ccc22e..26073549 100644 --- a/source/pipeline.cpp +++ b/source/pipeline.cpp @@ -57,7 +57,7 @@ void Pipeline::set_hdr(bool h) if(h==hdr) return; - bool old_hdr= hdr; + bool old_hdr = hdr; hdr = h; try { diff --git a/source/renderpass.h b/source/renderpass.h index 3b3b54b8..76c74720 100644 --- a/source/renderpass.h +++ b/source/renderpass.h @@ -3,7 +3,6 @@ #include #include -#include "bindable.h" namespace Msp { namespace GL { diff --git a/source/texunit.h b/source/texunit.h index f3f95e7e..6bd2f82d 100644 --- a/source/texunit.h +++ b/source/texunit.h @@ -11,7 +11,7 @@ class TexGen; class Texture; /** -Keeps track of texture unit related state. Mostly for internal use. +Keeps track of texture unit related state. Intended for internal use. */ class TexUnit {