bb.EntityName error

Blitz3D SDK Forums/Blitz3D SDK Programming/bb.EntityName error

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Sorry for the delay.

What I do is create a class for my 3D objects, for instance:


class WorldObject
{

// The Blitz 3D object
public int Object
{
get {return m_n_object;}
} private int m_n_object;

// The name property
public string Name
{
get {return m_s_name;}
set {m_s_name = value;}
} private string m_s_name;


// other methods properties here, construction etc....

}



Obviously if creating a class for each object is a little too much overhead for your purposes then you could create a structure which is created on the stack which is faster access than classes which are created on the heap.

Or you could even create a key-value array with the object pointer as the key and the name as the value.