Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

draw_gouraud_sprite(3alleg4) [debian man page]

draw_gouraud_sprite(3alleg4)					  Allegro manual				      draw_gouraud_sprite(3alleg4)

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, ranging 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(3alleg4), draw_lit_sprite(3alleg4), color_map(3alleg4), set_trans_blender(3alleg4), bitmap_mask_color(3alleg4), exshade(3alleg4) Allegro version 4.4.2 draw_gouraud_sprite(3alleg4)

Check Out this Related Man Page

draw_gouraud_sprite(3alleg4)					  Allegro manual				      draw_gouraud_sprite(3alleg4)

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, ranging 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(3alleg4), draw_lit_sprite(3alleg4), color_map(3alleg4), set_trans_blender(3alleg4), bitmap_mask_color(3alleg4), exshade(3alleg4) Allegro version 4.4.2 draw_gouraud_sprite(3alleg4)
Man Page

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Please help!

Hi All, I was wondering if low strength Ciphers could be avoided on Linux.Following is one kind of solution that I came up with, but not sure if this is correct. Any help would be appreciated! Solution: Add the following lines in ssl.conf file: SSLProtocol all -SSLv2 SSLCipherSuite... (0 Replies)
Discussion started by: nua7
0 Replies

2. AIX

How to find TX and RX strength?

I have an AIX server running 6.1. My SAN switch is reporting that it is only receiving 5.9 uWatts (micro watts) and it should be well over 100 uWatts. How can I see the transmit strength of my fiber card from within AIX? I have Emulex fiber cards. (1 Reply)
Discussion started by: kah00na
1 Replies