26 lines
515 B
C++
26 lines
515 B
C++
//
|
|
// Created by Atdunbg on 2026/3/23.
|
|
//
|
|
#include "Prism.h"
|
|
#include "PrismRuntime.h"
|
|
#include "Prism/Core/EntryPoint.h"
|
|
|
|
class PrismRuntimeApp : public Prism::Application
|
|
{
|
|
public:
|
|
explicit PrismRuntimeApp(const Prism::ApplicationProps& props)
|
|
: Application(props)
|
|
{
|
|
}
|
|
|
|
virtual void OnInit() override
|
|
{
|
|
PushLayer(new PrismRuntime());
|
|
}
|
|
};
|
|
|
|
Prism::Application* Prism::CreateApplication(const CommandArgs args)
|
|
{
|
|
return new PrismRuntimeApp({"Game", 1920, 1080, args});
|
|
}
|