draw_gouraud_sprite man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

draw_gouraud_sprite(3)		Allegro manual		draw_gouraud_sprite(3)

NAME
       draw_gouraud_sprite - Draws a sprite with gouraud shading. Allegro game
       programming library.

SYNOPSIS
       #include <allegro.h>

       void draw_gouraud_sprite(BITMAP *bmp, BITMAP *sprite, int x, int y, int
       c1, int c2, int c3, int c4);

DESCRIPTION
       More  sophisticated version of draw_lit_sprite(): the 'color' parameter
       is not constant	across	the  sprite  image  anymore  but  interpolated
       between	the  four specified corner colors. The corner values passed to
       this function indicate the strength of the color applied on them, rang‐
       ing from 0 (no strength) to 255 (full strength). Example:

	  /* Some one time initialisation code. */
	  COLOR_MAP global_light_table;
	  create_light_table(&global_trans_table, my_palette,
			     0, 0, 0, NULL);
	  ...
	  if (get_color_depth() == 8)
	     color_map = &global_light_table;
	  else
	     set_trans_blender(0, 0, 0, 128);

	  /* Enemies are in shadow unless lit by torch. */
	  draw_gouraud_sprite(buffer, menacing_spy, x, y,
			      light_strength_on_corner_1,
			      light_strength_on_corner_2,
			      light_strength_on_corner_3,
			      light_strength_on_corner_4);

SEE ALSO
       draw_sprite(3), draw_lit_sprite(3), color_map(3), set_trans_blender(3),
       bitmap_mask_color(3), exshade(3)

Allegro				 version 4.4.2		draw_gouraud_sprite(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net