Skip to content

Commit 281044e

Browse files
committed
chore: rename "editor" to more appropriate named "demo"
1 parent 180d26a commit 281044e

20 files changed

Lines changed: 1586 additions & 531 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ game/
1212
app/
1313
cache/
1414

15+
internal/demo/model-index.json
1516
internal/sandbox/model-index.json
1617

1718
# python
@@ -20,6 +21,7 @@ scripts/__pycache__/
2021

2122
# debug files
2223
internal/sandbox/*.pdb
24+
internal/demo/*.pdb
2325
src/*.pdb
2426
examples/*.pdb
2527
tests/*.pdb

examples/build_linux.sh

Lines changed: 26 additions & 26 deletions
Large diffs are not rendered by default.

examples/build_macos.sh

Lines changed: 26 additions & 26 deletions
Large diffs are not rendered by default.

examples/build_win32.bat

Lines changed: 26 additions & 26 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
editor.cpp
2+
demo.cpp
33
44
Notes:
55
* absolute mess
@@ -22,7 +22,7 @@ Index of this file:
2222
// [SECTION] includes
2323
//-----------------------------------------------------------------------------
2424

25-
#include "editor.h"
25+
#include "demo.h"
2626

2727
//-----------------------------------------------------------------------------
2828
// [SECTION] pl_app_load
@@ -327,7 +327,7 @@ pl_app_load(plApiRegistryI* ptApiRegistry, plAppData* ptAppData)
327327
ImPlot::SetCurrentContext((ImPlotContext*)ptDataRegistry->get_data("implot"));
328328
ImGuiIO& tImGuiIO = ImGui::GetIO();
329329
tImGuiIO.IniFilename = nullptr;
330-
ImGui::LoadIniSettingsFromDisk("../internal/sandbox/pl_imgui.ini");
330+
ImGui::LoadIniSettingsFromDisk("../internal/demo/pl_imgui.ini");
331331
tImGuiIO.Fonts->AddFontFromFileTTF("../data/pilotlight-assets-master/fonts/Cousine-Regular.ttf", 16.0f);
332332
auto tImGuiFontConfig = ImFontConfig();
333333
tImGuiFontConfig.MergeMode = true;
@@ -598,7 +598,7 @@ pl_app_update(plAppData* ptAppData)
598598
if(ImGui::BeginMenu("File", true))
599599
{
600600
if(ImGui::MenuItem("Save Layout"))
601-
ImGui::SaveIniSettingsToDisk("../internal/sandbox/pl_imgui.ini");
601+
ImGui::SaveIniSettingsToDisk("../internal/demo/pl_imgui.ini");
602602
ImGui::EndMenu();
603603
}
604604
if(ImGui::BeginMenu("Edit", false))
@@ -781,13 +781,13 @@ pl__find_models(plAppData* ptAppData)
781781
pl_sb_push(ptAppData->sbtTestModels, tModel);
782782
}
783783

784-
if(gptVfs->does_file_exist("../internal/sandbox/model-index.json"))
784+
if(gptVfs->does_file_exist("../internal/demo/model-index.json"))
785785
{
786-
size_t szJsonFileSize = gptVfs->get_file_size_str("../internal/sandbox/model-index.json");
786+
size_t szJsonFileSize = gptVfs->get_file_size_str("../internal/demo/model-index.json");
787787
uint8_t* puFileBuffer = (uint8_t*)PL_ALLOC(szJsonFileSize + 1);
788788
memset(puFileBuffer, 0, szJsonFileSize + 1);
789789

790-
plVfsFileHandle tHandle = gptVfs->open_file("../internal/sandbox/model-index.json", PL_VFS_FILE_MODE_READ);
790+
plVfsFileHandle tHandle = gptVfs->open_file("../internal/demo/model-index.json", PL_VFS_FILE_MODE_READ);
791791
gptVfs->read_file(tHandle, puFileBuffer, &szJsonFileSize);
792792
gptVfs->close_file(tHandle);
793793

@@ -1477,9 +1477,9 @@ pl__create_scene(plAppData* ptAppData)
14771477
// [SECTION] unity build
14781478
//-----------------------------------------------------------------------------
14791479

1480-
#include "editor_camera.cpp"
1481-
#include "editor_entities.cpp"
1482-
#include "editor_ui_demo.cpp"
1480+
#include "demo_camera.cpp"
1481+
#include "demo_entities.cpp"
1482+
#include "demo_ui_demo.cpp"
14831483

14841484
#ifdef PL_USE_STB_SPRINTF
14851485
#define STB_SPRINTF_IMPLEMENTATION
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "editor.h"
1+
#include "demo.h"
22

33
void
44
pl__camera_update_imgui(plCamera* ptCamera)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "editor.h"
1+
#include "demo.h"
22
#include "pl_shader_interop_renderer.h"
33

44
#define PL_ICON_FA_MAGNIFYING_GLASS "\xef\x80\x82" // U+f002
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "editor.h"
1+
#include "demo.h"
22

33
void
44
pl__show_ui_demo_window(plAppData* ptAppData)

0 commit comments

Comments
 (0)