From c2eec1f22e0c8d31deb1c018720caea858c6e482 Mon Sep 17 00:00:00 2001 From: Tim <72736935+TLTimeplex@users.noreply.github.com> Date: Mon, 3 Jul 2023 16:59:28 +0200 Subject: [PATCH 1/5] Fix for windows users --- .clang-format | 6 ++---- .gitignore | 3 ++- src/lib/src/context.cpp | 2 +- src/lib/src/renderer.cpp | 2 ++ 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.clang-format b/.clang-format index 1254c0b..5ebe470 100644 --- a/.clang-format +++ b/.clang-format @@ -1,10 +1,8 @@ ---- # We'll use defaults from the LLVM style, but with 4 columns indentation. BasedOnStyle: LLVM IndentWidth: 4 ---- + Language: Cpp # Force pointers to the type for C++. DerivePointerAlignment: false -PointerAlignment: Left ---- \ No newline at end of file +PointerAlignment: Left \ No newline at end of file diff --git a/.gitignore b/.gitignore index 1899660..ad0a7b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ build -.vscode \ No newline at end of file +.vscode +/.vs diff --git a/src/lib/src/context.cpp b/src/lib/src/context.cpp index b31c9af..031ca07 100644 --- a/src/lib/src/context.cpp +++ b/src/lib/src/context.cpp @@ -84,7 +84,7 @@ Rectangle Context::viewport() const { return impl_->viewport(); } void Context::clear() { impl_->clear(); } -u_int32_t Context::get_error() const { return impl_->get_error(); } +uint32_t Context::get_error() const { return impl_->get_error(); } RGBA Context::clearcolor() const { return impl_->clear_color_; } diff --git a/src/lib/src/renderer.cpp b/src/lib/src/renderer.cpp index eccb289..226e188 100644 --- a/src/lib/src/renderer.cpp +++ b/src/lib/src/renderer.cpp @@ -33,6 +33,8 @@ #include #include +#undef max + namespace paradiso { struct Renderer::impl { From b96b25e37cc4ea76768c9fc42ff963b47d451464 Mon Sep 17 00:00:00 2001 From: Tim <72736935+TLTimeplex@users.noreply.github.com> Date: Mon, 3 Jul 2023 17:10:27 +0200 Subject: [PATCH 2/5] Fork description + DE translation --- README.de.md | 26 ++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 28 insertions(+) diff --git a/README.de.md b/README.de.md index e69de29..d7ca2d7 100644 --- a/README.de.md +++ b/README.de.md @@ -0,0 +1,26 @@ +## Dies ist eine modifizierte Version des ursprünglichen ParadisSO für Windows-Benutzer + +# ParadisSO - eine minimale 2D-Grafikengine + +**ParadiSO** wurde als stark abgespeckte 2D-Version meiner `pixwerx`-Engine konzipiert. *ParadiSO* ahmt einen minimalistischen Ansatz für 2D-Grafiken zu Bildungszwecken nach. Es verwendet modernes C++ und ein datengesteuertes Design, jedoch keine ECS (Entity Component System). + +## Bildungszwecke + +Einige Argumente für seinen Bildungsaspekt: + +- Kombination verschiedener Konzepte und Paradigmen zur Erstellung ausdrucksstarker, aber knappen Codes +- Stark von Rust-Code inspiriert +- Für den mathematischen Code wird eine sofortige Auswertung verwendet, jedoch mit der Verwendung von ´`constexpr`, um eventuelle Performance-Overheads auszugleichen. +- Versteckt alte `C`-APIs hinter einer modernisierten Fassade +- Es lehnt sich stark an die STL und ihre Algorithmen an + +## Minimalistisch + +Da diese Engine einige Muster und Designkonzepte zeigen soll, versucht sie, unnötige Aufblähungen zu vermeiden. + +## Abhängigkeiten + +ParadiSO wird mit den notwendigen Komponenten geliefert. Diese sollte jedoch hier erwähnt werden: + +- [GLFW 3.3.8](https://github.com/glfw/glfw) +- [GLAD](https://github.com/Dav1dde/glad) \ No newline at end of file diff --git a/README.md b/README.md index 1db15bb..5fac6f0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +## This is a modifyed version of the original paridisSO for windows users + # ParadisSO - a minimal 2D graphics engine **ParadiSO** was conceived as a heavily stripped down 2D version of my `pixwerx` engine. *ParadiSO* mimics a minimalistic approach to 2D graphics for educational purposes. It uses modern C++ and a data-driven design, but no ECS. From 3739c8033552565d7e8964a7dc24c23e9ba7fb82 Mon Sep 17 00:00:00 2001 From: Tim <72736935+TLTimeplex@users.noreply.github.com> Date: Mon, 3 Jul 2023 17:11:01 +0200 Subject: [PATCH 3/5] fixed typo --- README.de.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.de.md b/README.de.md index d7ca2d7..6a5c8a1 100644 --- a/README.de.md +++ b/README.de.md @@ -10,7 +10,7 @@ Einige Argumente f - Kombination verschiedener Konzepte und Paradigmen zur Erstellung ausdrucksstarker, aber knappen Codes - Stark von Rust-Code inspiriert -- Für den mathematischen Code wird eine sofortige Auswertung verwendet, jedoch mit der Verwendung von ´`constexpr`, um eventuelle Performance-Overheads auszugleichen. +- Für den mathematischen Code wird eine sofortige Auswertung verwendet, jedoch mit der Verwendung von `constexpr`, um eventuelle Performance-Overheads auszugleichen. - Versteckt alte `C`-APIs hinter einer modernisierten Fassade - Es lehnt sich stark an die STL und ihre Algorithmen an From 087ae62db567603c8b577a405e195bc5d1bec6aa Mon Sep 17 00:00:00 2001 From: Tim G Date: Mon, 3 Jul 2023 18:02:42 +0200 Subject: [PATCH 4/5] Fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5fac6f0..74d4341 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## This is a modifyed version of the original paridisSO for windows users +## This is a modified version of the original paridisSO for windows users # ParadisSO - a minimal 2D graphics engine From d6dcc1aaec01b7794e77fb89d72a2d64e2573cf1 Mon Sep 17 00:00:00 2001 From: Tim <72736935+TLTimeplex@users.noreply.github.com> Date: Mon, 3 Jul 2023 18:39:58 +0200 Subject: [PATCH 5/5] Removed fork information for pull request --- README.de.md | 2 -- README.md | 2 -- 2 files changed, 4 deletions(-) diff --git a/README.de.md b/README.de.md index 6a5c8a1..a85866c 100644 --- a/README.de.md +++ b/README.de.md @@ -1,5 +1,3 @@ -## Dies ist eine modifizierte Version des ursprünglichen ParadisSO für Windows-Benutzer - # ParadisSO - eine minimale 2D-Grafikengine **ParadiSO** wurde als stark abgespeckte 2D-Version meiner `pixwerx`-Engine konzipiert. *ParadiSO* ahmt einen minimalistischen Ansatz für 2D-Grafiken zu Bildungszwecken nach. Es verwendet modernes C++ und ein datengesteuertes Design, jedoch keine ECS (Entity Component System). diff --git a/README.md b/README.md index 74d4341..1db15bb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -## This is a modified version of the original paridisSO for windows users - # ParadisSO - a minimal 2D graphics engine **ParadiSO** was conceived as a heavily stripped down 2D version of my `pixwerx` engine. *ParadiSO* mimics a minimalistic approach to 2D graphics for educational purposes. It uses modern C++ and a data-driven design, but no ECS.