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 >
Wrap
Text File
|
1997-09-23
|
1KB
|
29 lines
===========================
= PTC051 example programs =
===========================
Here are some simple examples to get you started with PTC.
rand32.cpp // a simple random putpixel program in 32bit color
rand16.cpp // the same, just in 16bit color
256color.cpp // shows how to do 256 color graphics using PTC
primary.cpp // grabs the primary surface to write directly to screen
profile.cpp // measures the performance of the PTC converter routines
modelist.cpp // prints a list of all available video modes
image.cpp // loads an image and displays it
to compile the examples use the batch files:
eg. wc11 rand32 (compiles rand32.cpp with Watcom C++ 10.x)
wc10x modelist (compiles modelist.cpp with Watcom C++ 10.x)
djgpp2x profile (compiles profile.cpp using DJGPP 2.x)
Please read the accompanying text files for each example program for more
information. If you are just starting out with PTC, a good example program to
try first is the "rand32.cpp" example. The text file "rand32.txt" provides a
lot of information about PTC and how to use it effectively in your own
programs.