Adding EnTT
This commit is contained in:
@@ -31,3 +31,6 @@
|
|||||||
[submodule "external/freetype"]
|
[submodule "external/freetype"]
|
||||||
path = external/freetype
|
path = external/freetype
|
||||||
url = https://gitlab.freedesktop.org/freetype/freetype.git
|
url = https://gitlab.freedesktop.org/freetype/freetype.git
|
||||||
|
[submodule "external/entt"]
|
||||||
|
path = external/entt
|
||||||
|
url = git@github.com:skypjack/entt.git
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ set(STB_ROOT ${EXTERNAL_ROOT}/stb)
|
|||||||
set(TTFPARSER_ROOT ${EXTERNAL_ROOT}/ttf-parser)
|
set(TTFPARSER_ROOT ${EXTERNAL_ROOT}/ttf-parser)
|
||||||
set(FREETYPE_ROOT ${EXTERNAL_ROOT}/freetype)
|
set(FREETYPE_ROOT ${EXTERNAL_ROOT}/freetype)
|
||||||
set(SPIRV_ROOT ${EXTERNAL_ROOT}/SPIRV-Cross)
|
set(SPIRV_ROOT ${EXTERNAL_ROOT}/SPIRV-Cross)
|
||||||
|
set(ENTT_ROOT ${EXTERNAL_ROOT}/entt)
|
||||||
set(NSAM_ROOT ${EXTERNAL_ROOT}/aftermath)
|
set(NSAM_ROOT ${EXTERNAL_ROOT}/aftermath)
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/)
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/)
|
||||||
|
|||||||
@@ -61,6 +61,11 @@ set(GLFW_VULKAN_STATIC OFF CACHE BOOL "GLFW vulkan static")
|
|||||||
|
|
||||||
add_subdirectory(${GLFW_ROOT} ${GLFW_ROOT})
|
add_subdirectory(${GLFW_ROOT} ${GLFW_ROOT})
|
||||||
|
|
||||||
|
#--------------EnTT------------------------------
|
||||||
|
list(APPEND DEPENDENCIES EnTT)
|
||||||
|
|
||||||
|
add_subdirectory(${ENTT_ROOT} ${ENTT_ROOT})
|
||||||
|
|
||||||
#--------------FreeType------------------------------
|
#--------------FreeType------------------------------
|
||||||
list(APPEND DEPENDENCIES freetype)
|
list(APPEND DEPENDENCIES freetype)
|
||||||
|
|
||||||
|
|||||||
+1
Submodule external/entt added at ebc0c18534
@@ -0,0 +1,4 @@
|
|||||||
|
#include "Button.h"
|
||||||
|
|
||||||
|
using namespace Seele;
|
||||||
|
using namespace Seele::UI;
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "Element.h"
|
||||||
|
|
||||||
|
namespace Seele
|
||||||
|
{
|
||||||
|
namespace UI
|
||||||
|
{
|
||||||
|
class Button : public Element
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
||||||
|
} // namespace UI
|
||||||
|
} // namespace Seele
|
||||||
@@ -1,6 +1,10 @@
|
|||||||
target_sources(Engine
|
target_sources(Engine
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
Button.h
|
||||||
|
Button.cpp
|
||||||
Element.h
|
Element.h
|
||||||
Element.cpp
|
Element.cpp
|
||||||
|
Label.h
|
||||||
|
Label.cpp
|
||||||
Panel.h
|
Panel.h
|
||||||
Panel.cpp)
|
Panel.cpp)
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#include "Label.h"
|
||||||
|
|
||||||
|
using namespace Seele;
|
||||||
|
using namespace Seele::UI;
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "Element.h"
|
||||||
|
|
||||||
|
namespace Seele
|
||||||
|
{
|
||||||
|
namespace UI
|
||||||
|
{
|
||||||
|
class Label : public Element
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
Label();
|
||||||
|
~Label();
|
||||||
|
private:
|
||||||
|
std::string text;
|
||||||
|
};
|
||||||
|
} // namespace UI
|
||||||
|
} // namespace Seele
|
||||||
Reference in New Issue
Block a user