This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Implement naive bold font printing.
legacy
Sam Hocevar
sam
14 years ago
parent
fa25646f80
commit
372d18bde6
2 changed files
with
8 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-0
src/font.cpp
+1
-0
src/font.h
+ 7
- 0
src/font.cpp
View File
@@ -118,3 +118,10 @@ void Font::Print(int x, int y, char const *str)
glEnd();
}
void Font::PrintBold(int x, int y, char const *str)
{
Print(x, y, str);
Print(x + 1, y, str);
Print(x, y + 1, str);
}
+ 1
- 0
src/font.h
View File
@@ -31,6 +31,7 @@ public:
char const *GetName();
void Print(int x, int y, char const *str);
void PrintBold(int x, int y, char const *str);
private:
FontData *data;
Write
Preview
Loading…
Cancel
Save