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
added GetPos method to get text position
legacy
jeunathe
jnat
11 years ago
parent
b221629ae0
commit
3e4469007a
2 changed files
with
7 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
src/text.cpp
+1
-0
src/text.h
+ 6
- 0
src/text.cpp
View File
@@ -75,6 +75,12 @@ void Text::SetPos(vec3 pos)
data->pos = pos;
}
vec3 Text::GetPos()
{
return (vec3)data->pos;
}
void Text::SetAlign(int align)
{
data->align = align;
+ 1
- 0
src/text.h
View File
@@ -32,6 +32,7 @@ public:
void SetText(char const *text);
void SetInt(int val);
void SetPos(vec3 pos);
vec3 GetPos();
void SetAlign(int align);
enum
Write
Preview
Loading…
Cancel
Save