Jump to content
  • Advertisement
Sign in to follow this  
BloodLust666

multiple IDirect3DTexture objects?

This topic is 5008 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!