X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fexhibit.h;h=0f98b05d7cd3d852499b22ed3728ed1cd2647e26;hb=ad052fc67fe4e76d2f4a01b2381a738da1708cdb;hp=004626c9d51d09d4e0c2469269492e14b2cb76bc;hpb=cddee551d9bc9ec58e15aeb673f7e8fcf3c163ce;p=laserbrain_demo diff --git a/src/exhibit.h b/src/exhibit.h index 004626c..0f98b05 100644 --- a/src/exhibit.h +++ b/src/exhibit.h @@ -1,12 +1,15 @@ #ifndef EXHIBIT_H_ #define EXHIBIT_H_ +#include #include #include "object.h" #include "geom.h" +#include "audio/stream.h" class Exhibit; class ExhibitPriv; +class Scene; enum { EXSEL_RAY = 1, @@ -27,6 +30,24 @@ public: operator bool() const; }; +enum { + EXDATA_INFO, + EXDATA_VIDEO +}; + +class ExData { +public: + int type; + + std::string text; + AudioStream *voice; + // TODO: video stream + + ExData(); + ~ExData(); +}; + + /* TODO - select me aktina kai select me sfaira, epistrefei Selection - hover me aktina kai hover me sfaira @@ -37,12 +58,16 @@ private: ExhibitPriv *priv; public: + std::vector data; + Exhibit(); virtual ~Exhibit(); Exhibit(const Exhibit&) = delete; Exhibit &operator =(const Exhibit &) = delete; + virtual void set_node(SceneNode *node); + virtual ExSelection select(const Ray &ray) const; virtual ExSelection select(const Sphere &sph) const;