コード例 #1
0
 public void Dispose()
 {
     if (pal != null)
     {
         CRuntime.free(pal);
         pal = null;
     }
     if (lpal != null)
     {
         CRuntime.free(lpal);
         lpal = null;
     }
     if (codes != null)
     {
         CRuntime.free(codes);
         codes = null;
     }
 }
コード例 #2
0
 public stbi__gif()
 {
     pal   = (byte **)palArray;
     lpal  = (byte **)lpalArray;
     codes = (stbi__gif_lzw *)codesArray;
 }
コード例 #3
0
ファイル: StbImage.cs プロジェクト: dstiert/Myra
 public stbi__gif()
 {
     codes = (stbi__gif_lzw *)stbi__malloc(4096 * sizeof(stbi__gif_lzw));
     pal   = (byte *)stbi__malloc(256 * 4 * sizeof(byte));
     lpal  = (byte *)stbi__malloc(256 * 4 * sizeof(byte));
 }