a "minimum" WinG sample application (C) by R.Hess description
This is a very quick sample application that illustrates what could be considered a 'minimum' WinG application.
STATIC - A WinG Sample Application
--------------------------------------------------------------------------
Written by Robert B. Hess
This is a very quick sample application that illustrates what could be
considered a 'minimum' WinG application.
What it does, is create a bitmap, and gets a pointer to the data buffer
associated with the bitmap. It also creates a palette, and properly
associated this palette with the bitmap, and then it randomly selects
a color index for the first pixel in the bitmap, and then proceeds to
walk the entire bitmap, indexing the color of each pixel based on the
first pixel.
To use this as a starting point for your WinG application, you would want
to modify the code that sets the colors of the selected palette (I'm just
using random values), and then you would want to modify the code that is
being used to assign the values of the pixels to be appropriate for your
application.
Over time, this program will most likely be updated to include new or
more accurate information and methods. Please be sure to check back
with the location that you downloaded this from in order to see if
a newer version exists.
-Robert
File List:
MAKEFILE
3Kb
MAKEFILE.16
1Kb
README.TXT
2Kb
STATIC.C
26Kb
STATIC.DEF
182b
STATIC.H
493b
STATIC.ICO
1Kb
STATIC.RC
1Kb
STATIC16.EXE
9Kb
STATIC16.MAK
2Kb
STATIC32.EXE
20Kb
STATIC32.MAK
7Kb
Similar code
Animation kit v1.0B
(Popularity: ) : the animation kit contains robust samples for animating bitmaps, text, and cursors taken from the popular game jewel thief (on cd as jwlthf.Zip). With C source.