Beispiel #1
0
 private MovieMaterial()
 {
     this.advance                = true;
     this.loopCount              = 1;
     this.playSpeed              = 1f;
     this.scanDuration           = true;
     this.m_nativeContext        = IntPtr.Zero;
     this.m_nativeTextureContext = IntPtr.Zero;
     this.m_ChannelTextures      = new Texture2D[3];
     this.m_hasFinished          = true;
     this.currentFPS             = -1.0;
     this.currentDuration        = -1.0;
     this.Width  = 0;
     this.Height = 0;
     try
     {
         MobileMovieManager.NativeGraphicsInitialize();
         this.m_nativeContext = MovieMaterial.CreateContext();
     }
     catch (Exception arg)
     {
         global::Debug.Log("[Movie.MovieMaterial.GLPlugin] Error when creating a native context more info: " + arg);
         throw;
     }
     if (this.m_nativeContext == IntPtr.Zero)
     {
         global::Debug.Log("[Movie.MovieMaterial.GLPlugin] Unable to create Mobile Movie Texture native context");
         throw new Exception("[Movie.MovieMaterial.GLPlugin] Unable to create Mobile Movie Texture native context");
     }
 }