![]() |
![]()
| ![]() |
![]()
NAMEdraw_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); DESCRIPTIONMore 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, ranging from 0 (no strength) to 255 (full strength). Example:
SEE ALSOdraw_sprite(3), draw_lit_sprite(3), color_map(3), set_trans_blender(3), bitmap_mask_color(3), exshade(3)
|