Ejemplo n.º 1
0
 public TextureFrame(int width, int height, GlTextureBuffer.DeletionCallback OnRelease)
 {
     texture        = new Texture2D(width, height, TextureFormat.RGBA32, false);
     this.width     = width;
     this.height    = height;
     this.OnRelease = OnRelease;
 }
Ejemplo n.º 2
0
 public TextureFrame(int width, int height, GlTextureBuffer.DeletionCallback OnRelease)
 {
     texture                = new Texture2D(width, height, TextureFormat.RGBA32, false);
     this.width             = width;
     this.height            = height;
     this.OnRelease         = OnRelease;
     deletionCallbackHandle = GCHandle.Alloc(this.OnRelease, GCHandleType.Pinned);
 }
 public static extern MpReturnCode mp_SharedGlTextureBuffer__ui_ui_i_i_ui_PF_PSgc(
     UInt32 target, UInt32 name, int width, int height, GpuBufferFormat format,
     [MarshalAs(UnmanagedType.FunctionPtr)] GlTextureBuffer.DeletionCallback deletionCallback,
     IntPtr producerContext, out IntPtr sharedGlTextureBuffer);