Page 1 of 1

[SOLVED] createDeviceDependentTexture() parameters

Posted: Thu Feb 06, 2014 3:14 pm
by AlfAlien
I try to load GLES1 texture from file.
In CNullDriver.cpp I found this:

Code: Select all

 
texture = createDeviceDependentTexture(image, hashName.size() ? hashName : file->getFileName() );
 
createDeviceDependentTexture() must take 3 parameters, but I see only 2. It has signature

Code: Select all

 
ITexture* CNullDriver::createDeviceDependentTexture(IImage* surface, const io::path& name, void* mipmapData)
 
Where is mipmapData parameter? Can can I pass 0 (null pointer) as 3rd parameters to this function if I don't need mipmaps?

Code: Select all

 
texture = createDeviceDependentTexture(image, strName, 0);
 

Re: createDeviceDependentTexture() funciton and it's paramet

Posted: Thu Feb 06, 2014 3:48 pm
by AlfAlien
Actually, it has signature:

Code: Select all

 
virtual video::ITexture* createDeviceDependentTexture(IImage* surface, const io::path& name, void* mipmapData=0);
 
That changes everything - mipmapData is the default parameter, we can pass 0.