summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorErik Biederstadt <biederstadterik@gmail.com>2021-05-19 11:57:59 -0600
committerLinus Groh <mail@linusgroh.de>2021-05-19 19:34:12 +0100
commit585e7890cdd416b77bd28c2ef853477b42c606ef (patch)
treeb44d8a4bb7a6306f8b947a566056976afa6ff36c /Userland
parent132ecfc47b2b21706fff16f08ab30bcb7879af73 (diff)
downloadserenity-585e7890cdd416b77bd28c2ef853477b42c606ef.zip
3DFileViewer: Move `Demos/GLTeapot` to `Applications/3DFileViewer`
Also changes the category to `Graphics`
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/3DFileViewer/CMakeLists.txt8
-rw-r--r--Userland/Applications/3DFileViewer/Common.h (renamed from Userland/Demos/GLTeapot/Common.h)0
-rw-r--r--Userland/Applications/3DFileViewer/Mesh.cpp (renamed from Userland/Demos/GLTeapot/Mesh.cpp)0
-rw-r--r--Userland/Applications/3DFileViewer/Mesh.h (renamed from Userland/Demos/GLTeapot/Mesh.h)0
-rw-r--r--Userland/Applications/3DFileViewer/MeshLoader.h (renamed from Userland/Demos/GLTeapot/MeshLoader.h)0
-rw-r--r--Userland/Applications/3DFileViewer/WavefrontOBJLoader.cpp (renamed from Userland/Demos/GLTeapot/WavefrontOBJLoader.cpp)0
-rw-r--r--Userland/Applications/3DFileViewer/WavefrontOBJLoader.h (renamed from Userland/Demos/GLTeapot/WavefrontOBJLoader.h)0
-rw-r--r--Userland/Applications/3DFileViewer/main.cpp (renamed from Userland/Demos/GLTeapot/main.cpp)10
-rw-r--r--Userland/Applications/CMakeLists.txt1
-rw-r--r--Userland/Demos/CMakeLists.txt1
-rw-r--r--Userland/Demos/GLTeapot/CMakeLists.txt8
11 files changed, 14 insertions, 14 deletions
diff --git a/Userland/Applications/3DFileViewer/CMakeLists.txt b/Userland/Applications/3DFileViewer/CMakeLists.txt
new file mode 100644
index 0000000000..a5aca6e9c1
--- /dev/null
+++ b/Userland/Applications/3DFileViewer/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SOURCES
+ Mesh.cpp
+ WavefrontOBJLoader.cpp
+ main.cpp
+)
+
+serenity_app(3DFileViewer ICON app-3d-file-viewer)
+target_link_libraries(3DFileViewer LibGUI LibGL)
diff --git a/Userland/Demos/GLTeapot/Common.h b/Userland/Applications/3DFileViewer/Common.h
index a66734d952..a66734d952 100644
--- a/Userland/Demos/GLTeapot/Common.h
+++ b/Userland/Applications/3DFileViewer/Common.h
diff --git a/Userland/Demos/GLTeapot/Mesh.cpp b/Userland/Applications/3DFileViewer/Mesh.cpp
index 8269df4f43..8269df4f43 100644
--- a/Userland/Demos/GLTeapot/Mesh.cpp
+++ b/Userland/Applications/3DFileViewer/Mesh.cpp
diff --git a/Userland/Demos/GLTeapot/Mesh.h b/Userland/Applications/3DFileViewer/Mesh.h
index 7f979cff0a..7f979cff0a 100644
--- a/Userland/Demos/GLTeapot/Mesh.h
+++ b/Userland/Applications/3DFileViewer/Mesh.h
diff --git a/Userland/Demos/GLTeapot/MeshLoader.h b/Userland/Applications/3DFileViewer/MeshLoader.h
index fd62d49e64..fd62d49e64 100644
--- a/Userland/Demos/GLTeapot/MeshLoader.h
+++ b/Userland/Applications/3DFileViewer/MeshLoader.h
diff --git a/Userland/Demos/GLTeapot/WavefrontOBJLoader.cpp b/Userland/Applications/3DFileViewer/WavefrontOBJLoader.cpp
index 891f13dc8f..891f13dc8f 100644
--- a/Userland/Demos/GLTeapot/WavefrontOBJLoader.cpp
+++ b/Userland/Applications/3DFileViewer/WavefrontOBJLoader.cpp
diff --git a/Userland/Demos/GLTeapot/WavefrontOBJLoader.h b/Userland/Applications/3DFileViewer/WavefrontOBJLoader.h
index 92ef601577..92ef601577 100644
--- a/Userland/Demos/GLTeapot/WavefrontOBJLoader.h
+++ b/Userland/Applications/3DFileViewer/WavefrontOBJLoader.h
diff --git a/Userland/Demos/GLTeapot/main.cpp b/Userland/Applications/3DFileViewer/main.cpp
index e81f697431..eca71032eb 100644
--- a/Userland/Demos/GLTeapot/main.cpp
+++ b/Userland/Applications/3DFileViewer/main.cpp
@@ -63,7 +63,7 @@ private:
// Load the teapot
m_mesh = m_mesh_loader->load("/res/gl/teapot.obj");
- dbgln("GLTeapot: teapot mesh has {} triangles.", m_mesh->triangle_count());
+ dbgln("3DFileViewer: teapot mesh has {} triangles.", m_mesh->triangle_count());
}
virtual void paint_event(GUI::PaintEvent&) override;
@@ -113,7 +113,7 @@ bool GLContextWidget::load(const String& fname)
{
m_mesh = m_mesh_loader->load(fname);
if (!m_mesh.is_null()) {
- dbgln("GLTeapot: mesh has {} triangles.", m_mesh->triangle_count());
+ dbgln("3DFileViewer: mesh has {} triangles.", m_mesh->triangle_count());
return true;
}
@@ -146,10 +146,10 @@ int main(int argc, char** argv)
// Construct the main window
auto window = GUI::Window::construct();
- auto app_icon = GUI::Icon::default_icon("app-teapot");
+ auto app_icon = GUI::Icon::default_icon("app-3d-file-viewer");
window->set_icon(app_icon.bitmap_for_size(16));
- window->set_title("GLTeapot");
+ window->set_title("3D File Viewer");
window->resize(640, 480);
window->set_resizable(false);
window->set_double_buffering_enabled(true);
@@ -195,7 +195,7 @@ int main(int argc, char** argv)
}));
auto& help_menu = menubar->add_menu("&Help");
- help_menu.add_action(GUI::CommonActions::make_about_action("GLTeapot", app_icon, window));
+ help_menu.add_action(GUI::CommonActions::make_about_action("3D File Viewer", app_icon, window));
window->set_menubar(move(menubar));
window->show();
diff --git a/Userland/Applications/CMakeLists.txt b/Userland/Applications/CMakeLists.txt
index f2dd51efd3..9a9674c5f1 100644
--- a/Userland/Applications/CMakeLists.txt
+++ b/Userland/Applications/CMakeLists.txt
@@ -1,3 +1,4 @@
+add_subdirectory(3DFileViewer)
add_subdirectory(About)
add_subdirectory(AnalogClock)
add_subdirectory(Browser)
diff --git a/Userland/Demos/CMakeLists.txt b/Userland/Demos/CMakeLists.txt
index cf3be6ef53..3fe8445740 100644
--- a/Userland/Demos/CMakeLists.txt
+++ b/Userland/Demos/CMakeLists.txt
@@ -2,7 +2,6 @@ add_subdirectory(CatDog)
add_subdirectory(Cube)
add_subdirectory(Eyes)
add_subdirectory(Fire)
-add_subdirectory(GLTeapot)
add_subdirectory(LibGfxDemo)
add_subdirectory(LibGfxScaleDemo)
add_subdirectory(Mandelbrot)
diff --git a/Userland/Demos/GLTeapot/CMakeLists.txt b/Userland/Demos/GLTeapot/CMakeLists.txt
deleted file mode 100644
index ff6420a889..0000000000
--- a/Userland/Demos/GLTeapot/CMakeLists.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-set(SOURCES
- Mesh.cpp
- WavefrontOBJLoader.cpp
- main.cpp
-)
-
-serenity_app(GLTeapot ICON app-teapot)
-target_link_libraries(GLTeapot LibGUI LibGL)