Logo Search packages:      
Sourcecode: blender version File versions

short addzbufImBuf ( struct ImBuf ibuf  ) 

Attention:
Defined in allocimbuf.c

Definition at line 124 of file allocimbuf.c.

References addzbufImBuf(), IMB_freezbufImBuf(), ImBuf::mall, ImBuf::x, ImBuf::y, and ImBuf::zbuf.

Referenced by addzbufImBuf(), and IMB_allocImBuf().

{
      int size;

      if (ibuf==0) return(FALSE);
      IMB_freezbufImBuf(ibuf);

      size = ibuf->x * ibuf->y * sizeof(unsigned int);
      if (ibuf->zbuf = MEM_mallocN(size, "addzbufImBuf")){
            ibuf->mall |= IB_zbuf;
            return (TRUE);
      }

      return (FALSE);
}


Generated by  Doxygen 1.6.0   Back to index