Skip to main content
gamedev.net
🔒 Locked

Using multiple textures...

Started by riversteed Mar 2, 2000 at 12:29 PM 1 replies 400+ views
Original Post
riversteed
riversteed
I''m trying to change the code to allow for different tiles to have different textures... However, when i call set texture inside the rendering loop, it seems to apply the texture to the entire scene, not just the tile I want to render. Anyone have any suggestions? Note, this is the first time I have played with D3D, so be kind
riversteed
riversteed
Oops, this was supposed to be in reply to the previous thread.


Oh, well.
Spellbound
Spellbound
Everything rendered after a SetTexture will use that texture. If you want to use different textures for different tile you need to make sure the right textured is set before rendering the tiles. This may involve calling SetTexture() for every tile, but it is generally better to sort the rendering after the textured they use to minimize texture swap in videomemory.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.