alloc(Size0, Type)   
 getBin(#sdlmem{bin=Bin})   
 malloc(Size, Type)   
 free(_Ref)   
 read(#sdlmem{type=Type,bin=Bin}, Size)   
 write(#sdlmem{type=Type,size=Size,bin=Dest}, Data)   
 write(#sdlmem{type=Type,size=Size0,bin=Dest0}, Offset, Data)   
  term2bin(Bin, _, _)   
  tuplelist2bin(2,Type,List)   
  bin2list(undefined, Type, Bin)   
 copySdlImage2GLArray(Image, Mem, Bpp)   
 debug(L)  Args: Size and type (?SDL_UNSIGNED_INT, ...)
Returns: A reference to the memory area
Desc:
 Allocates Size unit memory of Type, where Type is one of the opengl types described in gl.hrl. The memory will be garbage-collected away as any other Erlang term; thus there is no need to worry about freeing the memory.
Args: References to a memory area allocated by alloc/2.
Returns: The memory allocated as a binary.
Desc:
 Returns all of an allocated memory area as a binary. Note that if you do any write operation to the memory, the contents of the returned binary will change. CAVEAT PROGRAMMOR.
Args: Size and type (?SDL_UNSIGNED_INT, ...)
Returns: A reference to the memory area
Desc:
 Obsolete name. Use alloc/2 instead.
Args: Ref to memory
Desc:
 Obsolete function. Does nothing as memory blocks allocated by alloc/2 are garbage-collected.
Args: MemoryRef, Size
Returns: A list/Binary of Size elements of type Type
Desc:
 Read allocated memory
Args: MemoryRef, List|Binary
Returns: ok
Desc:
 Write to data memory
Args: MemoryRef, Offset, List|Binary
Returns: ok
Desc:
 Write to memory, starting Offset unit into it.
Args: ListOfNumbers (or tuple), MaxNo, Type
Returns: Deep list
Desc:
 Converts the first MaxNo numbers of ListOfNumbers to a binary of the type Type. Where Type is SDL_TYPE existing in sdl.hrl (e.g. ?SDL_DOUBLE)
Args: [TupleSize,] Type, List
Returns: Binary
Desc:
 Converts a tupleList [{X,Y,..}..] to binary.
Args: No, Type, Binary
Returns: ListOfNumbers
Desc:
 Converts the first 'No' of numbers in the binary Binary to a list of numbers of type Type.
Args: SdlImageRef, malloced Mem, BytesPerPixel
Returns: ok or exits
Desc:
 Converts sdl_surface data to a byte RGB(A) buffer. sdl_surfaces are BGR and upside/down.
Args: Level (0 is off)
Returns: ok
Desc:
 Set ESDL debug level