projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doesn't work
[laserbrain_demo]
/
src
/
exhibit.cc
diff --git
a/src/exhibit.cc
b/src/exhibit.cc
index
8653343
..
444fc40
100644
(file)
--- a/
src/exhibit.cc
+++ b/
src/exhibit.cc
@@
-1,18
+1,43
@@
#include "exhibit.h"
#include "snode.h"
#include "exhibit.h"
#include "snode.h"
+class ExhibitPriv {
+ Vec3 orig_pos;
+ Quat orig_rot;
+ SceneNode *orig_node;
+};
+
+ExSelection::ExSelection(Exhibit *ex)
+{
+ this->ex = ex;
+ obj = data = 0;
+ validmask = 0;
+}
+
+ExSelection::operator bool() const
+{
+ return ex != 0;
+}
+
Exhibit::Exhibit()
{
Exhibit::Exhibit()
{
+ priv = new ExhibitPriv;
+ priv->orig_node = 0;
+}
+
+Exhibit::~Exhibit()
+{
+ delete priv;
}
}
-void *Exhibit::select(const Ray &ray) const
+ExSelection Exhibit::select(const Ray &ray) const
{
{
- return 0; // TODO
+ return ExSelection(0);
}
}
-void *Exhibit::select(const Sphere &sph) const
+ExSelection Exhibit::select(const Sphere &sph) const
{
{
- return 0; // TODO
+ return ExSelection(0);
}
void Exhibit::update(float dt)
}
void Exhibit::update(float dt)