A..2 1_CreateWindow.c

1_CreateWindow.c

   1 #include<stdio.h>
   2 #include<glsc3d_3.h>
   3 
   4 int main()
   5 {
   6     g_init("Window", 600, 600); //Pixel Size
   7     g_def_scale_2D(0,           //ID
   8                    -1, 1,       //xmin,xmax
   9                    -1, 1,       //ymin,ymax
  10                    20.0, 20.0,  //Window (Left, Top) Position
  11                    560, 560);   //Window Size (x,y)
  12     g_cls();                    //Clear window
  13     g_sel_scale(0);             //Select Virtual scale
  14     g_boundary();               //Draw Boundary
  15     g_finish();                 //flush Draw buffer
  16     g_sleep(10.0);              //Sleep 10 sec
  17     
  18     return 0;
  19 }



桂田 祐史