make_trans_font man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

make_trans_font(3)		Allegro manual		    make_trans_font(3)

NAME
       make_trans_font	- Makes a font use transparency. Allegro game programā€
       ming library.

SYNOPSIS
       #include <allegro.h>

       void make_trans_font(FONT *f);

DESCRIPTION
       This function converts a font to use transparency for drawing. That is,
       each glyph in the font will be drawn with draw_trans_sprite, so you can
       use the same blenders as with draw_trans_sprite to draw the  font.  One
       common  use of this is to load a bitmap font with an alpha channel, and
       therefore  get  anti-aliased  text  output  by  using  Allegro's	 alpha
       blender. Here's an example how to do that:

	  FONT *f = load_font("alphafont.tga", NULL, NULL);
	  make_trans_font(f);
	  set_alpha_blender();
	  textprintf_centre_ex(screen, f, 320, 240, -1, -1, "Anti-aliased Font!");

SEE ALSO
       is_trans_font(3),	  set_alpha_blender(3),		 load_font(3),
       draw_trans_sprite(3)

Allegro				 version 4.4.2		    make_trans_font(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net