Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
First Allegro test..
#1
I just ported an Allegro example to FB, the star fields one: http://fbc.sourceforge.net/allegrotest.zip

The Allegro DLL (http://prdownloads.sourceforge.net/alleg...p?download) must be installed in the Windows system directory.

Using DrV's W.I.P. Allegro headers.


(you many noticed a bunch of weird []'s there, but unfortunately they are needed to use Allegro, as many important structs are actually global C arrays that can't be accessed as ordinary arrays (QB/FB have descriptors).
Reply
#2
Code:
if( *(@al_key+KEY_ESC) <> 0 )then
:o :o :o :o
One day you will have to write a tutorial for us poor mortals....
Antoni
Reply
#3
al_key is a variable, from which you get the adress

You then add the key value to the adress

And check if tha value on the new adress is <> 0


It's sort of having an array:
Code:
al_key = VARSEG(KeyArray(0))
If PEEK(al_key+27) <> 0 Then


Sort of Big Grin
Reply
#4
Quote:Using DrV's W.I.P. Allegro headers.

Where can I find them?

I only know, that DrV have here showing the first allegro example, which I can compile and run on my computer.
And then there existing his GFX sample side. But the "Simple FreeBasic Allegro-Test" there comes also without an allegro.bi - but it is needed to compile the example.

So, where can I find it?


Greatings
theuserbl
Reply
#5
Very cool!!!
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#6
The headers are in the CVS (search at the sourceforge site) but you can't use them without the lastest compiler version, that wasn't released yet.. maybe today, maybe tomorrow..
Reply
#7
Its out right now, when you posted this :bounce:
f a fly walked, would it be called a walk?
Why dosn't someone make a word that rymes with purple or orange?
WHY AM I SO ANNOYING? Becuase I wanna!
Why am I typeing this? Cuz im bored!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)