home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / source / povsrc22 / machine / inmos / inmos.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-01  |  5.4 KB  |  114 lines

  1. /****************************************************************************/
  2. /*                   inmos.c                                                */
  3. /*                                                                          */
  4. /*  This module implements the Transputer specific routines for POV-Ray.    */
  5. /*                                                                          */
  6. /*  for Persistence of Vision Raytracer                                     */
  7. /*  Copyright 1994 Parham Data Products and POV-Team                        */
  8. /*  ----------------------------------------------------------------------  */
  9. /*  Copying, distribution and legal info is in the file povlegal.doc which  */
  10. /*  should be distributed with this file. If povlegal.doc is not available  */
  11. /*  or for more info please contact:                                        */
  12. /*                                                                          */
  13. /*       Wayne Parham [President, Parham Data]                              */
  14. /*       Phone: (918) 663-2131                                              */
  15. /*       Internet: 74224.2176@compuserve.com                                */
  16. /*       Compuserve: 74224,2176                                             */
  17. /*                                                                          */
  18. /* This program is based on the popular DKB raytracer version 2.12.         */
  19. /* DKBTrace was originally written by David K. Buck.                        */
  20. /* DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.  */
  21. /*                                                                          */
  22. /****************************************************************************/
  23.  
  24. #include <stdarg.h>
  25. #include <time.h>
  26. #include "frame.h"
  27. #include "povproto.h"
  28.  
  29. /* Transputer Heap Management                                               */
  30. /*                                                                          */
  31. /* Modify to reflect actual amount of Transputer RAM                        */
  32. /*                                                                          */
  33. /* extern void *_heapend;       <-      Pointer to End of Memory            */
  34. /*                                                                          */
  35. /* void Config_Transputer_RAM()                                             */
  36. /*    {                                 1Mb - 0x80100000   2Mb - 0x80200000 */
  37. /*    _heapend = (void *) 0x8yy00000;   4Mb - 0x80400000   8Mb - 0x80800000 */
  38. /*    }                                16Mb - 0x81000000  32Mb - 0x82000000 */
  39.  
  40. extern void *_heapend;
  41.  
  42. void Config_Transputer_RAM()
  43.    {
  44.    _heapend = (void *) 0x80400000;
  45.    }
  46.  
  47. /*                                                                          */
  48. /* ANSI Standard psuedo-random number generator                             */
  49. /*                                                                          */
  50.  
  51. #if !__STDC__
  52.  
  53. static unsigned long int next = 1;
  54.  
  55. int rand()
  56.    {
  57.    next = next * 1103515245L + 12345L;
  58.    return ((int) (next / 0x10000L) & 0x7FFF);
  59.    }
  60.  
  61. void srand(seed)
  62.    unsigned int seed;
  63.    {
  64.    next = seed;
  65.    }
  66.  
  67. #endif
  68.  
  69. /*                                                                          */
  70. /* Miscellaneous (and as of yet, undefined) Functions                       */
  71. /*                                                                          */
  72.  
  73. void display_init(width, height)
  74. int width, height;
  75.    {
  76.    }
  77.  
  78. void display_finished()
  79.    {
  80.    }
  81.  
  82. void display_close()
  83.    {
  84.    }
  85.  
  86. void display_plot(x, y, Red, Green, Blue)
  87.    int x, y;
  88.    char Red, Green, Blue;
  89.    {
  90.    }
  91.  
  92. void Print_Credits()
  93.   {
  94.   fprintf (stderr,"       Persistence of Vision Raytracer Ver 2.2%s\n",COMPILER_VER);
  95.   fprintf (stderr,"╔════════════════════════════════════════════════════════════════════════╗\n");
  96.   fprintf (stderr,"║  Copyright (c) 1993  POV-Team                                          ║\n");
  97.   fprintf (stderr,"║  POV-Ray is based on DKBTrace 2.12 by David K. Buck & Aaron A. Collins.║\n");
  98.   fprintf (stderr,"║                                                                        ║\n");
  99.   fprintf (stderr,"║                          T800 Transputer POV-Ray                       ║\n");
  100.   fprintf (stderr,"║                     for the Parham Data Products 8401                  ║\n");  
  101.   fprintf (stderr,"║              and other Inmos T800 based Parallel Processors            ║\n");  
  102.   fprintf (stderr,"║                      Parham Data: +1 (918) 663-2131                    ║\n");  
  103.   fprintf (stderr,"║────────────────────────────────────────────────────────────────────────║\n");
  104.   fprintf (stderr,"║  Contributing Authors: (Alphabetically)                                ║\n");
  105.   fprintf (stderr,"╟────────────────────────────────────────────────────────────────────────╢\n");
  106.   fprintf (stderr,"║      Steve Anger        Steve A. Bennett   David K. Buck               ║\n");
  107.   fprintf (stderr,"║      Aaron A. Collins   Alexander Enzmann  Dan Farmer                  ║\n");
  108.   fprintf (stderr,"║      Douglas Muir       Bill Pulver        Robert Skinner              ║\n");
  109.   fprintf (stderr,"║      Scott Taylor       Drew Wells         Chris Young                 ║\n");
  110.   fprintf (stderr,"║    Other contributors listed in the documentation.-                    ║\n");
  111.   fprintf (stderr,"╚════════════════════════════════════════════════════════════════════════╝");
  112.   }  
  113.  
  114.