中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
作者:
标题: 新DOS编程的利器--Allegro介绍 上一主题 | 下一主题
Wengier
系统支持

“新DOS时代”站长


积分 27734
发帖 10521
注册 2002-10-9
状态 离线
『楼 主』:  新DOS编程的利器--Allegro介绍

Allegro是近年来著名的编程库,非常强大实用,下面就来简单的介绍一下:

Allegro is a portable library mainly aimed at video game and multimedia programming, originally started by Shawn Hargreaves for the DJGPP compiler in a mixture of C and assembler.
According to the Oxford Companion to Music, Allegro is the Italian for «quick, lively, bright». It is also a recursive acronym which stands for «Allegro Low LEvel Game ROutines».

Graphic functions(图形功能)

Vectorial drawing:
pixels, lines, rectangles, circles, ellipses, arcs, Bezier splines
shape fill, with or without pattern
polygons: flat, Gouraud, textured and translucent
Sprites:
masked, compressed and compiled sprites
blitting, rotation, stretching, reduction, alpha blending, Gouraud shading
native support for BMP, LBM, PCX and TGA files (others supported with library extensions)
Color palettes:
color palette manipulation (reading, writing, conversion)
conversion of color formats RGB  HSV
Texts:
text output in Unicode format (masking, colouring, alignment)
Misc:
draw directly on the screen or on any-size memory bitmaps
hardware scrolling and triple buffering (where available), mode-X split screen
animation functions for FLI/FLC format

Graphic drivers

Dos:
VGA 13h mode
mode-X (23 VGA resolution plus unchained 640x400 extended mode)
SVGA modes in 8, 15, 16, 24 and 32 bits per pixel
linear VBE 2.0 framebuffer access
hardware acceleration through VBE/AF API if supported
additional graphic drivers through FreeBE/AF project

Sound functions(声音功能)

Midi:
native MIDI music format support (with 64 simultaneous effects)
dynamic control/response to music note on, note off, main volume, pan, pitch bend, and program change
uses General MIDI patches
you can read in wavetable patches for MIDI files (SF2 and GUS patches)
Wave:
native support of WAV and VOC file formats (playing looped forward, backwards or bidirectional)
streaming audio
modify volume, pan, pitch, etc during play

Sound drivers

Dos:
Adlib, SB, SB Pro, SB16, AWE32
MPU-401
ESS AudioDrive
Ensoniq Soundscape
Windows Sound System

Math functions(数学功能)

fixed point aritmetic and trigonometric routines
precalculated trigonometric tables
vector/matrix/quaternions 3d manipulation (translation, rotation, scaling, projection)

Misc(其它功能)

mouse, keyboard and joystick management
high resolution interruption timers (resolution of 10, 5 or less ms depending on platform)
vertical retrace symulation under DOS
manipulate configuration files
manipulate compressed files in LZSS format
manipulate multi-object resource-like compressed datafiles
tool for creating datafiles (grabber)
simple GUI for dialogs and file selector



Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

2003-5-24 00:00
查看资料  发送邮件  访问主页  发短消息 网志  OICQ (29206679)  编辑帖子  回复  引用回复
Wengier
系统支持

“新DOS时代”站长


积分 27734
发帖 10521
注册 2002-10-9
状态 离线
『第 2 楼』:  

顶!



Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

2003-6-2 00:00
查看资料  发送邮件  访问主页  发短消息 网志  OICQ (29206679)  编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: