[AD] draw_lit_sprite doc update |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
This thread:
http://www.allegro.cc/forums/view_thread.php?_id=228670&request=1040599642&
Prompted this patch. I have never used the draw_lit_sprite routine, so I
don't know how accurate this patch is.
--
- Robert Jr Ohannessian
http://bob.allegronetwork.com/
The peer will come and reset your connection. RUN WHILE YOU STILL CAN!
Index: docs/src/allegro._tx
===================================================================
RCS file: /cvsroot/alleg/allegro/docs/src/allegro._tx,v
retrieving revision 1.116
diff -u -r1.116 allegro._tx
--- docs/src/allegro._tx 21 Dec 2002 10:10:49 -0000 1.116
+++ docs/src/allegro._tx 22 Dec 2002 23:19:02 -0000
@@ -3933,11 +3933,14 @@
@@void @draw_lit_sprite(BITMAP *bmp, BITMAP *sprite, int x, int y, int color);
@xref draw_sprite, draw_trans_sprite, draw_gouraud_sprite
@xref draw_lit_rle_sprite, color_map, set_trans_blender, bitmap_mask_color
- Tints the sprite image to the specified color or light level, using the
- global color_map table, and draws the resulting image to the destination
- bitmap. This must only be used after you have set up the color mapping
- table (for 256 color modes) or blender functions (for truecolor modes).
-
+ Draws the source sprite on the destination bitmap by tinting it to the
+ specified color or light level. This must only be used after you have set
+ up the color mapping table (for 256 color modes) or blender functions
+ (for truecolor modes). The color parameter may be used for alpha-only
+ blending (such as the trans blender), in which case it must be a value in
+ the range [0-255].
+
+
@\void @draw_gouraud_sprite(BITMAP *bmp, BITMAP *sprite, int x, int y,
@@ int c1, int c2, int c3, int c4);
@xref draw_sprite, draw_lit_sprite, color_map, set_trans_blender