mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:30: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
				
			
		
							
								
								
									
										39
									
								
								scwx-qt/source/scwx/qt/util/font_buffer.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								scwx-qt/source/scwx/qt/util/font_buffer.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,39 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <scwx/qt/util/gl.hpp> | ||||
| 
 | ||||
| #include <memory> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace qt | ||||
| { | ||||
| namespace util | ||||
| { | ||||
| 
 | ||||
| class FontBufferImpl; | ||||
| 
 | ||||
| class FontBuffer | ||||
| { | ||||
| public: | ||||
|    explicit FontBuffer(); | ||||
|    ~FontBuffer(); | ||||
| 
 | ||||
|    FontBuffer(const FontBuffer&) = delete; | ||||
|    FontBuffer& operator=(const FontBuffer&) = delete; | ||||
| 
 | ||||
|    FontBuffer(FontBuffer&&) = delete; | ||||
|    FontBuffer& operator=(FontBuffer&&) = delete; | ||||
| 
 | ||||
|    void Clear(); | ||||
|    void Push(std::initializer_list<GLuint>  indices, | ||||
|              std::initializer_list<GLfloat> vertices); | ||||
|    void Render(OpenGLFunctions& gl); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<FontBufferImpl> p; | ||||
| }; | ||||
| 
 | ||||
| } // namespace util
 | ||||
| } // namespace qt
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat