Skip to content

Commit 4ec1451

Browse files
committed
Move User Interface module out of Graphics namespace and split it to Typography and Widgets
1 parent 5d6123e commit 4ec1451

File tree

30 files changed

+146
-75
lines changed

30 files changed

+146
-75
lines changed

Apps/Samples/Asteroids/AsteroidsApp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Sample demonstrating parallel rendering of the distinct asteroids massive
2626
#include "Planet.h"
2727
#include "AsteroidsArray.h"
2828

29-
#include <Methane/Graphics/Kit.h>
29+
#include <Methane/Kit.h>
3030

3131
namespace Methane::Samples
3232
{

Apps/Tutorials/01-HelloTriangle/HelloTriangleApp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Tutorial demonstrating triangle rendering with Methane graphics API
2323

2424
#pragma once
2525

26-
#include <Methane/Graphics/Kit.h>
26+
#include <Methane/Kit.h>
2727

2828
#include <string>
2929
#include <array>

Apps/Tutorials/01-HelloTriangle/HelloTriangleAppSimple.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Simplified tutorial demonstrating triangle rendering with Methane graphics API
2121
2222
******************************************************************************/
2323

24-
#include <Methane/Graphics/Kit.h>
24+
#include <Methane/Kit.h>
2525

2626
using namespace Methane;
2727
using namespace Methane::Graphics;

Apps/Tutorials/02-TexturedCube/TexturedCubeApp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Tutorial demonstrating textured cube rendering with Methane graphics API
2323

2424
#pragma once
2525

26-
#include <Methane/Graphics/Kit.h>
26+
#include <Methane/Kit.h>
2727

2828
#include <string>
2929
#include <vector>

Apps/Tutorials/03-ShadowCube/ShadowCubeApp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Tutorial demonstrating shadow-pass rendering with Methane graphics API
2323

2424
#pragma once
2525

26-
#include <Methane/Graphics/Kit.h>
26+
#include <Methane/Kit.h>
2727

2828
namespace Methane::Tutorials
2929
{

Apps/Tutorials/04-TextRender/TextRenderApp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Tutorial demonstrating triangle rendering with Methane graphics API
2323

2424
#pragma once
2525

26-
#include <Methane/Graphics/Kit.h>
26+
#include <Methane/Kit.h>
2727
#include <Methane/Data/Receiver.hpp>
2828

2929
#include <map>

CMake/MethaneApplications.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function(add_methane_application TARGET SOURCES RESOURCES_DIR INSTALL_DIR APP_NA
123123

124124
target_link_libraries(${TARGET}
125125
PRIVATE
126-
MethaneGraphicsKit
126+
MethaneKit
127127
MethaneBuildOptions
128128
MethaneInstrumentation
129129
$<$<BOOL:${METHANE_TRACY_PROFILING_ENABLED}>:TracyClient>
@@ -134,7 +134,7 @@ function(add_methane_application TARGET SOURCES RESOURCES_DIR INSTALL_DIR APP_NA
134134
.
135135
)
136136

137-
get_target_property(METHANE_PREREQUISITE_MODULES MethaneGraphicsKit PREREQUISITE_MODULES)
137+
get_target_property(METHANE_PREREQUISITE_MODULES MethaneKit PREREQUISITE_MODULES)
138138
add_prerequisite_binaries(${TARGET} "${METHANE_PREREQUISITE_MODULES}" ${INSTALL_DIR})
139139

140140
endfunction()

Modules/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ add_subdirectory(Common)
22
add_subdirectory(Data)
33
add_subdirectory(Platform)
44
add_subdirectory(Graphics)
5+
add_subdirectory(UserInterface)
6+
add_subdirectory(Kit)

Modules/Graphics/App/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ PUBLIC
3535
MethanePlatformUtils
3636
MethanePlatformInput
3737
MethaneGraphicsCore
38-
MethaneGraphicsUserInterface
3938
MethaneGraphicsPrimitives
4039
MethaneGraphicsCamera
40+
MethaneUserInterfaceWidgets
4141
MethaneInstrumentation
4242
PRIVATE
4343
MethaneBuildOptions

Modules/Graphics/App/Include/Methane/Graphics/App.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Base frame class provides frame buffer management with resize handling.
3030
#include "AppContextController.h"
3131

3232
#include <Methane/Data/AppResourceProviders.h>
33-
#include <Methane/Timer.hpp>
3433
#include <Methane/Data/AnimationsPool.h>
3534
#include <Methane/Data/Receiver.hpp>
3635
#include <Methane/Platform/App.h>
@@ -41,8 +40,9 @@ Base frame class provides frame buffer management with resize handling.
4140
#include <Methane/Graphics/RenderCommandList.h>
4241
#include <Methane/Graphics/FpsCounter.h>
4342
#include <Methane/Graphics/ImageLoader.h>
44-
#include <Methane/Graphics/Badge.h>
45-
#include <Methane/Graphics/HeadsUpDisplay.h>
43+
#include <Methane/UserInterface/Badge.h>
44+
#include <Methane/UserInterface/HeadsUpDisplay.h>
45+
#include <Methane/Timer.hpp>
4646
#include <Methane/Instrumentation.h>
4747

4848
#include <vector>

0 commit comments

Comments
 (0)