Hi, I've been using the DarkGDK in C++ for awhile now (and I'm enjoying it), and I've come across some questions I'd like answered before I continue developed, please.
On the Wiki documentation it states:
Quote: "
http://darkgdk.wikia.com/wiki/DbLoadObject
the old object will be replaced by the newly loaded one.
"
Does this mean that the current object will be freed (dbDeleteObject) automatically? If not, it seems to imply this (not deleting it *seems* to cause a memory leak, as expected).
How does one go about obtaining an object on the screen (a db objectID) based off the mouse's X and Y (or even Z) coordinates? If so, how (if there is no db functions for this, I can come up with my own methods, all I'm looking for is a db method, or 'no DB can't do this for you')
How would you retrieve the point of a vector on the screen (for instance if I have my camera pointed somewhere) would I retrieve the 2D screen coordinates so I could call a function?
* This ones a bit hard to understand so scenario:
I've rendered a object (*.x), and the camera is pointed at it so I can see it. I know the objects X,Y,Z access, how I use dbText() (or should I use another function) to write a name above it's head?
What is the dbText3D function, there seems to be no documentation on it (I've googled, checked the WIKI, and checked the help file) and it only takes on parameter (instead of 3d vector points), "char* szText".
Am I right about there being certain functions as "dbSetTerrainHeightMap()" where it sets a field, but there is no "get" method to re-obtain the information, then I take it I must store the information in my own class, a better example of this is scaling an object, and not being able to re-obtain through db functions (or at least from what I can see) what it was scaled to.
How do you delete a terrain (if you should), do you use dbDeleteObject()? If you can't delete a terrain, wouldn't this use unnecessary memory?
Is there any way to loop an object backwards? (Forward being dbLoopObject()) other than manually changing frames (dbSetObjectFrame()).
Look forward to your replies, and thanks in advance.
~ Hybrid, the Infamous Noone