Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Allegro vector variables ... Darkbasic Pro equivalent?

Author
Message
Philip
23
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 20th Jun 2003 17:59
I think the C // Allegro libraries have a type of variable known as a "vector" variable.

Does DarkBasic Pro have any equivalent? Any suggestions?

Also, how are double variables declared in DarkBasic Pro? Can I just declare them:

[name of double variable] = [value of double variable]

All thoughts gratefully welcomed.
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 20th Jun 2003 22:58
Yes, DBpro does have vector types.

And what are double variables ?

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th Jun 2003 23:16
MrTAToad, he means:

MyValue as double float
MyValue=0.123456789012345



Philip: Your best bet is to have a look at the help pages. Just type 'make vector3' into the editor and hit F1.

I've just used them to get nice looking vertex normals added to my terrain engine.

Login to post a reply

Server time is: 2026-07-11 14:57:05
Your offset time is: 2026-07-11 14:57:05