12_g_def_scale_3D_fix.c |
1 #include<stdio.h> 2 #include<glsc3d_3.h> 3 #define WX (600) 4 #define WY (600) 5 int main() 6 { 7 g_init("Window", WX, WY); 8 g_def_scale_3D_fix(0, 9 -1, 1, 10 -1, 1, 11 -1, 1, 12 20.0, 20.0, 13 WX - 40.0, WY - 40.0); 14 15 for (int i_time = 0;; i_time++) 16 { 17 g_cls(); 18 g_sel_scale(0); 19 g_boundary(); 20 g_sphere_3D(0.0, 0.0, 0.0, 21 1.0, 0, 1); 22 23 g_box_3D(-1, 1, -1, 1, -1, 1, 1, 0); 24 g_finish(); 25 } 26 return 0; 27 } |