mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:30:06 +00:00 
			
		
		
		
	Add GlContext base class for MapContext
This commit is contained in:
		
							parent
							
								
									a45e996872
								
							
						
					
					
						commit
						d84a618d3d
					
				
					 7 changed files with 115 additions and 57 deletions
				
			
		|  | @ -19,7 +19,7 @@ static const auto        logger_    = scwx::util::Logger::Create(logPrefix_); | |||
| class TextShaderImpl | ||||
| { | ||||
| public: | ||||
|    explicit TextShaderImpl(std::shared_ptr<map::MapContext> context) : | ||||
|    explicit TextShaderImpl(std::shared_ptr<GlContext> context) : | ||||
|        context_ {context}, | ||||
|        shaderProgram_ {nullptr}, | ||||
|        projectionLocation_(GL_INVALID_INDEX) | ||||
|  | @ -28,13 +28,13 @@ public: | |||
| 
 | ||||
|    ~TextShaderImpl() {} | ||||
| 
 | ||||
|    std::shared_ptr<map::MapContext> context_; | ||||
|    std::shared_ptr<ShaderProgram>   shaderProgram_; | ||||
|    std::shared_ptr<GlContext>     context_; | ||||
|    std::shared_ptr<ShaderProgram> shaderProgram_; | ||||
| 
 | ||||
|    GLint projectionLocation_; | ||||
| }; | ||||
| 
 | ||||
| TextShader::TextShader(std::shared_ptr<map::MapContext> context) : | ||||
| TextShader::TextShader(std::shared_ptr<GlContext> context) : | ||||
|     p(std::make_unique<TextShaderImpl>(context)) | ||||
| { | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat