Merge pull request 'Fix for windows-users' (#2) from Timeplex/paradiso-win:main into main
Seems a good first start. Thanks!
This commit is contained in:
commit
7bd011429b
5 changed files with 31 additions and 6 deletions
|
@ -1,10 +1,8 @@
|
||||||
---
|
|
||||||
# We'll use defaults from the LLVM style, but with 4 columns indentation.
|
# We'll use defaults from the LLVM style, but with 4 columns indentation.
|
||||||
BasedOnStyle: LLVM
|
BasedOnStyle: LLVM
|
||||||
IndentWidth: 4
|
IndentWidth: 4
|
||||||
---
|
|
||||||
Language: Cpp
|
Language: Cpp
|
||||||
# Force pointers to the type for C++.
|
# Force pointers to the type for C++.
|
||||||
DerivePointerAlignment: false
|
DerivePointerAlignment: false
|
||||||
PointerAlignment: Left
|
PointerAlignment: Left
|
||||||
---
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
build
|
build
|
||||||
.vscode
|
.vscode
|
||||||
|
/.vs
|
||||||
|
|
24
README.de.md
24
README.de.md
|
@ -0,0 +1,24 @@
|
||||||
|
# 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)
|
|
@ -84,7 +84,7 @@ Rectangle Context::viewport() const { return impl_->viewport(); }
|
||||||
|
|
||||||
void Context::clear() { impl_->clear(); }
|
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_; }
|
RGBA Context::clearcolor() const { return impl_->clear_color_; }
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,8 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#undef max
|
||||||
|
|
||||||
namespace paradiso {
|
namespace paradiso {
|
||||||
|
|
||||||
struct Renderer::impl {
|
struct Renderer::impl {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue