I have a vector called actorVector which stores an array of objects of type actorManager.
The actorManager class has a private attribute, which is also an object of type GLFrame. It has an accessor, getFrame(), which returns a pointer to the GLFrame object.
I have passed a pointer of actorVector to a function, so its a pointer to a vector of objects of type actorManager.
I need to pass the GLFrame object as a parameter to this function:
modelViewMatrix.MultMatrix(**GLFrame isntance**);
I’ve currently been trying to do it as such, but im not getting any results.
modelViewMatrix.MultMatrix(*(*actorVector)[i].getFrame());
Any ideas?
Assuming
MultMatrixtakes anActorManagerby value or by reference (as opposed to by pointer), then you want this:Note that the precedence rules mean that the above is equivalent to:
However, that’s what you already have, so there must be something you’re not telling us…