mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 14:40:05 +00:00 
			
		
		
		
	Shader program cleanup
This commit is contained in:
		
							parent
							
								
									7a07e0f698
								
							
						
					
					
						commit
						8d2fcf3802
					
				
					 2 changed files with 14 additions and 16 deletions
				
			
		|  | @ -16,15 +16,13 @@ namespace qt | |||
| namespace gl | ||||
| { | ||||
| 
 | ||||
| class ShaderProgramImpl; | ||||
| 
 | ||||
| class ShaderProgram | ||||
| { | ||||
| public: | ||||
|    explicit ShaderProgram(OpenGLFunctions& gl); | ||||
|    virtual ~ShaderProgram(); | ||||
| 
 | ||||
|    ShaderProgram(const ShaderProgram&) = delete; | ||||
|    ShaderProgram(const ShaderProgram&)            = delete; | ||||
|    ShaderProgram& operator=(const ShaderProgram&) = delete; | ||||
| 
 | ||||
|    ShaderProgram(ShaderProgram&&) noexcept; | ||||
|  | @ -37,7 +35,9 @@ public: | |||
|    void Use() const; | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<ShaderProgramImpl> p; | ||||
|    class Impl; | ||||
| 
 | ||||
|    std::unique_ptr<Impl> p; | ||||
| }; | ||||
| 
 | ||||
| } // namespace gl
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat