summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-09-02 15:41:23 +0300
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-09-02 15:41:23 +0300
commit27b51e8c35e62183583a80a8689591fdbaf031f9 (patch)
treec0af7189ad3cc35bb56c912aa3a2fe99235826f5 /main.cpp
parentfa6df107cb0d78e708cb8457c0f7d74969156f56 (diff)
Initial migration of the project. It does work but would require some
documentation. Changes to be committed: new file: LorenzAttractor.cpp new file: LorenzAttractor.h modified: README.md new file: main.cpp new file: run.sh new file: vectormath.h
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..68813dd
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,23 @@
+#include "LorenzAttractor.h"
+#include <SFML/Graphics.hpp>
+
+int main() {
+
+ /// Create a window
+
+ bool isFullscreen = true;
+
+ sf::RenderWindow window;
+ window.create(sf::VideoMode(1980, 1080), "Attractors", (isFullscreen ? sf::Style::Fullscreen : sf::Style::Default), sf::ContextSettings());
+ // window.create(sf::VideoMode(1980, 1080), "Attractors", sf::Style::Default, sf::ContextSettings());
+ window.setPosition(sf::Vector2i(0, 0));
+ window.setVerticalSyncEnabled(true);
+ window.setFramerateLimit(144);
+
+ /// Create an instance of the LorenzAttractor class
+ LorenzAttractor lorenz;
+
+ /// Run the Lorenz Attractor simulation
+ lorenz.run(window);
+
+}