malloc(Size, Type)
free(Ref)
read(Ref, Size)
write(Ref, List)
buildbin(Bin, Type)
buildlist(Type, Bin)
term2bin(Bin, Type)
bin2list(Type, Bin)
copySdlImage2GLArray(Image, Mem, Bpp)
debug(L) Args: Size and type (?GL_UNSIGNED_INT, ...)
Returns: A reference to the memory area
Desc:
Allocates Size memory of Type where Type is one of the opengl types described in gl.hrl
Args: Ref to memory
Desc:
Free memory allocated with malloc/2
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: ListOfNumbers (or tuple), [MaxNo,] Type
Returns: Binary
Desc:
Converts the first MaxNo numbers of ListOfNumbers to a binary of the type Type. Where Type is GL_TYPE existing in gl.hrl (e.g. ?GL_DOUBLE)
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: ListOfNumbers (or tuple), [MaxNo,] Type
Returns: Binary
Desc:
Converts the first MaxNo numbers of ListOfNumbers to a binary of the type Type. Where Type is GL_TYPE existing in gl.hrl (e.g. ?GL_DOUBLE)
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