summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
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);
+
+}