Sign in to follow this  

multiple IDirect3DTexture objects?

This topic is 4674 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 the IDirect3DTexture interface... can i have multiple instances? Such as more than one object to handle more than one texture? or do u handle more than one texture a different way? If you CAN have multiply objects, can u have multiple objects of ALL the IDirect3D interfaces, just as sound, sprite, etc?

Share this post


Link to post
Share on other sites
Yes. You have to have multiple objects for your textures. You can have multiple objects of other types but things like the sprite interface can be used (and it is quicker to do so) all from one instance - no need to create more. In the case of the sprite object it purely provides mechanisms for drawing 2D where as the texture object also abstracts the actual texture data.

Share this post


Link to post
Share on other sites
ok, so when making multiple texture objects, do i need to have multiple IDirect3DTexture objects, or just have multiple pointers to that one object? If that makes sense...

Share this post


Link to post
Share on other sites
Quote:
Original post by EvilKnuckles666
ok, so when making multiple texture objects, do i need to have multiple IDirect3DTexture objects, or just have multiple pointers to that one object? If that makes sense...

Multiple pointers. Also, make sure that whenever you make a copy, you AddRef().

Share this post


Link to post
Share on other sites

This topic is 4674 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.

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