30 lines
490 B
C++
30 lines
490 B
C++
//
|
|
// Created by sfd on 25-11-15.
|
|
//
|
|
|
|
|
|
#include "EditorLayer.h"
|
|
#include "Prism.h"
|
|
#include "Prism/Core/EntryPoint.h"
|
|
|
|
|
|
class Editor : public Prism::Application
|
|
{
|
|
public:
|
|
Editor(const Prism::ApplicationProps& props)
|
|
: Application(props)
|
|
{
|
|
}
|
|
|
|
virtual void OnInit() override
|
|
{
|
|
PushLayer(new Prism::EditorLayer());
|
|
}
|
|
};
|
|
|
|
|
|
Prism::Application* Prism::CreateApplication(const CommandArgs args)
|
|
{
|
|
return new Editor({"hello world", 1920, 1080, args});
|
|
}
|