Make a rendering context active (all following property set operations will use it)
d2_s32 d2_selectcontext( d2_device * handle, d2_context * ctx )
Choose a renderbuffer for writing.
d2_s32 d2_selectrenderbuffer( d2_device * handle, d2_renderbuffer * buffer )
Select a rendering mode.
d2_s32 d2_selectrendermode( d2_device * handle, d2_u32 mode )
set constant alpha value
d2_s32 d2_setalpha( d2_device * handle, d2_alpha alpha )
Choose blendmode for alpha channel.
d2_s32 d2_setalphablendmode( d2_device * handle, d2_u32 srcfactor, d2_u32 dstfactor )
Choose blendmode for alpha channel.
d2_s32 d2_setalphablendmodeex( d2_device * handle, d2_u32 srcfactor, d2_u32 dstfactor, d2_u32 blendflags )
set constant alpha value
d2_s32 d2_setalphaex( d2_device * handle, d2_s32 index, d2_alpha alpha )
Define an alpha gradient.
d2_s32 d2_setalphagradient( d2_device * handle, d2_s32 index, d2_point x, d2_point y, d2_point dx, d2_point dy )
Choose alpha source.
d2_s32 d2_setalphamode( d2_device * handle, d2_u32 mode )
Globally disable or enable antialiasing.
d2_s32 d2_setantialiasing( d2_device * handle, d2_s32 enable )
Choose blendmode for RGB.
d2_s32 d2_setblendmode( d2_device * handle, d2_u32 srcfactor, d2_u32 dstfactor )
Specify the source for blit operation.
d2_s32 d2_setblitsrc( d2_device * handle, void * ptr, d2_s32 pitch, d2_s32 width, d2_s32 height, d2_u32 format )
Set global blurring factor.
d2_s32 d2_setblur( d2_device * handle, d2_width blur )
Increase bbox of circles.
d2_s32 d2_setcircleextend( d2_device * handle, d2_width offset )
Define an alpha gradient for clipping.
d2_s32 d2_setclipgradient( d2_device * handle, d2_s32 index, d2_point x, d2_point y, d2_s32 nx, d2_s32 ny, d2_u32 flags )
Set color registers.
d2_s32 d2_setcolor( d2_device * handle, d2_s32 index, d2_color color )
Set the color for color keying.
d2_s32 d2_setcolorkey( d2_device * handle, d2_s32 enable, d2_color color_key )
Set blocksize for default displaylists.
d2_s32 d2_setdlistblocksize( d2_device * handle, d2_u32 size )
Select fillmode (solid,patter,texture,..)
d2_s32 d2_setfillmode( d2_device * handle, d2_u32 mode )
Specify lineend style.
d2_s32 d2_setlinecap( d2_device * handle, d2_u32 mode )
Specify polyline connection style.
d2_s32 d2_setlinejoin( d2_device * handle, d2_u32 mode )
Specify parameters for aligned patterns.
d2_s32 d2_setlinepattern( d2_device * handle, d2_width scale, d2_s32 offset )
Clipping distance for miter polyline connections.
d2_s32 d2_setmiterlimit( d2_device * handle, d2_width miter )
Specify pattern bitmask.
d2_s32 d2_setpattern( d2_device * handle, d2_pattern pattern )
Specify pattern transparency.
d2_s32 d2_setpatternalpha( d2_device * handle, d2_s32 index, d2_alpha alpha )
Define pattern addressing details.
d2_s32 d2_setpatternmode( d2_device * handle, d2_u32 mode )
Define mapping of pattern to geometry.
d2_s32 d2_setpatternparam( d2_device * handle, d2_point x, d2_point y, d2_width dx, d2_width dy )
Define pattern size.
d2_s32 d2_setpatternsize( d2_device * handle, d2_s32 size )
Set the event to be counted by performance counter.
d2_s32 d2_setperfcountevent( d2_device * handle, d2_u32 counter, d2_u32 event )
Set the current performance counter value.
d2_s32 d2_setperfcountvalue( d2_device * handle, d2_u32 counter, d2_slong value )
Set texture colour palette pointer.
d2_s32 d2_settexclut( d2_device * handle, d2_color * clut )
Set color format of texture CLUT.
d2_s32 d2_settexclut_format( d2_device * handle, d2_u32 format )
Set index offset for indexed texture formats.
d2_s32 d2_settexclut_offset( d2_device * handle, d2_u32 offset )
Set a part of the color lookup table.
d2_s32 d2_settexclut_part( d2_device * handle, const d2_color * clut_part, d2_u32 start_index, d2_u32 length )
Set texel center offset.
d2_s32 d2_settexelcenter( d2_device * handle, d2_point x, d2_point y )
Set texture operation parameter.
d2_s32 d2_settexopparam( d2_device * handle, d2_u32 index, d2_u32 p1, d2_u32 p2 )
Specify the source for texture mapping.
d2_s32 d2_settexture( d2_device * handle, void * ptr, d2_s32 pitch, d2_s32 width, d2_s32 height, d2_u32 format )
Define texture mapping.
d2_s32 d2_settexturemapping( d2_device * handle, d2_point x, d2_point y, d2_s32 u0, d2_s32 v0, d2_s32 dxu, d2_s32 dyu, d2_s32 dxv, d2_s32 dyv )
Define texture addressing details.
d2_s32 d2_settexturemode( d2_device * handle, d2_u32 mode )
Choose texture operation for each channel.
d2_s32 d2_settextureoperation( d2_device * handle, d2_u8 amode, d2_u8 rmode, d2_u8 gmode, d2_u8 bmode )
Define the offset of geometry shadows.
d2_s32 d2_shadowoffset( d2_device * handle, d2_point x, d2_point y )
Shift left a variable of type d2_int64
void d2_shiftleft64( const d2_int64 * var, d2_s32 index, d2_int64 * res )
Shift right a variable of type d2_int64
void d2_shiftright64( const d2_int64 * var, d2_s32 index, d2_int64 * res )
Define the solid rendering context.
d2_s32 d2_solidcontext( d2_device * handle, d2_context * ctx )
Minimalistic 32->16 bit integer square root (no hw divide/multiply needed) unrolled for speed.
D2_EXTERN d2_s32 d2_sqrt( d2_u32 x )
Mark the begin of a scene.
d2_s32 d2_startframe( d2_device * handle )
Substraction of 2 64bit value
void d2_sub64( const d2_int64 * a, const d2_int64 * b, d2_int64 * res )