pointers

M

Michael Sgier

Hi
why is he using such pointers? Why pointers anyway? Wouldn't there be a
more simple way to do such?
Thanks Michael


/// Pointer to array of pointers to cameras in the scene.
fCamera** m_parrpCameras;
 
A

Alf P. Steinbach

* Michael Sgier:
Hi
why is he using such pointers? Why pointers anyway? Wouldn't there be a
more simple way to do such?
Thanks Michael


/// Pointer to array of pointers to cameras in the scene.
fCamera** m_parrpCameras;

It might because of the requirements of some API.

But still it would probably be better to do

std::vector<fCamera*> myCameraPointers;


Cheers & hth.,

- Alf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,078
Latest member
MakersCBDBlood

Latest Threads

Top