[AD] Buried set_color_conversion

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Maybe problems with color conversion are related to the fact that
set_color_conversion is buried in the "Loading image files" chapter and
not in "Converting between color formats".
? gcc_bug_fix.sh
? makedoc.dst
? makedoc.epr
? pending_allegro_drivers_translation.txt
? reconfigure.sh
Index: docs/src/allegro._tx
===================================================================
RCS file: /cvsroot/alleg/allegro/docs/src/allegro._tx,v
retrieving revision 1.203
diff -u -r1.203 allegro._tx
--- docs/src/allegro._tx	18 Dec 2003 11:31:00 -0000	1.203
+++ docs/src/allegro._tx	27 Dec 2003 22:09:34 -0000
@@ -4012,7 +4012,11 @@
 @eref ex12bit, exrgbhsv, exscroll
    Sets the specified palette entry to the specified RGB triplet. Unlike the 
    other palette functions this doesn't do any retrace synchronisation, so 
-   you should call vsync() before it to prevent snow problems.
+   you should call vsync() before it to prevent snow problems. Example:
+<codeblock>
+   RGB my_new_pink_color = { 63, 0, 63 };
+   ...
+   set_color(20, &my_new_pink_color);<endblock>
 
 @@void @_set_color(int index, const RGB *p);
 @xref set_color, set_gfx_mode, timer_simulate_retrace
@@ -4494,6 +4498,7 @@
 @\void @blit(BITMAP *source, BITMAP *dest, int source_x, int source_y,
 @@          int dest_x, int dest_y, int width, int height);
 @xref masked_blit, stretch_blit, draw_sprite, gfx_capabilities
+@xref set_color_conversion
    Copies a rectangular area of the source bitmap to the destination bitmap. 
    The source_x and source_y parameters are the top left corner of the area 
    to copy from the source bitmap, and dest_x and dest_y are the 
@@ -4575,7 +4580,7 @@
 @xref draw_sprite_v_flip, draw_trans_sprite, draw_lit_sprite
 @xref draw_gouraud_sprite, stretch_sprite, rotate_sprite, draw_character_ex
 @xref draw_rle_sprite, draw_compiled_sprite, masked_blit, blit
-@domain.hid bitmap_mask_color
+@xref bitmap_mask_color, set_color_conversion
 @eref exsprite
    Draws a copy of the sprite bitmap onto the destination bitmap at the 
    specified position. This is almost the same as blit(sprite, bmp, 0, 0, x, 
@@ -5775,7 +5780,7 @@
 the conversion).
 
 @@int @bestfit_color(const PALETTE pal, int r, int g, int b);
-@domain.hid makecol8
+@xref makecol8, set_color_conversion
    Searches the specified palette for the closest match to the requested 
    color, which are specified in the VGA hardware 0-63 format. Normally you 
    should call makecol8() instead, but this lower level function may be 
@@ -5783,7 +5788,7 @@
    one, or specifically don't want to use the rgb_map lookup table.
 
 @@extern RGB_MAP *@rgb_map;
-@domain.hid create_rgb_table, makecol8
+@xref create_rgb_table, makecol8, set_color_conversion
 @eref ex3d, excolmap, exrgbhsv, exshade, extrans
    To speed up reducing RGB values to 8-bit paletted colors, Allegro uses a 
    32k lookup table (5 bits for each color component). You must set up this 
@@ -5798,7 +5803,7 @@
       
 @\void @create_rgb_table(RGB_MAP *table, const PALETTE pal,
 @@                      void (*callback)(int pos));
-@domain.hid rgb_map
+@xref rgb_map, set_color_conversion
    Fills the specified RGB mapping table with lookup data for the specified 
    palette. If the callback function is not NULL, it will be called 256 
    times during the calculation, allowing you to display a progress 
@@ -5806,6 +5811,7 @@
 
 @@void @hsv_to_rgb(float h, float s, float v, int *r, int *g, int *b);
 @@void @rgb_to_hsv(int r, int g, int b, float *h, float *s, float *v);
+@xref set_color_conversion
 @eref exlights, exrgbhsv
    Convert color values between the HSV and RGB colorspaces. The RGB values 
    range from 0 to 255, hue is from 0 to 360, and saturation and value are 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/