home *** CD-ROM | disk | FTP | other *** search
/ Computer Panoráma / computer_panorama_1997-12-hibas.iso / SHARE / GRAPH / PTC051.ZIP / EXAMPLES / README.TXT < prev    next >
Text File  |  1997-09-23  |  1KB  |  29 lines

  1.                           ===========================
  2.                           = PTC051 example programs =
  3.                           ===========================
  4.  
  5.  
  6. Here are some simple examples to get you started with PTC.
  7.  
  8. rand32.cpp          // a simple random putpixel program in 32bit color
  9. rand16.cpp          // the same, just in 16bit color
  10. 256color.cpp        // shows how to do 256 color graphics using PTC
  11. primary.cpp         // grabs the primary surface to write directly to screen
  12. profile.cpp         // measures the performance of the PTC converter routines
  13. modelist.cpp        // prints a list of all available video modes
  14. image.cpp           // loads an image and displays it
  15.  
  16.  
  17. to compile the examples use the batch files:
  18.  
  19. eg. wc11 rand32       (compiles rand32.cpp with Watcom C++ 10.x) 
  20.     wc10x modelist    (compiles modelist.cpp with Watcom C++ 10.x)
  21.     djgpp2x profile   (compiles profile.cpp using DJGPP 2.x)
  22.  
  23.  
  24. Please read the accompanying text files for each example program for more
  25. information. If you are just starting out with PTC, a good example program to
  26. try first is the "rand32.cpp" example. The text file "rand32.txt" provides a
  27. lot of information about PTC and how to use it effectively in your own
  28. programs.
  29.