//----------------------------------------------------------------------- TexturePtr TextureManager::createManual(const String & name, const String& group, TextureType texType, uint width, uint height, uint depth, int numMipmaps, PixelFormat format, int usage, ManualResourceLoader* loader, bool hwGamma, uint fsaa, const String& fsaaHint) { TexturePtr ret = create(name, group, true, loader); ret->setTextureType(texType); ret->setWidth(width); ret->setHeight(height); ret->setDepth(depth); ret->setNumMipmaps((numMipmaps == MIP_DEFAULT)? mDefaultNumMipmaps : static_cast<size_t>(numMipmaps)); ret->setFormat(format); ret->setUsage(usage); ret->setHardwareGammaEnabled(hwGamma); ret->setFSAA(fsaa, fsaaHint); ret->createInternalResources(); return ret; }