#include"CoreEngine.h"
#include"StandardWindow.h"
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
StandardWindow window("Repulsive Engine");
window.SetIcon(R"(logo.ico)");
CoreEngine engine(window);
auto sprite = engine.CreateSprite(Image("icon-image.png"));
sprite.SetPosition(DirectX::XMVectorSet(window.GetWidth() / 2, window.GetHeight() / 2, 0.0f, 1.0f));
while (window.IsOpen())
{
engine.ClearFrame();
sprite.Draw(engine);
engine.RenderFrame();
Window::DispatchWindowEventsNonBlocking();
}
return 0;
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Pikselas/Repulsive-Engine
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published