Initial UI implementation by AI

This commit is contained in:
Dynamitos committed 2026-10-13 21:49:28 +02:00
1 parent f2a3f59ab1
commit 908b52441f
29 files changed
+884 -186

No files matched your search

+1 -3
View File
@@ -6,7 +6,6 @@
#include "Graphics/Mesh.h"
#include "Graphics/Shader.h"
#include "Graphics/StaticMeshVertexData.h"
#include "ThreadPool.h"
#include <Asset/MaterialLoader.h>
#include <Asset/TextureLoader.h>
#include <assimp/Importer.hpp>
@@ -14,10 +13,9 @@
#include <assimp/material.h>
#include <assimp/postprocess.h>
#include <assimp/scene.h>
#include <fmt/core.h>
#include <fmt/format.h>
#include <fstream>
#include <iostream>
#include <set>
#include <stb_image_write.h>
using namespace Seele;
+2 -1
View File
@@ -8,6 +8,7 @@
using namespace Seele;
using namespace Seele::Editor;
using namespace Seele::UI;
InspectorView::InspectorView(Gfx::PGraphics graphics, PWindow window, const ViewportCreateInfo& createInfo)
: View(graphics, window, createInfo, "InspectorView"),
@@ -15,7 +16,7 @@ InspectorView::InspectorView(Gfx::PGraphics graphics, PWindow window, const View
new UI::Div<M_8>(UI::Attributes{}, {
new UI::Div<BG_Red, Inline>({},
{
new UI::Text<Font_Arial, Text_9XL>("Other Test T"),
new UI::Text<Font_Arial, Text_8XL>("Other Test T"),
}),
new UI::Text<Font_Arial>("Test fasdf agll;sdfgkj ahsf"),
}))) {
+1
View File
@@ -3,6 +3,7 @@
#include "Graphics/RenderPass/UIPass.h"
#include "Window/View.h"
#include "UI/System.h"
#include "UI/Style/Fonts.h"
namespace Seele {
DECLARE_REF(Actor)
+9 -13
View File
@@ -21,7 +21,7 @@ using namespace Seele::Editor;
static Gfx::OGraphics graphics;
int main() {
std::string gameName = "FluidSimulation";
std::string gameName = "MeshShadingDemo";
std::filesystem::path outputPath = fmt::format("/home/dynamitos/{0}Game/", gameName);
std::filesystem::path sourcePath = fmt::format("/home/dynamitos/{0}/", gameName);
#ifdef WIN32
@@ -31,7 +31,7 @@ int main() {
#else
std::string libraryEnding = "so";
#endif
std::filesystem::path binaryPath = sourcePath / "build" / fmt::format("{}.{}", gameName, libraryEnding);
std::filesystem::path binaryPath = sourcePath / "bin" / fmt::format("{}.{}", gameName, libraryEnding);
std::filesystem::path cmakePath = outputPath / "cmake";
if (true) {
graphics = new Vulkan::Graphics();
@@ -47,7 +47,7 @@ int main() {
.filePath = "./fonts/arial.ttf",
});
AssetImporter::importEnvironmentMap(EnvironmentImportArgs{
.filePath = sourcePath / "import" / "newport_loft.hdr",
.filePath = sourcePath / "import" / "textures" / "newport_loft.hdr",
});
// AssetImporter::importTexture(TextureImportArgs{
// .filePath = sourcePath / "import" / "textures" / "grass_block_side.png",
@@ -57,20 +57,16 @@ int main() {
// .filePath = sourcePath / "import" / "models" / "main1_sponza" / "sponza.gltf",
// .importPath = "sponza",
//});
// AssetImporter::importMesh(MeshImportArgs{
// .filePath = sourcePath / "import" / "models" / "rttest.gltf",
// .importPath = "rttest",
// });
// AssetImporter::importMesh(MeshImportArgs{
// .filePath = sourcePath / "import" / "models" / "cube.fbx",
// .importPath = "",
// });
AssetImporter::importMesh(MeshImportArgs{
.filePath = sourcePath / "import" / "rttest.gltf",
.filePath = sourcePath / "import" / "models" / "rttest.gltf",
.importPath = "rttest",
});
AssetImporter::importMesh(MeshImportArgs{
.filePath = sourcePath / "import" / "models" / "cube.fbx",
.importPath = "",
});
getThreadPool().waitIdle();
vd->commitMeshes();
WindowCreateInfo mainWindowInfo = {