summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-09-03 23:31:40 +0200
committerTom Smeding <tom@tomsmeding.com>2025-09-03 23:37:53 +0200
commit7e60437d3c064bca402d486be967c43bf4326067 (patch)
tree8b4307b90c942861176d9c705cd760b9fe7b6c6b /main.cpp
Initial (with old code)HEADmaster
This includes old code too, perhaps from 2021-05-05, judging from the birth timestamp on the directory. The old code included option parsing and equation solving for fancy mutually-dependent options, but no actual rendering (imagine that).
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..765735c
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,14 @@
+#include "options.h"
+#include "compute.h"
+#include <iostream>
+
+
+int main(int argc, char **argv) {
+ Options options = parse_options(argc, argv);
+ std::cout << "Options:" << std::endl << options << std::endl;
+ HistImage img{compute_brot(options)};
+ if (options.outfname.value != "/dev/null")
+ img.render(options.outfname.value.data());
+}
+
+// vim: set sw=4 ts=4 noet: