nel-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nel] Display a logo


From: Cyril 'Hulud' Corvazier
Subject: Re: [Nel] Display a logo
Date: Wed, 26 Mar 2003 15:22:37 +0100

Hi,

> void initlogo()
> {
> text = new CTextureFile("nel128.tga");
> text->setReleasable(false); // in order not to release this texture
> }

This will change nothing. It forces the texture to keep the bitmap in system 
memory after the bitmap has been uploaded in video
memory by the driver.
Default value is true, i-e, the bitmap is freed from the memory after it has 
been uploaded in video memory. It can be useful to set
it to "false" if the texture is modified by your code and need to be uploaded 
several times.

But your problem is not there. Textures are pointed in CMaterial by a 
CSmartPtr. It means that you must hold your texture pointer in
a CSmartPtr if you don't want to loose it :-).

Try this :

NLMISC::CSmartPtr<NL3D::ITexture>     text;

Hld.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]