Author Topic: Texture  (Read 3279 times)

Pelle

  • Guest
Texture
« on: May 13, 2005, 11:45:22 pm »
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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Texture
« Reply #1 on: May 15, 2005, 06:23:42 pm »
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.