diff options
author | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-09-04 02:57:57 +0300 |
---|---|---|
committer | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-09-04 02:57:57 +0300 |
commit | ca9bbea0a0a3ec98fa6774a9d2c75f01974b0a68 (patch) | |
tree | b79c0a05824603c50fc7513ef82f660b89870087 /main.cpp | |
parent | 55b7ecc50187f3039bf747c04b68601dfda45a6b (diff) |
Final form.
Changes to be committed:
new file: Inconsolata-Regular.ttf
modified: LorenzAttractor.cpp
modified: LorenzAttractor.h
modified: vectormath.h
modified: README.md
modified: main.cpp
modified: run.sh
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,23 +1,23 @@ -#include "LorenzAttractor.h" #include <SFML/Graphics.hpp> +#include "LorenzAttractor.h" int main() { - /// Create a window + /// Create the 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.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(144); + window.setFramerateLimit(60); /// Create an instance of the LorenzAttractor class LorenzAttractor lorenz; - /// Run the Lorenz Attractor simulation + /// Run the simulation lorenz.run(window); + /// Profit } |