home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / Snippets / QuickDraw / ClutWind / CLUTSample.readme < prev    next >
Encoding:
Text File  |  1992-07-15  |  1.2 KB  |  28 lines  |  [TEXT/MPS ]

  1. #    Apple Macintosh Developer Technical Support
  2. #
  3. #    CLUTSample
  4. #
  5. #   Loosely based in the sample SAMPLE this program shows
  6. #   how to create a window and display on it the colors of the CLUT
  7. #    associated with the device the window sits on top of.
  8. #
  9. #    Left to the curious reader are some improvements such as, remembering the
  10. #    positions of each open window, so if you use this program to monitor your
  11. #    color tables it will position the windows in the last place you opened them.
  12. #    The treatment of direct devices is kind of 'casual' a better color display may 
  13. #    be appropriate. Last, it may be desireable to change the size of the color
  14. #    rectangles depending on the depth of the color table.
  15.  
  16. #    Check Sample sources for more detailed documentation regarding segmentation, 
  17. #   memory allocation and such.
  18.  
  19. #    The procedures containing the code I want to show are:
  20. #
  21. #    CLUTSample.a --> OpenClutWindow: Opens windows used to display the device
  22. #                                     CLUT.
  23. #
  24. #    CLUTSampleMisc.a --> DrawClut: Gets and sets the device with the max depth
  25. #                                   the window spans and uses its color table to
  26. #                                   display colors.
  27. #
  28. #    Dennis Hexcox, Macintosh Developer Technical Support 1990