Constify
This commit is contained in:
		
							parent
							
								
									afab51279e
								
							
						
					
					
						commit
						6e176a454c
					
				
					 2 changed files with 8 additions and 6 deletions
				
			
		| 
						 | 
					@ -169,15 +169,15 @@ public:
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	void requestViewportRender(Vec4 &c, Vec4 &f, Vec4 &t)
 | 
						void requestViewportRender(const Vec4 &c, const Vec4 &f, const Vec4 &t)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		const IntRect &viewpRect = glState.scissorBox.get();
 | 
							const IntRect &viewpRect = glState.scissorBox.get();
 | 
				
			||||||
		const IntRect &screenRect = geometry.rect;
 | 
							const IntRect &screenRect = geometry.rect;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		bool toneRGBEffect  = t.xyzHasEffect();
 | 
							const bool toneRGBEffect  = t.xyzHasEffect();
 | 
				
			||||||
		bool toneGrayEffect = t.w != 0;
 | 
							const bool toneGrayEffect = t.w != 0;
 | 
				
			||||||
		bool colorEffect    = c.w > 0;
 | 
							const bool colorEffect    = c.w > 0;
 | 
				
			||||||
		bool flashEffect    = f.w > 0;
 | 
							const bool flashEffect    = f.w > 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (toneGrayEffect)
 | 
							if (toneGrayEffect)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -55,7 +55,9 @@ public:
 | 
				
			||||||
	virtual ~Scene();
 | 
						virtual ~Scene();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	virtual void composite();
 | 
						virtual void composite();
 | 
				
			||||||
	virtual void requestViewportRender(Vec4& /*color*/, Vec4& /*flash*/, Vec4& /*tone*/) {}
 | 
						virtual void requestViewportRender(const Vec4& /* color */,
 | 
				
			||||||
 | 
						                                   const Vec4& /* flash */,
 | 
				
			||||||
 | 
						                                   const Vec4& /* tone */) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const Geometry &getGeometry() const { return geometry; }
 | 
						const Geometry &getGeometry() const { return geometry; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue