X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Fvrinput.h;fp=src%2Fvrinput.h;h=1ab89a16503dc457b48cae17dd1775bf4c91eed6;hp=0000000000000000000000000000000000000000;hb=b6285d483c8b55a52b6965271a3d3163b2e2f8fa;hpb=cd4537c88b30339a84435574ae0ce06e343f2bb9 diff --git a/src/vrinput.h b/src/vrinput.h new file mode 100644 index 0000000..1ab89a1 --- /dev/null +++ b/src/vrinput.h @@ -0,0 +1,23 @@ +#ifndef VRINPUT_H_ +#define VRINPUT_H_ + +#include +#include + +struct VRHand { + bool valid; + Vec3 pos; + Quat rot; + Mat4 xform; /* combination of the above */ + goatvr_source *src; +}; + +extern VRHand vrhand[2]; + +bool init_vrhands(); +void destroy_vrhands(); + +void update_vrhands(); +void draw_vrhands(); + +#endif /* VRINPUT_H_ */