• Advertisement
Sign in to follow this  

how to get a set of pointer?

This topic is 4623 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

for example IDirect3DTexture9 **tex; this way I can get a list of pointer of IDirect3DTexture9? or I must do this: IDirect3DTexture9* tex[];??

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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>

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement