2020-03-05 11:43:38 +01:00
|
|
|
#include "Graphics/RenderCore.h"
|
2020-09-19 14:36:50 +02:00
|
|
|
#include "Graphics/SceneView.h"
|
2020-06-02 11:46:18 +02:00
|
|
|
#include "Asset/AssetRegistry.h"
|
2020-03-05 11:43:38 +01:00
|
|
|
using namespace Seele;
|
|
|
|
|
int main()
|
2020-02-05 20:58:58 +01:00
|
|
|
{
|
2020-03-05 11:43:38 +01:00
|
|
|
RenderCore core;
|
|
|
|
|
core.init();
|
2020-09-19 14:36:50 +02:00
|
|
|
WindowCreateInfo mainWindowInfo;
|
|
|
|
|
mainWindowInfo.title = "SeeleEngine";
|
|
|
|
|
mainWindowInfo.width = 1280;
|
|
|
|
|
mainWindowInfo.height = 720;
|
|
|
|
|
mainWindowInfo.bFullscreen = false;
|
|
|
|
|
mainWindowInfo.numSamples = 1;
|
2020-10-03 11:00:10 +02:00
|
|
|
mainWindowInfo.pixelFormat = Gfx::SE_FORMAT_B8G8R8A8_UNORM;
|
2020-09-19 14:36:50 +02:00
|
|
|
auto window = core.getWindowManager()->addWindow(mainWindowInfo);
|
|
|
|
|
ViewportCreateInfo sceneViewInfo;
|
|
|
|
|
sceneViewInfo.sizeX = 1280;
|
|
|
|
|
sceneViewInfo.sizeY = 720;
|
|
|
|
|
sceneViewInfo.offsetX = 0;
|
|
|
|
|
sceneViewInfo.offsetY = 0;
|
|
|
|
|
PSceneView sceneView = new SceneView(core.getWindowManager()->getGraphics(), window, sceneViewInfo);
|
|
|
|
|
window->addView(sceneView);
|
2020-10-29 02:22:01 +01:00
|
|
|
sceneView->setFocused();
|
2020-06-08 01:44:47 +02:00
|
|
|
AssetRegistry::init("D:\\Private\\Programming\\C++\\TestSeeleProject");
|
|
|
|
|
AssetRegistry::importFile("D:\\Private\\Programming\\Unreal Engine\\Assets\\Arissa\\Arissa.fbx");
|
2020-09-19 14:36:50 +02:00
|
|
|
PPrimitiveComponent arissa = new PrimitiveComponent(AssetRegistry::findMesh("Arissa"));
|
2020-10-30 18:45:35 +01:00
|
|
|
arissa->addWorldTranslation(Vector(0, 0, 100));
|
2020-09-19 14:36:50 +02:00
|
|
|
sceneView->getScene()->addPrimitiveComponent(arissa);
|
2020-03-05 11:43:38 +01:00
|
|
|
core.renderLoop();
|
|
|
|
|
core.shutdown();
|
|
|
|
|
return 0;
|
2020-02-05 20:58:58 +01:00
|
|
|
}
|