yes you can !
the only thing you need twice is Texture2D.
greetings
Michael Nischt
code-example
//TEXTURE LOADING
TextureLoader loader = new TextureLoader("./maps/sky.jpg","RGB", container);
ImageComponent2D image = loader.getImage();
Texture2D skyTexture = new Texture2D(Texture.BASE_LEVEL, Texture.RGB, 128,
128);
skyTexture.setImage(0, image);
loader = new TextureLoader("./maps/texture.jpg","RGB", container);
image = loader.getImage();
Texture2D mapTexture = new Texture2D(Texture.BASE_LEVEL , Texture.RGB, 128,
128);
mapTexture.setImage(0, image);
Am Freitag, 1. Juni 2001 11:00 schrieben Sie:
> Hi all,
>
> can I reuse the ImageComponent object I use, after setting it to a
> Texture object, i. e. does the Texture object hold a copy of the
> ImageComponent object or a reference ?
>
> I have a lot of images with the same size and format and want to use as
> little memory as possible.
>
> Thanks for answers !
>
> regards
> Paul
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".