: 18.11.2012
.
, .
, . . .
, , . , , .
, , , . , , .
. . , .
. .
, ... , :
1) ;
2) 0 ;
3) ;
4) .
, TimerPanel
class TimePanel
{
//
CStaticText* text;
public:
TimePanel ();
~TimePanel();
//
void reset();
//
time_t getTime() const;
//
void setTime(time_t st);
//
bool render();
private:
//
time_t time_st;
};
time.
TimePanel::TimePanel()
{
//
text = new CStaticText(L"Time",L"Data/panel.png",208,57,CPoint(+128,-280));
//
time(&time_st);
}
//
time_t TimePanel::getTime() const
{
time_t ctTime;
//
time(&ctTime);
ctTime = ctTime - time_st;
return ctTime;
}
//
void TimePanel::setTime(time_t st)
{
time_t ctTime;
//
time(&ctTime);
time_st = ctTime - st;
}
TimePanel::~TimePanel()
{
if( text )
{
delete text;
}
}
//
void TimePanel::reset()
{
//
time(&time_st);
}
bool TimePanel::render()
{
if( text )
{
struct tm *pTime;
time_t ctTime;
//
time(&ctTime);
ctTime = ctTime - time_st;
//
//pTime = localtime( &ctTime );
// , ,
pTime = gmtime(&ctTime );
if (!pTime) return false;
// 2 0
std::ostringstream stime;
stime << std::setw(2) << std::setfill('0') << pTime->tm_hour
<< ":" << std::setw(2) << std::setfill('0') << pTime->tm_min
<< ":" << std::setw(2) << std::setfill('0') << pTime->tm_sec
<< std::endl;
text->SetText(stime.str());
//
text->Draw();
}
return true;
}
,
#include <time.h>
,
time_t ctTime;
//
time(&ctTime);
0, . .
, tm, .
gmtime GMT ( ).
. , .
C , .
-, godot,
|
||||||||||
: dress - hordes 1 4
|
||||||||||
,
|
||||||||||
,
|
||||||||||
, , 2020 - ,
|
||||||||||
, , , .
|
||||||||||
|
||||||||||
|
||||||||||
|
||||||||||
|
||||||||||
|
||||||||||
(3), (1)
|
||||||||||
|
||||||||||
|
||||||||||
|
||||||||||
(3), (1)
|
||||||||||
|
||||||||||
,
|
||||||||||
|
||||||||||
|
||||||||||
,
|
||||||||||
,
|
||||||||||
,
|
||||||||||
, ,
|
||||||||||
, ,
|
||||||||||
, , cms,
|
||||||||||
,
|
||||||||||
, , ria xxl , fly snow 3d , . -
|
||||||||||
fle game engine -
|
||||||||||
- / megainformatic cms express files -
|
||||||||||
Flash, Flash - .
|
||||||||||
(multi lang), , . - (megainformatic cms social), megainformatic cms groupon, keywords gen + , .
megainformatic.ru/webjob/ - - |
||||||||||
megainformatic.ru/webjob/ - - |
||||||||||
,
megainformatic cms admin - |
||||||||||
|
||||||||||
|
||||||||||
megainformatic cms free - Photoshop
, Adobe Photoshop. , - GIMP, Corel Photo Paint .
|
||||||||||
2d 3d, , !
. , , !!! ( , ! ). |
||||||||||
, : -
- , , , . - - : - |
||||||||||
, 3ds max, photoshop, c++, directx, delphi php.
, . . |
||||||||||
Photoshop free, delphi directx - , !, mp3 - , megainformatic cms express - php + my sql. |
||||||||||
,
, delphi directx 8.1 ( 3d ), 3d studio max, - Fruity Loops Studio |
||||||||||
|