Skip to content

Commit 479264b

Browse files
committed
icons
1 parent 9957dc7 commit 479264b

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

sources/simple/texts.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,18 @@ int main(int argc, char *args[])
162162
t.orientation = Quat(Degs(-90), Degs(), Degs());
163163
}
164164
}
165+
{ // icon (czech)
166+
Entity *e = ents->createAnonymous();
167+
e->value<TransformComponent>().position = Vec3(-10, 4, 0);
168+
e->value<TransformComponent>().orientation = Quat(Degs(), Degs(90), Degs());
169+
e->value<IconComponent>().icon = HashString("cage-tests/texts/czech.png");
170+
}
171+
{ // icon (english)
172+
Entity *e = ents->createAnonymous();
173+
e->value<TransformComponent>().position = Vec3(10, 4, 0);
174+
e->value<TransformComponent>().orientation = Quat(Degs(), Degs(-90), Degs());
175+
e->value<IconComponent>().icon = HashString("cage-tests/texts/english.png");
176+
}
165177

166178
Holder<FpsCamera> cameraCtrl = newFpsCamera(ents->get(3));
167179
cameraCtrl->mouseButton = MouseButtonsFlags::Left;

0 commit comments

Comments
 (0)