Adding Editor executable
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
target_sources(Engine
|
||||
PRIVATE
|
||||
PUBLIC
|
||||
Asset.h
|
||||
Asset.cpp
|
||||
AssetRegistry.h
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
target_sources(Engine
|
||||
PRIVATE
|
||||
PUBLIC
|
||||
EngineTypes.h
|
||||
MinimalEngine.h
|
||||
MinimalEngine.cpp
|
||||
main.cpp)
|
||||
MinimalEngine.cpp)
|
||||
|
||||
add_subdirectory(Asset/)
|
||||
add_subdirectory(Containers/)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
target_sources(Engine
|
||||
PRIVATE
|
||||
PUBLIC
|
||||
Array.h
|
||||
Map.h
|
||||
List.h)
|
||||
@@ -1,5 +1,5 @@
|
||||
target_sources(Engine
|
||||
PRIVATE
|
||||
PUBLIC
|
||||
GraphicsResources.h
|
||||
GraphicsResources.cpp
|
||||
GraphicsInitializer.h
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
target_sources(Engine
|
||||
PRIVATE
|
||||
PUBLIC
|
||||
BasePass.h
|
||||
BasePass.cpp
|
||||
DepthPrepass.h
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
target_sources(Engine
|
||||
PRIVATE
|
||||
PUBLIC
|
||||
NsightAftermathGpuCrashTracker.h
|
||||
NsightAftermathGpuCrashTracker.cpp
|
||||
NsightAftermathHelpers.h
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
target_sources(Engine
|
||||
PRIVATE
|
||||
PUBLIC
|
||||
BRDF.h
|
||||
BRDF.cpp
|
||||
MaterialAsset.h
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
target_sources(Engine
|
||||
PRIVATE
|
||||
PUBLIC
|
||||
Math.h
|
||||
Matrix.h
|
||||
Vector.h
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
target_sources(Engine
|
||||
PRIVATE
|
||||
PUBLIC
|
||||
Actor.cpp
|
||||
Actor.h
|
||||
CameraActor.cpp
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
target_sources(Engine
|
||||
PRIVATE
|
||||
PUBLIC
|
||||
Util.h
|
||||
Scene.cpp
|
||||
Scene.h)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
target_sources(Engine
|
||||
PRIVATE
|
||||
PUBLIC
|
||||
CameraComponent.h
|
||||
CameraComponent.cpp
|
||||
Component.h
|
||||
@@ -9,5 +9,4 @@ target_sources(Engine
|
||||
MyOtherComponent.h
|
||||
MyOtherComponent.cpp
|
||||
PrimitiveComponent.cpp
|
||||
PrimitiveComponent.h
|
||||
PrimitiveUniformBufferLayout.h)
|
||||
PrimitiveComponent.h)
|
||||
@@ -27,4 +27,10 @@ private:
|
||||
friend class Scene;
|
||||
};
|
||||
DEFINE_REF(PrimitiveComponent)
|
||||
struct PrimitiveUniformBuffer
|
||||
{
|
||||
Matrix4 localToWorld;
|
||||
Matrix4 worldToLocal;
|
||||
Vector4 actorWorldPosition;
|
||||
};
|
||||
} // namespace Seele
|
||||
@@ -1,12 +0,0 @@
|
||||
#pragma once
|
||||
#include "Graphics/GraphicsResources.h"
|
||||
|
||||
namespace Seele
|
||||
{
|
||||
struct PrimitiveUniformBuffer
|
||||
{
|
||||
Matrix4 localToWorld;
|
||||
Matrix4 worldToLocal;
|
||||
Vector4 actorWorldPosition;
|
||||
};
|
||||
} // namespace Seele
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "Scene.h"
|
||||
#include "Components/PrimitiveComponent.h"
|
||||
#include "Components/PrimitiveUniformBufferLayout.h"
|
||||
#include "Material/MaterialAsset.h"
|
||||
#include "Graphics/Graphics.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
target_sources(Engine
|
||||
PRIVATE
|
||||
PUBLIC
|
||||
HorizontalLayout.h
|
||||
HorizontalLayout.cpp
|
||||
Layout.h
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
target_sources(Engine
|
||||
PRIVATE
|
||||
PUBLIC
|
||||
Button.h
|
||||
Button.cpp
|
||||
Element.h
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
target_sources(Engine
|
||||
PRIVATE
|
||||
PUBLIC
|
||||
InspectorView.h
|
||||
InspectorView.cpp
|
||||
SceneView.h
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
#include "Window/WindowManager.h"
|
||||
#include "Scene/Components/PrimitiveComponent.h"
|
||||
#include "Window/SceneView.h"
|
||||
#include "Window/InspectorView.h"
|
||||
#include "Asset/AssetRegistry.h"
|
||||
|
||||
using namespace Seele;
|
||||
|
||||
int main()
|
||||
{
|
||||
PWindowManager windowManager = new WindowManager();
|
||||
AssetRegistry::init("C:\\Users\\Dynamitos\\TestSeeleProject");
|
||||
WindowCreateInfo mainWindowInfo;
|
||||
mainWindowInfo.title = "SeeleEngine";
|
||||
mainWindowInfo.width = 1280;
|
||||
mainWindowInfo.height = 720;
|
||||
mainWindowInfo.bFullscreen = false;
|
||||
mainWindowInfo.numSamples = 1;
|
||||
mainWindowInfo.pixelFormat = Gfx::SE_FORMAT_B8G8R8A8_UNORM;
|
||||
auto window = windowManager->addWindow(mainWindowInfo);
|
||||
ViewportCreateInfo sceneViewInfo;
|
||||
sceneViewInfo.sizeX = 640;
|
||||
sceneViewInfo.sizeY = 720;
|
||||
sceneViewInfo.offsetX = 0;
|
||||
sceneViewInfo.offsetY = 0;
|
||||
PSceneView sceneView = new SceneView(windowManager->getGraphics(), window, sceneViewInfo);
|
||||
window->addView(sceneView);
|
||||
|
||||
ViewportCreateInfo inspectorViewInfo;
|
||||
inspectorViewInfo.sizeX = 640;
|
||||
inspectorViewInfo.sizeY = 720;
|
||||
inspectorViewInfo.offsetX = 640;
|
||||
inspectorViewInfo.offsetY = 0;
|
||||
PInspectorView inspectorView = new InspectorView(windowManager->getGraphics(), window, inspectorViewInfo);
|
||||
window->addView(inspectorView);
|
||||
sceneView->setFocused();
|
||||
|
||||
window->render();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user