summaryrefslogtreecommitdiffhomepage
path: root/ExampleSource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ExampleSource.cpp')
-rw-r--r--ExampleSource.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/ExampleSource.cpp b/ExampleSource.cpp
index fa022e9..6083055 100644
--- a/ExampleSource.cpp
+++ b/ExampleSource.cpp
@@ -6,6 +6,7 @@
#include <raylib.h>
+#include "Grid.h"
#include "Killmail.h"
@@ -20,8 +21,8 @@ ExampleSource::ExampleSource() :
}
-std::vector<Killmail>
-ExampleSource::all() const
+std::vector<Grid>
+ExampleSource::grids() const
{
std::vector<Killmail> killmails;
killmails.reserve(std::pow((MAX - MIN) / STEP, 2));
@@ -39,5 +40,8 @@ ExampleSource::all() const
killmails.push_back(std::move(km));
}
}
- return killmails;
+ Grid grid;
+ grid.origin = {0.0, 0.0, 0.0};
+ grid.killmails = killmails;
+ return {grid};
}