Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How i load textures

majcmajc Member Posts: 7
[b][red]This message was edited by majc at 2004-10-15 11:49:42[/red][/b][hr]
[b][red]This message was edited by majc at 2004-10-15 11:49:28[/red][/b][hr]
Someone can tell me how i load a texture of my .x mesh in directx?





Comments

  • Srki_KiSrki_Ki Member Posts: 26
    : [b][red]This message was edited by majc at 2004-10-15 11:49:42[/red][/b][hr]
    : [b][red]This message was edited by majc at 2004-10-15 11:49:28[/red][/b][hr]
    : Someone can tell me how i load a texture of my .x mesh in directx?

    When you load a mesh it is divided in to subsets. Each subset has it's own material and texture. You will need array for storing textures of each subset. First yuo get texture file names from material list, then load textures, draw mesh subsets with their material and texture, and finaly when you destroy mesh you destroy and textures.

Sign In or Register to comment.