summaryrefslogtreecommitdiff
path: root/main.cpp
blob: bb693944eb69d1d2750b4cf8f3ff150218316ed7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <SFML/Graphics.hpp>
#include "LorenzAttractor.h"

int main() {

    /// Create the window

    bool isFullscreen = true;

    sf::RenderWindow window;
        window.create(sf::VideoMode(1980, 1080), "Chaotic Attractors", (isFullscreen ? sf::Style::Fullscreen : sf::Style::Default), sf::ContextSettings());
        window.setPosition(sf::Vector2i(0, 0));
        window.setVerticalSyncEnabled(true);
        window.setFramerateLimit(60);

    /// Create an instance of the LorenzAttractor class
    LorenzAttractor lorenz;

    /// Run the simulation
    lorenz.run(window);

    /// Profit
}