Hi all
I am a bit of a learner in C++ what i need to know is how to read a vector without having to put a number in square braces.
I am making a program using an engine called Irrlicht to develop the application (RPG Builder 3D) and I use the mouse pointer to select a node (model) and repaint it but i only want it to paint the nodes[] vector and not anything else
IMeshSceneNode<Vector>* Nodes;
For (i=1024*4*3 ; i<1024 ; i++)
{
nodes.PushBack(i); //etc etc
}
for example (this is not the official code but it is simular)
so there are over 900 nodes in total nodes[900] - how do i get the program to look for the nodes[] Vector without me having to specify a node for it to check
if ( SelectedSceneNode == nodes[#] && SelectedSceneNode != Models[#]){ a += 1;} for example
if it is possible can you help me please.
Cheers
I am a bit of a learner in C++ what i need to know is how to read a vector without having to put a number in square braces.
I am making a program using an engine called Irrlicht to develop the application (RPG Builder 3D) and I use the mouse pointer to select a node (model) and repaint it but i only want it to paint the nodes[] vector and not anything else
IMeshSceneNode<Vector>* Nodes;
For (i=1024*4*3 ; i<1024 ; i++)
{
nodes.PushBack(i); //etc etc
}
for example (this is not the official code but it is simular)
so there are over 900 nodes in total nodes[900] - how do i get the program to look for the nodes[] Vector without me having to specify a node for it to check
if ( SelectedSceneNode == nodes[#] && SelectedSceneNode != Models[#]){ a += 1;} for example
if it is possible can you help me please.
Cheers