예제 #1
0
    void OnReceiveJPEG()
    {
        if (!ImageConversion.LoadImage(texture, m_Message.ToArray(), false))
        {
            if (debug)
            {
                Debug.LogError("Failed to load JPEG from message");
            }
        }

        if (null != TextureChanged)
        {
            TextureChanged.Invoke();
        }
    }
예제 #2
0
 /// <summary>
 /// Raises TextureChanged event notifying Noesis that it should reload the specified texture.
 /// </summary>
 public void RaiseTextureChanged(Uri uri)
 {
     TextureChanged?.Invoke(uri);
     Noesis_RaiseTextureChanged(swigCPtr, uri.OriginalString);
 }
예제 #3
0
 /// <summary>
 /// Implementation of the <see cref="IDisposable"/> interface.
 /// </summary>
 public void Dispose()
 {
     TextureChanged?.Invoke(this, new TextureEventArgs(this, TextureChangedEnum.Disposed));
 }
예제 #4
0
 /// <summary>
 /// Raises TextureChanged event notifying Noesis that it should reload the specified texture
 /// </summary>
 public void RaiseTextureChanged(string uri)
 {
     TextureChanged?.Invoke(uri);
     Noesis_RaiseTextureChanged(swigCPtr, uri);
 }