Loading same texture more than once?

Blitz3D Forums/Blitz3D Programming/Loading same texture more than once?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You can load it once...

MyText=LoadTexture("Silo.bmp")

Texture each Silo...

EntityTexture SiloA,MyText
EntityTexture SiloB,MyText
EntityTexture SiloC,MyText
EntityTexture SiloD,MyText

then free the memory as the texture is now set to the material info of the mesh...

FreeTexture MyText

However without 'Free-ing' the Texture, you can manipulate/animate it where required, but as you are using the same texture, updating it once will update all instances.

___________________________________________

Just re-read you r post.

Are the silo meshes all the same? If so, loaad one, texture it, free the texture, and copyentity for the other 3 and just re-copy each time you need a new station.