About Irrlicht.Video.IVideoDriver.GetTexture()

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
shivanraptor
Posts: 40
Joined: Tue Aug 15, 2006 6:01 am
Location: Hong Kong
Contact:

About Irrlicht.Video.IVideoDriver.GetTexture()

Post by shivanraptor »

Which format does it support ?
Also , I found that if I load a picture with original color depth = 16-bit and current color depth = 24-bit , the function will return null .

This makes me found another error on another class :
Irrlicht.Video.Draw2DImage() , it does not prompt any error when the source texture is null . is it normal ?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

It supports all formats that Irrlicht supports. You can get any image as a texture the image loaders understand. However, target depth is either 16bit or 32bit as textures are always generated with alpha channel. Thus, only A1R5G5B5 and A8R8G8B8 are used.
Most of the functions taking pointers take care for null pointers themselves and simply return without issuing a warning.
Post Reply