25 lines
403 B
C++
25 lines
403 B
C++
#include "..\Easy2D\easy2d.h"
|
|
#pragma comment(lib, "d2d1.lib")
|
|
|
|
|
|
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
|
|
{
|
|
EApp app;
|
|
|
|
if (app.init(L"Easy2D Demo", 640, 480))
|
|
{
|
|
auto scene = new EScene();
|
|
|
|
auto node = new ENode();
|
|
node->setPos(50, 80);
|
|
node->setSize(30, 180);
|
|
scene->add(node);
|
|
|
|
app.enterScene(scene);
|
|
|
|
app.run();
|
|
}
|
|
|
|
return 0;
|
|
}
|