home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / source / devel5 / plg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-23  |  1.1 KB  |  29 lines

  1. /* Header file for plg file routines */
  2.  
  3. /* Written by Bernie Roehl, March 1992 */
  4.  
  5. /* Copyright 1992 by Dave Stampe and Bernie Roehl.
  6.    May be freely used to write software for release into the public domain;
  7.    all commercial endeavours MUST contact Bernie Roehl and Dave Stampe
  8.    for permission to incorporate any part of this software into their
  9.    products!
  10.  */
  11.  
  12. extern int load_err;  /* set if an error was encountered during loading */
  13. extern void set_loadplg_offset(long x, long y, long z);
  14. extern void set_loadplg_scale(float x, float y, float z);
  15. extern void set_loadplg_depthsort(int type);
  16. extern OBJECT *load_plg(FILE *in);
  17. extern OBJECT *load_multi_plg(FILE *in);
  18. extern OBJECT *load_extra_rep(FILE *in, OBJECT *obj, long size);
  19. extern save_plg(OBJECT *obj, FILE *out, int world_coords);
  20. extern void set_loadplg_colormap(unsigned *map, int msize);
  21. extern void strip_comment(char *buff);  /* also trim newline character(s) */
  22.  
  23. extern int load_err;   /* set if an error was encountered during loading */
  24. extern int err_line;   /* line on which error occurred */
  25.  
  26. extern char *plg_errmsgs[];
  27.  
  28. /* End of plg.h */
  29.