diff options
author | cnlohr <lohr85@gmail.com> | 2018-03-11 00:10:38 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2018-03-11 00:10:38 -0500 |
commit | c3f6a9a94575035b4226fc646989d561efe5c3f4 (patch) | |
tree | 38c66b591e25ff2a6a088698ef9682d98d080a04 /simple_pose_test.c | |
parent | a2ba45f43ae02b1e39b1816fe9c1c70c54a7f046 (diff) | |
download | libsurvive-c3f6a9a94575035b4226fc646989d561efe5c3f4.tar.gz libsurvive-c3f6a9a94575035b4226fc646989d561efe5c3f4.tar.bz2 |
update with spinning view
Diffstat (limited to 'simple_pose_test.c')
-rw-r--r-- | simple_pose_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/simple_pose_test.c b/simple_pose_test.c index 4b392b9..aef3de5 100644 --- a/simple_pose_test.c +++ b/simple_pose_test.c @@ -126,7 +126,7 @@ void *GUIThread(void*v) CNFGGetDimensions( &screenx, &screeny ); int x, y; - float eye[3] = { 8, 8, 8}; + float eye[3] = { sin(TimeSinceStart)*4, cos(TimeSinceStart)*4, 4}; float at[3] = { 0,0, 0 }; float up[3] = { 0,0, 1 }; @@ -141,6 +141,7 @@ void *GUIThread(void*v) tdLookAt( gSMatrix, eye, at, up ); CNFGColor( 0x00ffff ); DrawLineSegment( hpos[0], hpos[1], hpos[2], hpos2[0], hpos2[1], hpos2[2] ); + CNFGColor( 0xff00ff ); DrawLineSegment( hpos[0], hpos[1], hpos[2], hpos[0], hpos[1], hpos[2] ); CNFGColor( 0x0000ff ); DrawLineSegment( 0, 0, 0, 1, 0, 0 ); CNFGColor( 0xff0000 ); DrawLineSegment( 0, 0, 0, 0, 1, 0 ); CNFGColor( 0x00ff00 ); DrawLineSegment( 0, 0, 0, 0, 0, 1 ); |