mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 05:20:06 +00:00 
			
		
		
		
	Extracting FontBuffer logic from Font
This commit is contained in:
		
							parent
							
								
									f21523d88b
								
							
						
					
					
						commit
						ee0f3b35bf
					
				
					 6 changed files with 232 additions and 177 deletions
				
			
		|  | @ -1,12 +1,12 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <scwx/qt/util/font_buffer.hpp> | ||||
| #include <scwx/qt/util/gl.hpp> | ||||
| 
 | ||||
| #include <memory> | ||||
| #include <string> | ||||
| 
 | ||||
| #include <boost/gil.hpp> | ||||
| #include <glm/glm.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
|  | @ -15,8 +15,6 @@ namespace qt | |||
| namespace util | ||||
| { | ||||
| 
 | ||||
| class FontBuffer; | ||||
| 
 | ||||
| class FontImpl; | ||||
| 
 | ||||
| class Font | ||||
|  | @ -44,11 +42,6 @@ public: | |||
| 
 | ||||
|    static std::shared_ptr<Font> Create(const std::string& resource); | ||||
| 
 | ||||
|    static std::shared_ptr<FontBuffer> CreateBuffer(); | ||||
|    static void ClearBuffer(std::shared_ptr<FontBuffer> buffer); | ||||
|    static void RenderBuffer(OpenGLFunctions&            gl, | ||||
|                             std::shared_ptr<FontBuffer> buffer); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<FontImpl> p; | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat