Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Use Allegro with Tilengine

This thread is locked; no one can reply to it. rss feed Print
Use Allegro with Tilengine
Niunio
Member #1,975
March 2002
avatar

I've discovered Tilengine. As it's creator said:

Quote:

It's not a complete game development kit, it's specifically a graphics-only library. Think of it as a kind of virtual 2D graphics chip that must be paired with other components.

I asked and he said me that:

Quote:

It was originally designed without any windowing system, you must provide an external surface for rendering in a compatible pixel format.
(...)
Tilengine uses an ARGB pixel format for 32 bpp, and packed 565 RGB for 16 bpp.

I have no idea about how to do that, even if it is possible use Tilengine along with Allegro. Did somebody tested it? Do you have an idea about how can be used?

-----------------
Current projects: Allegro.pas | MinGRo

Audric
Member #907
January 2001

If I understand correctly, he means it will write, in memory, at the address you provide.
For example in Allegro 4 you pass screen->line[0] : The address of the first (top left) pixel.

SiegeLord
Member #7,827
October 2006
avatar

For Allegro 5, you can use al_lock_bitmap and grab that information from ALLEGRO_LOCKED_REGION.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Niunio
Member #1,975
March 2002
avatar

Thank you. :)

-----------------
Current projects: Allegro.pas | MinGRo

Go to: