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