Main Menu

Texture

Started by Pelle, May 13, 2005, 11:45:22 PM

Previous topic - Next topic

Pelle

Hello Helge

If I want to use the same texture image on several objects,and I want to manipulate the texture with, let's say
a different text on the top, using the ITextureEffect.
This will not be possible without making a copy of that image and load it again with a different name, am I right?
Is there a way where I can create a new instance of a texture without loading a new image.
Would it be possible to clone the dummy texture into a new instance?

Regards
Pelle

EgonOlsen

Quote from: "Pelle"
Is there a way where I can create a new instance of a texture without loading a new image.
Currently not. You may load an Image into a byte array and access that as a "blue print" for loading the texture via an ByteArrayInputstream multiple times. There is a post somewhere here about loading a texture from an byte array.