mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:30:05 +00:00 
			
		
		
		
	Scalable fonts using freetype-gl
This commit is contained in:
		
							parent
							
								
									ec8e2643ff
								
							
						
					
					
						commit
						289ed430c7
					
				
					 8 changed files with 400 additions and 181 deletions
				
			
		|  | @ -30,15 +30,15 @@ public: | |||
|    TextShader& operator=(TextShader&&) noexcept; | ||||
| 
 | ||||
|    bool Initialize(); | ||||
|    void RenderText(const std::string&                           text, | ||||
|                    float                                        x, | ||||
|                    float                                        y, | ||||
|                    float                                        scale, | ||||
|                    const glm::mat4&                             projection, | ||||
|                    const boost::gil::rgba8_pixel_t&             color, | ||||
|                    const std::unordered_map<char, util::Glyph>& glyphs); | ||||
|    void RenderText(const std::string&               text, | ||||
|                    float                            x, | ||||
|                    float                            y, | ||||
|                    float                            scale, | ||||
|                    const glm::mat4&                 projection, | ||||
|                    const boost::gil::rgba8_pixel_t& color, | ||||
|                    std::shared_ptr<util::Font>      font, | ||||
|                    GLuint                           textureId); | ||||
|    void SetProjection(const glm::mat4& projection); | ||||
|    void SetTextColor(const boost::gil::rgba8_pixel_t color); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<TextShaderImpl> p; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat