diff options
author | chai <chaifix@163.com> | 2018-10-16 23:09:18 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-16 23:09:18 +0800 |
commit | 5534828032730762f8c1e4daf924b466fffb8be0 (patch) | |
tree | 1ae83fc877e4a2d136f6dd120260edd147b13e95 /src/libjin/Graphics/Font/Page.h | |
parent | 0fc4b3ad5f2ac8d5c0588f61c0cbed4349ee1430 (diff) |
*格式化代码
Diffstat (limited to 'src/libjin/Graphics/Font/Page.h')
-rw-r--r-- | src/libjin/Graphics/Font/Page.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/libjin/Graphics/Font/Page.h b/src/libjin/Graphics/Font/Page.h index 6e7cbdf..e1430e1 100644 --- a/src/libjin/Graphics/Font/Page.h +++ b/src/libjin/Graphics/Font/Page.h @@ -5,34 +5,34 @@ namespace jin { -namespace graphics -{ + namespace graphics + { - class Font; + class Font; - struct GlyphVertex - { - int x, y; // screen coordinates - float u, v; // texture uv - }; + struct GlyphVertex + { + int x, y; // screen coordinates + float u, v; // texture uv + }; - struct GlyphArrayDrawInfo - { - GLuint texture; // atlas - unsigned int start; // glyph vertex indecies - unsigned int count; // glyph vertex count - }; + struct GlyphArrayDrawInfo + { + GLuint texture; // atlas + unsigned int start; // glyph vertex indecies + unsigned int count; // glyph vertex count + }; - /* for reduce draw call */ - struct Page - { - Font* font; - std::vector<GlyphArrayDrawInfo> glyphinfolist; - std::vector<GlyphVertex> glyphvertices; - math::Vector2<int> size; - }; + /* for reduce draw call */ + struct Page + { + Font* font; + std::vector<GlyphArrayDrawInfo> glyphinfolist; + std::vector<GlyphVertex> glyphvertices; + math::Vector2<int> size; + }; -} + } } #endif
\ No newline at end of file |