Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

void Graphics::Surface::create ( uint16  width,
uint16  height,
uint8  bytesPP 
) [inherited]

Allocate pixels memory for this surface and for the specified dimension.

Definition at line 53 of file surface.cpp.

References Graphics::Surface::free().


      w = width;
      h = height;
      bytesPerPixel = bytesPP;
      pitch = w * bytesPP;

      pixels = calloc(width * height, bytesPP);

Generated by  Doxygen 1.6.0   Back to index