(01-21-2011 11:06 PM)Esenthel Wrote: D.text (tds, 0, 0,"Привет мир !");
If so that is absolutely not visible the text (
/******************************************************************************/
#include "stdafx.h" // include precompiled header
#include "resource.h" // include resources (icon)
#include "kosti.h"
TextDS tds;
/******************************************************************************/
void InitPre() // init before engine inits
{
App.name("Mesh");
Paks.add("../Data/engine.pak");
D.full(true);
}
/******************************************************************************/
Bool Init() // init after engine inits
{
tds.font=Fonts("../Data/Gui/font.font");
return true;
}
/******************************************************************************/
void Shut() // shut at exit
{
}
/******************************************************************************/
Bool Update() // main updating
{
if(Kb.bp(KB_ENTER))State_Kosti.set(2.0);
if(Kb.bp(KB_ESC))return false; // exit if escape on the keyboard pressed
return true; // continue
}
/******************************************************************************/
void Draw() // main drawing
{
D.clear(TURQ); // clear screen to turquoise color
D.text (tds,0, 0,"Привет мир"); // draw text at (0, 0.1) position
}
/******************************************************************************/