Sorry for the delay.
What I do is create a class for my 3D objects, for instance:
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.
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.