how to get a set of pointer?

Started by
1 comment, last by moeron 18 years, 11 months ago
for example IDirect3DTexture9 **tex; this way I can get a list of pointer of IDirect3DTexture9? or I must do this: IDirect3DTexture9* tex[];??
Advertisement
Um... I have no idea what you're trying to get help for but i'll try.

I think you're looking for a Data Structure, namely a Linked List, Stack, Vector, Queue or whatever.

Check into the STL Classes.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
                                                          
Looking for video game music? Check out some of my samples at http://www.youtube.c...ser/cminortunes            
                                                          
I'm currently looking to create music for a project, if you are interested e-mail me at cminortunes@gmail.com    
                                                          
Please only message me for hobby projects, I am not looking to create music for anything serious.
Quote:Original post by derek7
for example

IDirect3DTexture9 **tex;

this way I can get a list of pointer of IDirect3DTexture9?

or I must do this:

IDirect3DTexture9* tex[];??


IDirect3DTexture9* tex[] == IDirect3DTexture9 **tex
Just like
int[] is really an int*

But like SumDude said, its a lot easier to just manage an STL container such as
std::vector<LPDIRECT3DTEXTURE9>
moe.ron

This topic is closed to new replies.

Advertisement