GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DRAW_LIT_RLE_SPRITE (3)

NAME

draw_lit_rle_sprite - Draws a tinted RLE sprite. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

#include <allegro.h>

void draw_lit_rle_sprite(BITMAP *bmp, const RLE_SPRITE *sprite, int x, y, color);

DESCRIPTION

Tinted version of draw_rle_sprite(). See the description of draw_lit_sprite(). This must only be used after you have set up the color mapping table (for 256-color modes) or blender functions (for truecolor modes). Example:

   /* Some one time initialisation code. */
   COLOR_MAP global_light_table;
   create_light_table(&global_trans_table, my_palette,
                      10, 10, 60, NULL);
   ...
   if (get_color_depth() == 8)
      color_map = &global_light_table;
   else
      set_trans_blender(40, 40, 255, 255);
  
   /* Lit the cape with a blueish light. */
   draw_lit_rle_sprite(buffer, rle_colored_cape, x, y, 64);

SEE ALSO

draw_rle_sprite(3), draw_trans_rle_sprite(3), draw_lit_sprite(3), color_map(3), set_trans_blender(3), bitmap_mask_color(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro DRAW_LIT_RLE_SPRITE (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.