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 ?
About Irrlicht.Video.IVideoDriver.GetTexture()
-
- Posts: 40
- Joined: Tue Aug 15, 2006 6:01 am
- Location: Hong Kong
- Contact:
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
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.
Most of the functions taking pointers take care for null pointers themselves and simply return without issuing a warning.