Errorcodes

List of all dave driver errorcodes.

Every device stores the errorcode returned by the last function executed for this device.  Successfull operations reset this code to D2_OK.

Latest errorcode can be queried by d2_geterror / d2_geterrorstring functions

Errorcodes

D2_OKsuccess
D2_NOMEMORYmemory allocation failed
D2_INVALIDDEVICEinvalid device
D2_INVALIDCONTEXTinvalid rendering context
D2_INVALIDBUFFERinvalid renderbuffer context
D2_HWINUSEhardware device already in use
D2_DEVASSIGNEDdevice already assigned
D2_DEFCONTEXTcannot operate on default context
D2_INVALIDINDEXindex is out of bounds
D2_ILLEGALMODErendermode not supported
D2_INVALIDWIDTHwidth out of legal range
D2_INVALIDHEIGHTheight out of legal range
D2_NOVIDEOMEMillegal framebuffer address
D2_VALUETOOSMALLparameter too close to zero
D2_VALUENEGATIVEparameter is negative
D2_VALUETOOBIGparameter value is too large
D2_INVALIDENUMunsupported mode
D2_NULLPOINTERsource pointer may not be null
D2_DEVICEBUSYoperation cannot execute while hardware is busy
D2_DEFBUFFERcannot operate on default buffer
D2_NO_DISPLAYLISTusage of displaylists a mandatory in d2_low_localmemmode
D2_NOT_ENOUGH_DLISTBLOCKSamount of displaylist blocks as specified in d2_lowlocalmemmode is not sufficient
d2_s32 d2_geterror(const d2_device *handle)
Query device error information.
const d2_char * d2_geterrorstring(const d2_device *handle)
Query detailed device error information.
d2_s32 d2_lowlocalmemmode(d2_device *handle,
d2_u32 dlistblockfactor,
d2_u32 dlistblocks)
Enable and configure the ‘low localmem’ mode.
Close