CacheServerTextureValues() private method

private CacheServerTextureValues ( int textureId, int width, int height, IntPtr syphonServerTextureInstance ) : bool
textureId int
width int
height int
syphonServerTextureInstance IntPtr
return bool
Ejemplo n.º 1
0
 public void cacheTextureValues()
 {
     if (storedWidth != 0 && storedHeight != 0 && storedTexID != 0)
     {
         Syphon.CacheServerTextureValues(storedTexID, storedWidth, storedHeight, syphonServerTextureInstance);
         syphonServerTextureInstanceInitialized = true;
     }
 }
 //
 // Cache the current texture data to server
 public void cacheTextureValues(RenderTexture rt)
 {
     if (rt.GetNativeTexturePtr() != IntPtr.Zero && rt.width != 0 && rt.height != 0)
     {
         Syphon.CacheServerTextureValues((int)rt.GetNativeTexturePtr(), rt.width, rt.height, syphonServerTextureInstance);
         cachedTexID  = (int)rt.GetNativeTexturePtr();
         cachedWidth  = rt.width;
         cachedHeight = rt.height;
         syphonServerTextureValuesCached = true;
     }
 }