home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / demos / gpc / tests / text.v04 < prev    next >
Encoding:
Text File  |  1991-02-13  |  6.0 KB  |  167 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.v04
  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 pseudo_color;
  41.     Read_geometry_file "text.d01";
  42.     Specify_report_file "text.r04";
  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.     Define_color
  54.          8     1     0     0    %    Red        %
  55.          9     0     1     0    %    Greeen        %
  56.          10     0     0     1    %    Blue        %
  57.          11     1     1     0    %    Yellow        %
  58.          12     0     1     1    %    Cyan        %
  59.          13     1     0     1    %    Majenta        %
  60.          14     1     1     1    %    White        %
  61.          15     0     0     0    %    Black        %
  62.          16     0.300000     0.300000     0.800000 ;
  63.     Text_color_index          14 ;
  64.     Background_color_index    16 ;
  65.  
  66. % ****************************************************************** %
  67. % Set up matrix for position geometry on the screen                  %
  68. % ****************************************************************** %
  69.     Identity3  1  ; 
  70.     Apply_to_global3  1  ; 
  71.     Scale3  0  100  100  1 Replace  ; 
  72.     Translate3  0  -333   333  0 Postconcat  ;     % Set Initial position  %
  73.     Translate3  1   333     0  0 Replace  ;     % Set Column offset     %
  74.     Translate3  2     0  -333  0 Replace   ;     % Set Row offset        %
  75.     Push_matrix3  ;                 % Push Initial position %
  76.  
  77. % *********************************************************************** % 
  78. %                                                                         % 
  79. %                                                                         % 
  80. %                           Begin Test Loop                               % 
  81. %                                                                         % 
  82. % *********************************************************************** % 
  83. Begin_test  1  ; 
  84.     Text3  -450  -450  0 "Text Test: pseudo_color perspective";
  85.     Text3  -450  -495  0 "text.v04";
  86. % *********************************************************************** % 
  87. %                           Row 1 Column 1                                %
  88. % *********************************************************************** %
  89.  
  90.   Text_color_index  8;
  91.  
  92.   Char_height     0.140000;
  93.   Char_exp  1.000000;
  94.   Char_space  0;
  95.   Char_up_vector  0 1;
  96.   Apply_to_global3  0  ; 
  97.   Call_structure   20  ; 
  98. % *********************************************************************** % 
  99. %                           Row 1 Column 2                                %
  100. % *********************************************************************** %
  101.  
  102.   Text_color_index  9;
  103.  
  104.   Char_height     0.160000;
  105.   Char_exp  1.000000;
  106.   Char_space  0.500000;
  107.   Char_up_vector  0 1;
  108.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  109.   Apply_to_global3  0  ; 
  110.   Call_structure   20  ; 
  111. % *********************************************************************** % 
  112. %                           Row 1 Column 3                                %
  113. % *********************************************************************** %
  114.  
  115.   Text_color_index  14;
  116.  
  117.   Char_height     0.180000;
  118.   Char_exp  1.000000;
  119.   Char_space  0;
  120.   Char_up_vector  0 1;
  121.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  122.   Apply_to_global3  0  ; 
  123.   Call_structure   20  ; 
  124. % *********************************************************************** % 
  125. %                           Row 2 Column 1                                %
  126. % *********************************************************************** %
  127.  
  128.   Text_color_index  12;
  129.  
  130.   Char_height     0.200000;
  131.   Char_exp  1.600000;
  132.   Char_space  0;
  133.   Char_up_vector  0.700000 0.700000;
  134.   Pop_matrix3  ; 
  135.   Concat_matrix3  2  0 postconcat  ;         % Move down one row %
  136.   Push_matrix3  ; 
  137.   Apply_to_global3  0  ; 
  138.   Call_structure   20  ; 
  139. % *********************************************************************** % 
  140. %                           Row 2 Column 2                                %
  141. % *********************************************************************** %
  142.  
  143.   Text_color_index  13;
  144.  
  145.   Char_height     0.220000;
  146.   Char_exp  1.800000;
  147.   Char_space  -0.500000;
  148.   Char_up_vector  0 1;
  149.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  150.   Apply_to_global3  0  ; 
  151.   Call_structure   20  ; 
  152. % *********************************************************************** % 
  153. %                           Row 2 Column 3                                %
  154. % *********************************************************************** %
  155.  
  156.   Text_color_index  11;
  157.  
  158.   Char_height     0.240000;
  159.   Char_exp  2.000000;
  160.   Char_space  0;
  161.   Char_up_vector  -0.700000 0.700000;
  162.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  163.   Apply_to_global3  0  ; 
  164.   Call_structure   20  ; 
  165. End_test  ; 
  166. Sleep 5 ;
  167.