diff options
author | epoch <epoch@thebackupbox.net> | 2020-04-21 20:33:06 -0500 |
---|---|---|
committer | epoch <epoch@thebackupbox.net> | 2020-04-21 20:33:06 -0500 |
commit | d360ca00d1cd52787668f7f712190aa026556ae7 (patch) | |
tree | 852f2e380839d0eaab20c5cff21c3ba84a7c5487 | |
parent | 3382a8ca8da1a1fd4388b019d7c0c6999d74d72b (diff) | |
download | hackvr-d360ca00d1cd52787668f7f712190aa026556ae7.tar.gz hackvr-d360ca00d1cd52787668f7f712190aa026556ae7.zip |
moved default load position and got rid of group_rot stuff
-rw-r--r-- | src/graphics_c3.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/graphics_c3.c b/src/graphics_c3.c index 2af58d7..9db6657 100644 --- a/src/graphics_c3.c +++ b/src/graphics_c3.c @@ -541,13 +541,11 @@ int graphics_init() {//return the fd needed to read graphics events. global.shape[0]=0;//we'll allocate as we need more. global.camera.id=strdup(global.user);//make a copy so if we change global.user later we can reattach to this camera. - global.group_rot[0]=&global.camera; ht_setkey(&global.ht_group,global.user,&global.camera);//merp. this will probably break when you try to change global.user to anything else. - global.group_rot[1]=0;//why do we have the camera in here? we need to prevent this from getting deleted. global.camera.p.x=0; - global.camera.p.y=10; - global.camera.p.z=-6; + global.camera.p.y=0; + global.camera.p.z=-6;//back away from the 0 z plane so it is easier to draw 2D GUIs gra_global.oldcamera=global.camera.r; gra_global.input_mode=DEFAULT_INPUT_MODE; |