GuiPC guiPC;
Text text;
void InitPre()
{
DataPath("../../../Data");
Paks.add("engine.pak");
}
bool Init()
{
//guiPC.clip = D.viewRect();
guiPC.clip = Rect(-1, -1, 1, 1);
text.create("Hello World!");
text.tds->color = WHITE;
return true;
}
bool Update()
{
if (Kb.bp(KB_ESC)) return false;
return true;
}
void Draw()
{
D.clear(TURQ);
D.rect(BLACK, D.viewRect());
D.text(Rect(-1, 0, 1, 1), S + "D.rect(BLACK, D.viewRect());\n\nD.viewRect() => " + D.viewRect().asText());
D.text(0, -0.5f, S + "guiPC.clip => " + guiPC.clip.asText());
text.draw(guiPC);
}
void Shut() {}