MiniEngine/App.cpp

25 lines
537 B
C++
Raw Normal View History

2017-01-03 23:32:35 +08:00
#include "App.h"
2017-01-04 09:50:16 +08:00
using namespace Engine;
using namespace MiniEngine;
2017-01-04 09:50:16 +08:00
2017-01-03 23:32:35 +08:00
namespace App
{
/// Application Main Method
void Main()
{
2017-01-04 09:50:16 +08:00
Window wnd(1024,768);
Renderer rnd=wnd.getRenderer();
/*
/// Sample Code of Brush
Brush b(wnd,Rect(wnd.getSize().w/2-50,wnd.getSize().h/2-50,100,100));
Texture t=rnd.loadImage("D:\\sample.png");
Rect dst(0,0,wnd.getSize().w,wnd.getSize().h);
b.copyTo(t,dst,false);
rnd.update();
SDL_Delay(2000);
*/
2017-01-03 23:32:35 +08:00
}
}