home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / radiance / nextrad.lha / NeXtRad / NeXtInterface.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-22  |  645 b   |  23 lines

  1. /* NeXtInterface.h */
  2.  
  3. /* written by : Jason R. Wilson    2/21/93 */
  4.  
  5. /* this package (along with CView) provides a NeXtStep interface for
  6.     NeXtRad */
  7.     
  8. #include <stdlib.h>
  9. #include <stdio.h>
  10.  
  11. int winWidth;    /* width of the view area in pixels */
  12. int winHeight;  /* height of the view area in pixels */
  13.  
  14. void SetWidth (int width);
  15.     /* sets the width of the view screen */
  16. void SetHeight (int height);
  17.     /* sets the height of the view screen */
  18. void SetPixel  (int x, int y,unsigned char r,unsigned char g,unsigned char b);
  19.     /* sets a pixel in the Screen Buffer */
  20. void Update (void);
  21.     /* updates the view area (redraws the screenbuf) */
  22.  
  23.