summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorepoch <epoch@thebackupbox.net>2020-04-06 04:41:47 -0500
committerepoch <epoch@thebackupbox.net>2020-04-06 04:41:47 -0500
commit167169abe4df9bd67b5994b6a665abb437947815 (patch)
tree8a3e41ec46219fbb572734e00d70f3cb0f5b2fb1 /src/common.h
parent4e8281fc12c7fe71b1a0370dc144c6d7b7356757 (diff)
downloadhackvr-167169abe4df9bd67b5994b6a665abb437947815.tar.gz
hackvr-167169abe4df9bd67b5994b6a665abb437947815.zip
added a lot of code while trying to fix the 3D projection to be less suck. ended up adding some code to have multiple "eyes" on a camera, instead of moving the camera around.
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h
index a555cb1..9dddf3d 100644
--- a/src/common.h
+++ b/src/common.h
@@ -49,10 +49,10 @@ typedef struct {
} c3_rot_t;
typedef struct {
- char *id;
+ char *id;//for the camera this is $USER, right?
c3_rot_t r;//rotation
c3_t p;//position
- c3_t s;//??? shape??? I dunno.
+ c3_t s;//??? shape??? I dunno. really. wtf was this for?
c3_t v;//velocity
} c3_group_rot_t;
@@ -113,7 +113,8 @@ struct hvr_global {
int shapes;
c3_group_rot_t *group_rot[SHAPES];//there can be less of these.
struct hashtable ht_group;
- c3_group_rot_t camera;
+ c3_group_rot_t eye[MAX_SIDES];//lol. 1000 eyes! array of group_rots for each eye. how to arrange eyes?
+ c3_group_rot_t camera;//should there be an array for this? camera has .s which is a shape struct. each point is the eye?
real zoom;
int derp;
real split;