информация об одном символе
| 38 | |
| 39 | // информация об одном символе |
| 40 | struct GlyphInfo |
| 41 | { |
| 42 | GlyphInfo( |
| 43 | Char _codePoint = 0U, |
| 44 | float _width = 0.0f, |
| 45 | float _height = 0.0f, |
| 46 | float _advance = 0.0f, |
| 47 | float _bearingX = 0.0f, |
| 48 | float _bearingY = 0.0f, |
| 49 | const FloatRect& _uvRect = FloatRect()) : |
| 50 | codePoint(_codePoint), |
| 51 | width(_width), |
| 52 | height(_height), |
| 53 | advance(_advance), |
| 54 | bearingX(_bearingX), |
| 55 | bearingY(_bearingY), |
| 56 | uvRect(_uvRect) |
| 57 | { |
| 58 | } |
| 59 | |
| 60 | Char codePoint; |
| 61 | float width; |
| 62 | float height; |
| 63 | float advance; |
| 64 | float bearingX; |
| 65 | float bearingY; |
| 66 | FloatRect uvRect; |
| 67 | }; |
| 68 | |
| 69 | using VectorGlyphInfo = std::vector<GlyphInfo>; |
| 70 |
no outgoing calls
no test coverage detected