Sign in to follow this  
derek7

how to get a set of pointer?

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this