home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / demos / gpc / tests / text.v03 < prev    next >
Encoding:
Text File  |  1991-02-13  |  5.7 KB  |  157 lines

  1. %
  2. /*--------------------------------------------------------------------*\
  3. |
  4. |   Copyright (c)1989,1990 National Computer Graphics Association
  5. |
  6. |       Permission is granted to any individual or instititution 
  7. |  to use, copy, or redistribute this software so long as it is not
  8. |    sold for profit, provided this copyright notice is retained.
  9. |
  10. |                         Developed for the
  11. |               National Computer Graphics Association
  12. |                        2722 Merrilee Drive
  13. |                         Fairfax, VA  22031
  14. |                           (703) 698-9600
  15. |
  16. |                                 by
  17. |                SimGraphics Engineering Corporation
  18. |                   1137 Huntington Drive, Suite A
  19. |                      South Pasadena, CA  91030
  20. |                           (213) 255-0900
  21. |---------------------------------------------------------------------
  22. |
  23. | Author    :    SimGraphics Engineering Corporation
  24. | File          :    text.v03
  25. | Date          :    Tue Jul 10 16:43:18 PDT 1990
  26. | Project       :    Picture Level Benchmark
  27. | Description    :    See text.DOC
  28. | Status    :    Version 1.02
  29. | Revisions     :    1.01: Apply_to_global3 removed from data file 
  30. |            and moved to inside test loop.  This eased
  31. |            problems for PHIGS ports.
  32. |
  33. |            1.02:
  34. |            Files text.d02 text.d03 text.d04
  35. |            have been replaced with file text.d01
  36. |
  37. \*--------------------------------------------------------------------*/
  38. %
  39.  
  40.     Configuration rgb double_buffer true_color;
  41.     Read_geometry_file "text.d01";
  42.     Specify_report_file "text.r03";
  43.     Default_view_specification  1  500 perspective;
  44.     Active_view  1  ; 
  45.  
  46. % ****************************************************************** %
  47. % Set up static attributes                                           %
  48. % ****************************************************************** %
  49.     Text_prec Stroke ;
  50.     Char_exp  1 ;
  51.     char_height  30 ;
  52.  
  53.     Text_color  1  1  1 ;
  54.     Background_color    0.300000  0.300000  0.800000 ;
  55.  
  56. % ****************************************************************** %
  57. % Set up matrix for position geometry on the screen                  %
  58. % ****************************************************************** %
  59.     Identity3  1  ; 
  60.     Apply_to_global3  1  ; 
  61.     Scale3  0  100  100  1 Replace  ; 
  62.     Translate3  0  -333   333  0 Postconcat  ;     % Set Initial position  %
  63.     Translate3  1   333     0  0 Replace  ;     % Set Column offset     %
  64.     Translate3  2     0  -333  0 Replace   ;     % Set Row offset        %
  65.     Push_matrix3  ;                 % Push Initial position %
  66.  
  67. % *********************************************************************** % 
  68. %                                                                         % 
  69. %                                                                         % 
  70. %                           Begin Test Loop                               % 
  71. %                                                                         % 
  72. % *********************************************************************** % 
  73. Begin_test  1  ; 
  74.     Text3  -450  -450  0 "Text Test: true_color perspective";
  75.     Text3  -450  -495  0 "text.v03";
  76. % *********************************************************************** % 
  77. %                           Row 1 Column 1                                %
  78. % *********************************************************************** %
  79.  
  80.   Text_color  1 0 0;
  81.  
  82.   Char_height     0.140000;
  83.   Char_exp  1.000000;
  84.   Char_space  0;
  85.   Char_up_vector  0 1;
  86.   Apply_to_global3  0  ; 
  87.   Call_structure   20  ; 
  88. % *********************************************************************** % 
  89. %                           Row 1 Column 2                                %
  90. % *********************************************************************** %
  91.  
  92.   Text_color  0 1 0;
  93.  
  94.   Char_height     0.160000;
  95.   Char_exp  1.000000;
  96.   Char_space  0.500000;
  97.   Char_up_vector  0 1;
  98.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  99.   Apply_to_global3  0  ; 
  100.   Call_structure   20  ; 
  101. % *********************************************************************** % 
  102. %                           Row 1 Column 3                                %
  103. % *********************************************************************** %
  104.  
  105.   Text_color  1 1 1;
  106.  
  107.   Char_height     0.180000;
  108.   Char_exp  1.000000;
  109.   Char_space  0;
  110.   Char_up_vector  0 1;
  111.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  112.   Apply_to_global3  0  ; 
  113.   Call_structure   20  ; 
  114. % *********************************************************************** % 
  115. %                           Row 2 Column 1                                %
  116. % *********************************************************************** %
  117.  
  118.   Text_color  0 1 1;
  119.  
  120.   Char_height     0.200000;
  121.   Char_exp  1.600000;
  122.   Char_space  0;
  123.   Char_up_vector  0.700000 0.700000;
  124.   Pop_matrix3  ; 
  125.   Concat_matrix3  2  0 postconcat  ;         % Move down one row %
  126.   Push_matrix3  ; 
  127.   Apply_to_global3  0  ; 
  128.   Call_structure   20  ; 
  129. % *********************************************************************** % 
  130. %                           Row 2 Column 2                                %
  131. % *********************************************************************** %
  132.  
  133.   Text_color  1 0 1;
  134.  
  135.   Char_height     0.220000;
  136.   Char_exp  1.800000;
  137.   Char_space  -0.500000;
  138.   Char_up_vector  0 1;
  139.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  140.   Apply_to_global3  0  ; 
  141.   Call_structure   20  ; 
  142. % *********************************************************************** % 
  143. %                           Row 2 Column 3                                %
  144. % *********************************************************************** %
  145.  
  146.   Text_color  1 1 0;
  147.  
  148.   Char_height     0.240000;
  149.   Char_exp  2.000000;
  150.   Char_space  0;
  151.   Char_up_vector  -0.700000 0.700000;
  152.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  153.   Apply_to_global3  0  ; 
  154.   Call_structure   20  ; 
  155. End_test  ; 
  156. Sleep 5 ;
  157.