mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	Draw a radial. This needs some cleanup, and some MVP matrix tweaking.
This commit is contained in:
		
							parent
							
								
									ace3aeb460
								
							
						
					
					
						commit
						516983ab09
					
				
					 10 changed files with 506 additions and 4 deletions
				
			
		
							
								
								
									
										42
									
								
								scwx-qt/source/scwx/qt/util/shader_program.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								scwx-qt/source/scwx/qt/util/shader_program.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,42 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #ifdef _WIN32 | ||||
| #include <Windows.h> | ||||
| #endif | ||||
| 
 | ||||
| #include <memory> | ||||
| #include <string> | ||||
| 
 | ||||
| #include <GL/gl.h> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace qt | ||||
| { | ||||
| 
 | ||||
| class ShaderProgramImpl; | ||||
| 
 | ||||
| class ShaderProgram | ||||
| { | ||||
| public: | ||||
|    explicit ShaderProgram(); | ||||
|    ~ShaderProgram(); | ||||
| 
 | ||||
|    ShaderProgram(const ShaderProgram&) = delete; | ||||
|    ShaderProgram& operator=(const ShaderProgram&) = delete; | ||||
| 
 | ||||
|    ShaderProgram(ShaderProgram&&) noexcept; | ||||
|    ShaderProgram& operator=(ShaderProgram&&) noexcept; | ||||
| 
 | ||||
|    GLuint id() const; | ||||
| 
 | ||||
|    bool Load(const std::string& vertexPath, const std::string& fragmentPath); | ||||
| 
 | ||||
|    void Use() const; | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<ShaderProgramImpl> p; | ||||
| }; | ||||
| 
 | ||||
| } // namespace qt
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat