Jump to content
  • Advertisement
Sign in to follow this  
derek7

how to get a set of pointer?

This topic is 4802 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!