Window positioning demo

Image obtained by using pbm driver and then converted to png.

 1 
 2 #pragma _ipath "./"
 3 #include "plcdemos.h"
 4 
 5 
 6 int
 7 main(int argc, char *argv[])
 8 {
 9 
10 
11     (void) plParseOpts(&argc, argv, PL_PARSE_FULL);
12 
13 
14     plinit();
15 
16     pladv(0);
17     plvpor(0.0, 1.0, 0.0, 1.0);
18     plwind(0.0, 1.0, 0.0, 1.0);
19     plbox("bc", 0.0, 0, "bc", 0.0, 0);
20 
21     plsvpa(50.0, 150.0, 50.0, 100.0);
22     plwind(0.0, 1.0, 0.0, 1.0);
23     plbox("bc", 0.0, 0, "bc", 0.0, 0);
24     plptex(0.5, 0.5, 1.0, 0.0, 0.5, "BOX at (50,150,50,100)");
25     plend();
26     exit(0);
27 }

Copyright 2006 Roman Putanowicz

Email: putanowr at twins.pk.edu.pl

Last Modified: Thu, 13 Jul 2006 15:37:00 CEST

Made with PubTal 3.1.3