コード例 #1
0
        public static GlTextureInfo GlTextureInfoFor(this GpuBufferFormat gpuBufferFormat, int plane)
        {
            var ptr  = UnsafeNativeMethods.MpGlTextureInfoForGpuBufferFormat((UInt32)gpuBufferFormat, plane);
            var info = Marshal.PtrToStructure <GlTextureInfo>(ptr);

            UnsafeNativeMethods.MpGlTextureInfoDestroy(ptr);

            return(info);
        }
コード例 #2
0
 public static GlTextureInfo GlTextureInfoFor(this GpuBufferFormat gpuBufferFormat, int plane)
 {
     return(new GlTextureInfo(UnsafeNativeMethods.MpGlTextureInfoForGpuBufferFormat((UInt32)gpuBufferFormat, plane)));
 }