From 27b51e8c35e62183583a80a8689591fdbaf031f9 Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Sat, 2 Sep 2023 15:41:23 +0300 Subject: 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 --- main.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 main.cpp (limited to 'main.cpp') 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 + +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); + +} -- cgit v1.2.3