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.

Dark GDK / Vectors - Multiple Kinds. Share Same "ID" Pool or Not? Any idea?

Author
Message
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 17th Sep 2007 05:15
Hello, thanx for popping in. I have this question:

First there are commands such as:

dbMakeVector2(id);
dbMakeVector3(id);

and

dbDeleteVector2(id);
dbDeleteVector3(id);

Question is what the topic subject reads.

Do these different KINDS of vectors use different ID pools?

For instance - will these COEXIST or Will the dbMakeVector3(1) seem to overwrite dbMakeVector2(1)?:

dbMakeVector2(1);
dbMakeVector3(1);


(If you know great - tests I've so far - don't crash. I even tried deleting the same vector 2 times. I haven't tried storing and retrieving values because this wouldn't necessarily be definitive)

Thanx in advance.

kBessa
18
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 17th Sep 2007 06:50
Jason,

From the tests I've done, yes, they share the same id: Vector2, Vector3, Vector4 and Matrix4. I've even released a new version of LightEngine just to make a correction to the classes.

I think I understand why this occurs, they are probably inherited from a same base class (I mean, internally on DGDK).

Is just like MakeBox and MakeSphere, they are sharing IDs because they are equally 3D objects, and maybe Vector2 and Vector3 also share because they are equally math objects.

That's just my thoughts, but I may be wrong.

Best regards,
Thiago
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 17th Sep 2007 13:46
Thanx - and I found out from IanM that there is a 3dmath (vector) exists function also (In C++ you had to add the declation manually but it runs)

Thanx for your help kBessa/Thiago!


unitech
17
Years of Service
User Offline
Joined: 27th Jun 2007
Location:
Posted: 17th Sep 2007 14:33
Hey jason just to add here, below your post you will see the same topic.

http://forum.thegamecreators.com/?m=forum_view&t=114159&b=22
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 17th Sep 2007 15:55
I wonder why I didn't see that Thank You. We are evidently both crawling through the same stuff in the API Sorry for the double post.

unitech
17
Years of Service
User Offline
Joined: 27th Jun 2007
Location:
Posted: 17th Sep 2007 18:28
Ya seems we are think along the same lines a lot.

Login to post a reply

Server time is: 2024-11-16 20:28:40
Your offset time is: 2024-11-16 20:28:40