home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 August - Disc 3 / chip_20018103_hu.iso / amiga / chipgame / 3dgpl.lha / graphics.h < prev    next >
C/C++ Source or Header  |  1996-11-20  |  2KB  |  39 lines

  1. #ifndef _GRAPHICS_H_
  2. #define _GRAPHICS_H_
  3.  
  4. /** 3DGPL *************************************************\
  5.  *  (8bit deep bitmap)                                    *
  6.  *  Header for 2D graphics stuff.                         *
  7.  *                                                        *
  8.  *  grp-base.c               basic graphics;              *
  9.  *  grp-text.c               text;                        *
  10.  *  grp-poly.c               polygon rendering.           *
  11.  *                                                        *
  12.  *  (6/1995) By Sergei Savhenko. (savs@cs.mcgill.ca).     *
  13.  *  Copyright (c) 1995 Sergei Savchenko.                  *
  14.  *  THIS SOURCE CODE CAN'T BE USED FOR COMERCIAL PURPOSES *
  15.  *  WITHOUT AUTHORISATION                                 *
  16. \**********************************************************/
  17.  
  18. #define G_MAX_TUPLES            50          /* big enough? */
  19. #define G_MAX_SHADED_TUPLES    100
  20. #define G_MAX_TEXTURED_TUPLES  120
  21.  
  22. unsigned char *G_init_graphics(void);
  23. void G_clear(void);
  24. void G_dot(int *vertex,unsigned char colour);
  25. void G_line(int *vertex1,int *vertex2,unsigned char colour);
  26.  
  27. void G_text(int x,int y,char *string,unsigned char colour);
  28.  
  29. void G_ambient_polygon(int *edges,int length,unsigned char colour);
  30. void G_shaded_polygon(int *edges,int length);
  31. void G_textured_polygon(int *edges,int length,int *O,int *u,int *v,
  32.                         unsigned char *texture,int log_texture_size,
  33.                                                int log_texture_scale
  34.                        );
  35.  
  36. /*********************************************************/
  37.  
  38. #endif
  39.