Example #1
0
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();
}
Example #2
0
 void    Load(const SdfPathSet& paths, const UsdStageRefPtr& stage)
         {
             stage->LoadAndUnload(paths, SdfPathSet());
             _SetLoaded(paths, stage);
         }
Example #3
0
 void    _SetLoaded(const SdfPathSet& paths, const UsdStageRefPtr& stage)
         {
             for(const auto& path : paths)
                 _SetLoaded(path, stage);
         }
Example #4
0
 /** Load prims. Must already have a write lock.
     @{ */
 void    Load(const SdfPath& path, const UsdStageRefPtr& stage)
         {
             stage->Load(path);
             _SetLoaded(path, stage);
         }