-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: hackvr action: commit revision: path_from: revision_from: 7c9c6dcb800fcf4652b7f481a5f0693035e673ef: path_to: revision_to:
commit 7c9c6dcb800fcf4652b7f481a5f0693035e673ef Author: epoch <epoch@hacking.allowed.org> Date: Thu Jun 25 08:18:22 2020 -0500 added horizon line back diff --git a/src/graphics_c3.c b/src/graphics_c3.c
--- a/src/graphics_c3.c +++ b/src/graphics_c3.c @@ -421,9 +421,13 @@ void draw_screen() { //draw_sky();//???p? //XCopyArea(global.dpy,skypixmap,global.backbuffer,global.backgc,((camera.yr*5)+SKYW)%SKYW,0,WIDTH,global.height/2,0,0); } - if(gra_global.draw3d) {//wtf? why do I not compensate for camaera rotation along the x and z? - //draw_c2_line((c2_t){LEFT,0},(c2_t){RIGHT,0}); //horizon - } + //if(gra_global.draw3d) {//wtf? why do I not compensate for camaera rotation along the x and z? + //horizon line + draw_c2_line((c2_t){LEFT, + (int)((real)(global.camera.r.x.d) * (real)(BOTTOM+BOTTOM) / (real)90.0)}, + (c2_t){RIGHT, + (int)((real)(global.camera.r.x.d) * (real)(BOTTOM+BOTTOM) / (real)90.0)}); + //} ///// shiiiit. I should be applying group rotations to all these shapes before sorting them. //when I do that. I need to make sure to take the group rotation out of draw_c3_shape()'s code. for(i=0;global.shape[i];i++) {
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 18:32:05 2024