summaryrefslogtreecommitdiff
path: root/render_object.cuh
diff options
context:
space:
mode:
authorBrett Weiland <brettsweiland@gmail.com>2024-05-27 20:56:59 -0500
committerBrett Weiland <brettsweiland@gmail.com>2024-05-27 20:56:59 -0500
commit093200a449ea38952de52012e324036c106e294b (patch)
tree6030076eb894ca100d6aa0d6550ab56955e7fb2f /render_object.cuh
parent7e9e2150619c05f9e8a74432e596b11f373518b9 (diff)
boutta switch away from templates
Diffstat (limited to 'render_object.cuh')
-rw-r--r--render_object.cuh12
1 files changed, 12 insertions, 0 deletions
diff --git a/render_object.cuh b/render_object.cuh
new file mode 100644
index 0000000..0063d94
--- /dev/null
+++ b/render_object.cuh
@@ -0,0 +1,12 @@
+#ifndef RENDER_OBJECT_H
+#define RENDER_OBJECT_H
+#include "entity.cuh"
+
+template<class T> class render_object : public entity<T> {
+ using T3 = typename vect_t3<T>::vect_t;
+ using entity<T>::entity;
+ public:
+ virtual __device__ T distance_estimator(T3 point) const = 0;
+};
+
+#endif