Programming °æ (¾«»ªÇø)
·¢ÐÅÈË: lansh (²×º£Ò»ËÚ), ÐÅÇø: Programming
±ê Ìâ: Allegro ÓÎÏ·³ÌÐò¿â (RLE ¾«Áé)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2002Äê09ÔÂ11ÈÕ20:09:14 ÐÇÆÚÈý), Õ¾ÄÚÐżþ
·¢ÐÅÈË: cloudwu (ÔÆ·ç), ÐÅÇø: GAME_Designer
±ê Ìâ: Allegro ÓÎÏ·³ÌÐò¿â (RLE ¾«Áé)
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sun Jun 21 09:13:25 1998)
- ÐÅÇø: 77
-------------------------------------------------------------------
Ðżþ: 16 ÈÕÆÚ: 20 Jun 98
21:23:48
À´×Ô: Cloud Wu
¸ø: All
Ö÷Ìâ: Allegro ÊÖ²á (RLE ¾«Áé)
-----------------------------------------------------------------------------
-
½ñÌì¸Õ¿¾Íê CET-4, æ×Å»Ø Cfido ÐÅ, »Ø e-mail, ¸üРHomepage...
×îºóҲûÍü·ÒëÒ»µã Allegro ÊÖ²á. ʱ¼ä²»¶à,Õâ´Î¾ÍÕâôһµã ;-P
¹Ø×¢·Òë½ø³ÌµÄ,ÇëÈ¥ÎÒµÄÖ÷Ò³,±Ï¾¹ÎÒÉÏ Cfido µÄƵÂʲ»¸ß.
btw, Èç¹û¶ÔÕÕ E ÎÄ,·¢ÏÖÎÒÌù©ÁË,ÇëÂíÉϸæÖ®
______ ___ ___
/\ _ \ /\_ \ /\_ \
\ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
\ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
\ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
\ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
\/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
/\____/
\_/__/ 3.0 °æ
Ò»¸öÓÎÏ·³ÌÐò¿â
By Shawn Hargreaves, 1994/97
ÔÆ·ç Òë cloudwu@163.net
6ÔÂ20ÈÕ http://www.nease.net/~cloudwu
=====================================
============ RLE ¾«Áé ============
=====================================
ÒòΪλͼÄܹ»ÒԺܶ෽ʽÔËÓÃ, λͼµÄÊý¾Ý½á¹¹Ò²¾Í·Ç³£µÄ¸´ÔÓÁË,
²¢ÇÒ°üº¬ÁËÐí¶àµÄÊý¾Ý. È»¶øÔÚÐí¶àÇé¿öÏÂ,
Ä㽫·¢ÏÖÄã×Ô¼º´¢´æµÄͼƬ½ö½öÖ»ÊÇÐèÒª¸´ÖƵ½ÆÁÄ»ÉÏ,
¶ø²»ÊÇÓÃÀ´×öÌî³äͼ°¸µÈ.
Èç¹ûÊÇÕâÑù, Äã×îºÃ½«ÄãµÄͼƬ´¢´æΪ RLE_SPRIT
»ò COMPILED_SPRITE ½á¹¹¶ø²»Êdz£¹æλͼ.
RLE ¾«ÁéÒÔÒ»¸ö¼òµ¥µÄÔËÐÐÐбàÂë¸ñʽ´¢´æͼƬ, ÔÚÕâÖÖ¸ñʽÀï
Öظ´µÄÁãµãÓÃÒ»¸ö³¤¶Èͳ¼ÆÊýÀ´±íʾ,
·ÇÁãµã´®ÓɼÆÊýÆ÷¸ø³ö³¤¶È.
RLE ¾«Áéͨ³£±ÈÆÕͨµÄλͼСµÄ¶à, ¼´ÒòΪÐÐѹËõ,
ÓÖÒòΪ±ÜÃâÁËÐí¶àÎÞÓõÄλͼÊý¾Ý½á¹¹.
ËüÃǾ³£±ÈÆÕͨλͼҪ¹¤×÷µÄ¿ì,
ÒòΪËü²»ÓñȽÏÿ¸öµãÊÇ·ñÊÇÁãÀ´¾ö¶¨
ÊÇ·ñÓ¦¸Ã»³öÀ´, Ò»¸ö add ¾Í¿ÉÄܺöÂÔµôÕû¶ÎÁã,
¶øÇÒ¿ÉÒÔÓÿìËٵĴ®²Ù×÷¸´ÖÆÒ»´ó¶Î·ÇÁãµÄµã.
È»¶ø, ÈκÎÓñ¶¼ÓÐ覴Ã, ÓÉÓÚ RLE ¾«Áé
ȱÉÙÈáÈÍÐÔ. Äã²»ÄÜÔÙÔÚÉÏÃæ×÷», ²»ÄÜ·ÕÛ,Ðýת,»òÀÉì
ËüÃÇ. ÊÂʵÉÏÄãΨһÄÜ×öµÄÊÇ
ʹÓà draw_rle_sprite() º¯Êý½«Ëü»ÔÚλͼÉÏ,
¾ÍÏ൱ÓÚʹÓà draw_sprite() »Ò»¸ö³£¹æµÄλͼ. Äã¿ÉÒÔÔÚ
ÔËÐÐʱ½«Î»Í¼×ª»»³É RLE ¾«Áé, ÄãÒ²¿ÉÒÔÔÚ grabber Êý¾ÝÎļþÖÐ
Ñ¡ 'RLE' °´Å¦½¨Á¢Î»Í¼À´´´½¨ RLE ¾«Áé.
RLE_SPRITE *get_rle_sprite(BITMAP *bitmap);
ÒÔÖ¸¶¨µÄλͼΪ»ù´¡À´´´½¨Ò»¸ö RLE ¾«Áé (±ØÐëÊÇ
ÄÚ´æλͼ).
void destroy_rle_sprite(RLE_SPRITE *sprite);
´Ý»ÙÒ»¸öÓÉÏÈÇ° get_rle_sprite() ´´½¨µÄ RLE ¾«Áé½á¹¹.
void draw_rle_sprite(BITMAP *bmp, RLE_SPRITE *sprite, int x, int y);
½«Ò»¸ö RLE ¾«Áé»ÔÚλͼµÄÖ¸¶¨Î»ÖÃ.
void draw_trans_rle_sprite(BITMAP *bmp, RLE_SPRITE *sprite, int x, int y);
draw_rle_sprite() µÄ°ë͸Ã÷°æ±¾. ÃèÊö¼û
draw_trans_sprite(). Õâ¸öÖ»ÄÜʹÓÃÔÚÄãÉèÖÃÁË
É«²ÊÓ³Éä±í ( 256 ɫģʽ) »ò»ìºÏ±í (Õæ²Êģʽ) ÒÔºó.
void draw_lit_rle_sprite(BITMAP *bmp, RLE_SPRITE *sprite, int x, y, color);
draw_rle_sprite() µÄµ»¯(Tint) °æ±¾. ÃèÊö¼û
draw_lit_sprite(). Õâ¸öÖ»ÄÜʹÓÃÔÚÄãÉèÖÃÁË
É«²ÊÓ³Éä±í ( 256 ɫģʽ) »ò»ìºÏ±í (Õæ²Êģʽ) ÒÔºó.
>>> _/_/_/_/ _/ _/ /-_/_ _ /, _ E-mail: cloud@188.com
> _/ _/ _/ _/ _\ /_ /_//_/_/ |_| ½³ÇÀË×Ó Cloud Wu »¶ÓÄãÀ´
_/_/_/_/ _/_/_/_/_/ http://www.nease.net/~cloudwu ÔƷ繤×÷ÊÒ ¼ÅÖ¡
½... ·ÂþÂþÆäÐÞÔ¶Ùâ,ÎὫÉÏ϶øÇóË÷!
--
http://www.nease.net/~cloudwu
http://computer.igd.edu.cn/~cloud(û¸üÐÂ)
E-mail: cloudwu@163.net
--
ÈËÉúµÃÒâÐ辡»¶£¬ÄªÊ¹½ðé׿նÔÔ¡£
ÌìÉúÎҲűØÓÐÓã¬Ç§½ðÉ¢¾¡»¹¸´À´¡£
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: hitsat.hit.edu.cn]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º2.714ºÁÃë