projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
metadata, walk polygons, stuff...
[laserbrain_demo]
/
src
/
snode.h
diff --git
a/src/snode.h
b/src/snode.h
index
11651c6
..
5af02f4
100644
(file)
--- a/
src/snode.h
+++ b/
src/snode.h
@@
-5,6
+5,8
@@
#include "object.h"
#include "gmath/gmath.h"
#include "object.h"
#include "gmath/gmath.h"
+class Scene;
+
class SceneNode {
private:
char *name;
class SceneNode {
private:
char *name;
@@
-22,6
+24,7
@@
private:
Mat4 inv_xform;
public:
Mat4 inv_xform;
public:
+ Scene *scene; // scene to which this node belongs
Mat4 dbg_xform;
SceneNode();
Mat4 dbg_xform;
SceneNode();
@@
-63,6
+66,8
@@
public:
void update_node(float dt = 0.0f);
void update(float dt = 0.0f);
void update_node(float dt = 0.0f);
void update(float dt = 0.0f);
+ void apply_xform();
+
bool intersect(const Ray &ray, HitPoint *hit) const;
};
bool intersect(const Ray &ray, HitPoint *hit) const;
};