Query constant alpha from selected context.
d2_alpha d2_getalpha( d2_device * handle )
Query destination blend factor for alpha channel blending from selected context.
d2_u32 d2_getalphablendmodedst( d2_device * handle )
Query alpha blend flags from selected context.
d2_u8 d2_getalphablendmodeflags( d2_device * handle )
Query source blend factor for alpha channel blending from selected context.
d2_u32 d2_getalphablendmodesrc( d2_device * handle )
Query constant alpha from selected context.
d2_alpha d2_getalphaex( d2_device * handle, d2_s32 index )
Query alpha source from selected context.
d2_u8 d2_getalphamode( d2_device * handle )
Query antialiasing setting from selected context.
d2_s32 d2_getantialiasing( d2_device * handle )
Query destination blend factor from selected context.
d2_u32 d2_getblendmodedst( d2_device * handle )
Query source blend factor from selected context.
d2_u32 d2_getblendmodesrc( d2_device * handle )
Query blurring factor from selected context.
d2_width d2_getblur( d2_device * handle )
Get the clipping rectangle.
d2_s32 d2_getcliprect( d2_device * handle, d2_border * xmin, d2_border * ymin, d2_border * xmax, d2_border * ymax )
Query a color from selected context.
d2_color d2_getcolor( d2_device * handle, d2_s32 index )
Get a pointer to an currently active context.
d2_context * d2_getcontext( d2_device * handle, d2_s32 mode ) /* PRQA S 3673 */ /* $Misra: #NOT_CONST_IN_DEBUG_BUILD $*/
Get number of blocks of default displaylist (writelist).
d2_u32 d2_getdlistblockcount( d2_device * handle )
Get blocksize of default displaylist.
d2_u32 d2_getdlistblocksize( const d2_device * handle )
Query device error information.
d2_s32 d2_geterror( const d2_device * handle )
Query detailed device error information.
const d2_char * d2_geterrorstring( const d2_device * handle )
Query fillmode from selected context.
d2_u8 d2_getfillmode( d2_device * handle )
Get information about the rendering target
d2_s32 d2_getframebuffer( d2_device * handle, void ** ptr, d2_s32 * pitch, d2_u32 * width, d2_u32 * height, d2_s32 * format )
Query lineend style from selected context.
d2_u8 d2_getlinecap( d2_device * handle )
Query polyline connection style from selected context.
d2_u8 d2_getlinejoin( d2_device * handle )
Query pattern bitmask from selected context.
d2_pattern d2_getpattern( d2_device * handle )
Query pattern transparency from selected context.
d2_alpha d2_getpatternalpha( d2_device * handle, d2_s32 index )
Query pattern addressing details.
d2_u32 d2_getpatternmode( d2_device * handle )
Query pattern bitmask size.
d2_s32 d2_getpatternsize( d2_device * handle )
Get the current performance counter value.
d2_slong d2_getperfcountvalue( d2_device * handle, d2_u32 counter )
Return internal renderbuffers.
d2_renderbuffer * d2_getrenderbuffer( d2_device * handle, d2_s32 index )
Query the number of allocated display list entries.
d2_u32 d2_getrenderbuffersize( d2_device * handle, d2_renderbuffer * rb )
Get the rendering mode.
d2_u32 d2_getrendermode( const d2_device * handle )
Query hw revisionID.
d2_u32 d2_getrevisionhw( const d2_device * handle )
Query hw revisionID string.
const d2_char * d2_getrevisionstringhw( const d2_device * handle )
Query texture operation parameter p1.
d2_alpha d2_gettexopparam1( d2_device * handle, d2_u32 index )
Query texture operation parameter p2.
d2_alpha d2_gettexopparam2( d2_device * handle, d2_u32 index )
Query texture operation for alpha channel.
d2_u8 d2_gettextureoperationa( d2_device * handle )
Query texture operation for blue channel.
d2_u8 d2_gettextureoperationb( d2_device * handle )
Query texture operation for green channel.
d2_u8 d2_gettextureoperationg( d2_device * handle )
Query texture operation for red channel.
d2_u8 d2_gettextureoperationr( d2_device * handle )
Query versionID (device independent)
d2_s32 d2_getversion( void )
Query versionID string (device independent)
const d2_char * d2_getversionstring( void )
Initialize hardware for working with specified device.
d2_s32 d2_inithw( d2_device * handle, d2_u32 flags )
Set the maximum burst lenght of the master bus interfaces.
d2_s32 d2_inithwburstlengthlimit( d2_device * handle, d2_busburstlength burstlengthFBread, d2_busburstlength burstlengthFBwrite, d2_busburstlength burstlengthTX, d2_busburstlength burstlengthDL )
Join outline and solid parts of currently selected renderbuffer.
d2_s32 d2_layermerge( d2_device * handle )
Get the lowlevel device handle currently used by the d2_device.
d1_device * d2_level1interface( const d2_device * handle )
Enable and configure the ‘low localmem’ mode.
d2_s32 d2_lowlocalmemmode( d2_device * handle, d2_u32 dlistblockfactor, d2_u32 dlistblocks )
multiply two a 32bit varibales with a 64bit one and return a 64bit result
void d2_mul3264( d2_s32 a, const d2_int64 * b, d2_int64 * res )
Create new context (used to store render settings).
d2_context * d2_newcontext( d2_device * handle )
Create a new renderbuffer.
d2_renderbuffer * d2_newrenderbuffer( d2_device * handle, d2_u32 initialsize, d2_u32 stepsize )
Create a new device handle.
d2_device * d2_opendevice( d2_u32 flags )
Define the outline rendering context.
d2_s32 d2_outlinecontext( d2_device * handle, d2_context * ctx )
Define the width of geometry outlines.
d2_s32 d2_outlinewidth( d2_device * handle, d2_width width )
Find next larger power of two minus 1
D2_EXTERN d2_u32 d2_pow2mask( d2_u32 x )
Change framebuffer for render commands already issued.
extern d2_s32 d2_relocateframe( d2_device * handle, const void * ptr )
Render a rectangle.
d2_s32 d2_renderbox( d2_device * handle, d2_point x1, d2_point y1, d2_width w, d2_width h )
Render a circle or circle ring.
d2_s32 d2_rendercircle( d2_device * handle, d2_point x, d2_point y, d2_width r, d2_width w )
Enable or disable the high limiter precision feature of the latest D/AVE 2D renderer for drawing blurred circles with higher image quality.
void d2_rendercircle_no_hilimiterprecision( d2_device * handle, d2_u32 flag )
Render a wide line.
d2_s32 d2_renderline( d2_device * handle, d2_point x1, d2_point y1, d2_point x2, d2_point y2, d2_width w, d2_u32 flags )
Render a wide line with 2 different widths.
d2_s32 d2_renderline2( d2_device * handle, d2_point x1, d2_point y1, d2_point x2, d2_point y2, d2_width w1, d2_width w2, d2_u32 flags )
Render a convex polygon
d2_s32 d2_renderpolygon( d2_device * handle, const d2_point * data, d2_u32 count, d2_u32 flags )
Render a polyline
d2_s32 d2_renderpolyline( d2_device * handle, const d2_point * data, d2_u32 count, d2_width w, d2_u32 flags )
Render a polyline with multiple width
d2_s32 d2_renderpolyline2( d2_device * handle, const d2_point * data, d2_u32 count, const d2_width * w, d2_u32 flags )
Render a quadrangle.
d2_s32 d2_renderquad( d2_device * handle, d2_point x1, d2_point y1, d2_point x2, d2_point y2, d2_point x3, d2_point y3, d2_point x4, d2_point y4, d2_u32 flags )
Render a triangle.
d2_s32 d2_rendertri( d2_device * handle, d2_point x1, d2_point y1, d2_point x2, d2_point y2, d2_point x3, d2_point y3, d2_u32 flags )
Render a polygon from a triangle fan
d2_s32 d2_rendertrifan( d2_device * handle, const d2_point * data, const d2_u32 * flags, d2_u32 count )
Render a polygon from a triangle list.
d2_s32 d2_rendertrilist( d2_device * handle, const d2_point * data, const d2_u32 * flags, d2_u32 count )
Render a polygon from a triangle strip.
d2_s32 d2_rendertristrip( d2_device * handle, const d2_point * data, const d2_u32 * flags, d2_u32 count )
Render a circle arc or circle ring arc.
d2_s32 d2_renderwedge( d2_device * handle, d2_point x, d2_point y, d2_width r, d2_width w, d2_s32 nx1, d2_s32 ny1, d2_s32 nx2, d2_s32 ny2, d2_u32 flags )