void GlfUVTexture::_ReadTexture() { GlfUVTextureDataRefPtr texData = GlfUVTextureData::New(_GetImageFilePath(), GetMemoryRequested(), _GetCropTop(), _GetCropBottom(), _GetCropLeft(), _GetCropRight()); if (texData) { texData->Read(0, _GenerateMipmap(), GetOriginLocation()); } _UpdateTexture(texData); _CreateTexture(texData, _GenerateMipmap()); _SetLoaded(); }
void Load(const SdfPathSet& paths, const UsdStageRefPtr& stage) { stage->LoadAndUnload(paths, SdfPathSet()); _SetLoaded(paths, stage); }
void _SetLoaded(const SdfPathSet& paths, const UsdStageRefPtr& stage) { for(const auto& path : paths) _SetLoaded(path, stage); }
/** Load prims. Must already have a write lock. @{ */ void Load(const SdfPath& path, const UsdStageRefPtr& stage) { stage->Load(path); _SetLoaded(path, stage); }