Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » Allegro 5.0.1 released!

This thread is locked; no one can reply to it. rss feed Print
Allegro 5.0.1 released!
Peter Wang
Member #23
April 2000

http://sourceforge.net/projects/alleg/files/allegro/5.0.1/

Quote:

Changes from 5.0.0 to 5.0.1 (March 2011)
========================================

The main developers this time were: Trent Gamblin, Elias Pschernig, Peter Wang.
Other contributions noted in-line.

Graphics:

- Automatically destroy framebuffer objects (FBOs) created for non-memory
bitmaps after a while. This solves the problem of running out of resources
if you set many different target bitmaps.

- Make al_get_opengl_fbo attempt to create an FBO if one doesn't exist.

- Avoid very small textures in Direct3D.

- Do not sync from memory when first creating/uploading a bitmap (D3D).

- Try to fix the problem of the taskbar appearing above fullscreen windows
on Windows.

- Center the window after toggling fullscreen on Windows.

Input:

- Support 4-way mouse-wheel and up to 32 mouse buttons in X11.

Audio addons:

- Avoid buffer overrun while reading from vorbis files.

- Added optional support for Tremor in place of libvorbis on any platform.

- Do not prefer DirectSound with OpenAL. This can cause problems and also
will override user config.

- Play silence where needed in DirectSound driver.

TTF addon:

- Do not hold bitmap drawing when changing target bitmap, which is invalid
and caused transformations to be misapplied.

- Remove FBO for a cache bitmap once we are no longer adding glyphs to it.

Build system:

- Force "default" visibility of _al_mangled_main on OS X, otherwise the
dynamic linker cannot find the symbol if building with XCode4
(Owen Anderson and Peter Hull).

- Generated pkg-config files should take into account LIB_SUFFIX variable
(Cristian Morales Vega).

- Update allegro_font pkg-config file to not require allegro_primitives.

Documentation:

- Various documentation updates.

- Add copy of DejaVu font licence.

Bindings:

- Add allegro_main addon to the Python wrapper. Make the wrapper work with
Python 3, which has a different string representation. Add parameter type
checking for custom types.

MD5SUMS:
dc1e3a5ebded833f3236787d00f1b409  allegro-5.0.1.7z
7a7dafa3362b97dd653f736e21f5ef21  allegro-5.0.1.tar.gz
d04a48a1ea84b23a9552fb1ef969c10c  allegro-5.0.1.zip

Billybob
Member #3,136
January 2003
avatar

Yay! Thanks for the continued effort guys and gals!

_________________________________________________
"God speed, my lonely angel."
Bitcoin | Bitcoin Ponzi Scheme

GullRaDriel
Member #3,861
September 2003
avatar

I'm trying it !

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Michał Cichoń
Member #11,736
March 2010

Build in progress...

"God starts from scratch too"
Windows Allegro Build Repo: http://targonski.nazwa.pl/thedmd/allegro/

GullRaDriel
Member #3,861
September 2003
avatar

I can't select the last item in the left list in ex_display_options.exe .

I can move on it with the keyboard, but can't select it with the mouse.

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Michał Cichoń
Member #11,736
March 2010

Fresh build for Windows!

Process terminated with status 0 (118 minutes, 56 seconds)
0 errors, 1649 warnings (118 minutes, 56 seconds)

allegro-5.0.1-mingw-3.4.5.7z
allegro-5.0.1-mingw-4.2.1-sjlj.7z
allegro-5.0.1-mingw-4.4.0.7z
allegro-5.0.1-mingw-4.5.0.7z
allegro-5.0.1-msvc-10.0.7z
allegro-5.0.1-msvc-8.0.7z
allegro-5.0.1-msvc-9.0.7z

"God starts from scratch too"
Windows Allegro Build Repo: http://targonski.nazwa.pl/thedmd/allegro/

Neil Walker
Member #210
April 2000
avatar

Well done.

I'm glad to see you now support 32 mouse buttons, that always bugged me with my mouse the size of a keyboard and only marginally less buttons ;)

Neil.
MAME Cabinet Blog / AXL LIBRARY (a games framework) / AXL Documentation and Tutorial

wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie

Matthew Leverton
Supreme Loser
January 1999
avatar

Next release will add support for 32 mice with 32 buttons each.

bamccaig
Member #7,536
July 2006
avatar

I just got my 5.0.0 RPM approved and then you hit me with this?! :'( What is the DejaVu license about? Sounds like something I should be aware of packaging Allegro for Fedora... :-X Append: The diff of the two releases seems to suggest that DejaVu is distributed with the examples and isn't actually part of Allegro in any way. Is this correct?

kenmasters1976
Member #8,794
July 2007

Thanks.

Peter Wang
Member #23
April 2000

bamccaig said:

The diff of the two releases seems to suggest that DejaVu is distributed with the examples and isn't actually part of Allegro in any way. Is this correct?

That's right.

bamccaig
Member #7,536
July 2006
avatar

Neil Roy
Member #2,229
April 2002
avatar

I'm glad to see you now support 32 mouse buttons, that always bugged me with my mouse the size of a keyboard and only marginally less buttons ;)

That made me laugh out loud. I was beginning to wonder why I was wasting my time with an old keyboard when I could be using a mouse. I'm starting to feel inadequate with just a little 3 button mouse now. ;D

kenmasters1976
Member #8,794
July 2007

I have a couple of minor issues with 5.0.1.

In one of my programs, I used to create a 2x2 bitmap to draw some simple dotted lines using al_draw_prim(). Now I've just found that it no longer works as it used to. I'm guessing it's due to the Avoid very small textures in Direct3D change.

So, what's the minimum texture size now?. On my machine, seems to be something like 16x16. Is that a safe minimum to assume so that it works on everyone's computer?.

The second issue seems to be a minor bug. It looks like al_set_new_window_position() puts the window slightly off (it was fine in 5.0.0). You can see it easily with al_set_new_window_position(0, 0). I'm using Windows XP SP2, by the way.

Trent Gamblin
Member #261
April 2000
avatar

Can you post a code sample using 2x2 bitmaps that fails?

For the second problem, I'll have to look into it... maybe this weekend if I remember (would be much easier to remember if it's on the bug tracker nudge).

kenmasters1976
Member #8,794
July 2007

This code is similar to what I'm doing in my program:

#SelectExpand
1#include <allegro5/allegro.h> 2#include <allegro5/allegro_opengl.h> 3#include <allegro5/allegro_primitives.h> 4 5 6 7ALLEGRO_DISPLAY *display = NULL; 8ALLEGRO_EVENT_QUEUE *events = NULL; 9ALLEGRO_BITMAP *pattern = NULL; 10 11 12 13void init_pattern() { 14 pattern = al_create_bitmap(2, 2); 15 al_set_target_bitmap(pattern); 16 al_clear_to_color(al_map_rgba(0, 0, 0, 0)); 17 al_draw_line(0.5, 0, 0.5, 2, al_map_rgb(0, 0, 255), 1); 18 al_set_target_bitmap(al_get_backbuffer(display)); 19} 20 21 22 23void draw_pattern_line(float x1, float y1, float x2, float y2) { 24 ALLEGRO_VERTEX vtx[2]; 25 26 vtx[0].x = x1; 27 vtx[0].y = y1; 28 vtx[0].z = 0; 29 vtx[0].u = 0; 30 vtx[0].v = 0; 31 vtx[0].color = al_map_rgba(255, 255, 255, 255); 32 33 vtx[1].x = x2; 34 vtx[1].y = y2; 35 vtx[1].z = 0; 36 vtx[1].u = 20; 37 vtx[1].v = 0; 38 vtx[1].color = al_map_rgba(255, 255, 255, 255); 39 40 al_draw_prim(vtx, 0, pattern, 0, 2, ALLEGRO_PRIM_LINE_LIST); 41} 42 43 44 45int main() { 46 al_init(); 47 al_install_keyboard(); 48 al_set_new_display_flags(ALLEGRO_WINDOWED); 49 al_set_new_window_position(0, 0); 50 display = al_create_display(640, 480); 51 al_init_primitives_addon(); 52 53 events = al_create_event_queue(); 54 assert(events); 55 al_register_event_source(events, al_get_keyboard_event_source()); 56 57 init_pattern(); 58 59 al_clear_to_color(al_map_rgb(255, 255, 255)); 60 draw_pattern_line(0, 0, 640, 480); 61 al_flip_display(); 62 while (al_is_event_queue_empty(events)) ; 63}

This is the output with 5.0.0:
{"name":"603823","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/d\/adb28b5e3773b17a2526e1eb0d6878b3.png","w":646,"h":512,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/d\/adb28b5e3773b17a2526e1eb0d6878b3"}603823

And this is the output with 5.0.1:
{"name":"603824","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/5\/f5baf76e6ef022ad4241af8246d6550c.png","w":643,"h":495,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/5\/f5baf76e6ef022ad4241af8246d6550c"}603824

Go to: