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
A
d2_add64
d2_adddlist
B
 Basic Functions
 Basic Types
 BLIT Attributes Writes
 Blit Functions
 BLIT Rendering Functions
d2_blitcopy
 Buffer Rendering
C
d2_cast32to64
d2_cast64to32
d2_clear
 Clipping
d2_cliprect
d2_closedevice
 Coding conventions
d2_commandspending
 Concept
 Context Attribute Queries
 Context Attribute Writes
 Context Functions
 Context Management
 Coordinate range limitations
D
 d2_alpha
 d2_blitpos
 d2_border
 D2_CEIL16(x)
 D2_CEIL4(x)
 d2_color
 d2_context
 d2_device
 D2_EPSILON
 D2_FIX16(x)
 D2_FIX4(x)
 D2_FLOOR16(x)
 D2_FLOOR4(x)
 D2_FRAC16(x)
 D2_FRAC4(x)
 D2_INT16(x)
 D2_INT4(x)
 d2_pattern
 d2_point
 d2_renderbuffer
 d2_width
d2_deinithw
 Device management
 Direct Rendering
d2_div6432
 Dlist Functions
 Driver Overview
d2_dumprenderbuffer
E
d2_endframe
 Errorcodes
d2_executedlist
d2_executerenderbuffer
F
 Fixedpoint Macros
d2_flushframe
d2_framebuffer
 Framebuffer management
 Framebuffer size limitations
d2_freecontext
d2_freedumpedbuffer
d2_freerenderbuffer
 Functions
 functions for 64bit operations
void d2_add64(const d2_int64 *a,
const d2_int64 *b,
d2_int64 *res)
Addition of 2 64bit value
d2_s32 d2_adddlist(d2_device *handle,
void *address,
d2_s32 size,
d2_u32 flags)
Add an already prepared display list to the current render buffer.
Driver device management and hardware initialization / shutdown.
Note that several types represent fixedpoint numbers.
BLock Image Transfer operations
d2_s32 d2_blitcopy(d2_device *handle,
d2_s32 srcwidth,
d2_s32 srcheight,
d2_blitpos srcx,
d2_blitpos srcy,
d2_width dstwidth,
d2_width dstheight,
d2_point dstx,
d2_point dsty,
d2_u32 flags)
Copy rectangle part of the source into destination.
void d2_cast32to64(d2_s32 par,
d2_int64 *res)
Cast an 32bit integer to 64bit variable
d2_s32 d2_cast64to32(const d2_int64 *par)
Cast an 64bit variable to a32bit variable
d2_s32 d2_clear(d2_device *handle,
d2_color color)
Render fill the entire framebuffer with a single color.
d2_s32 d2_cliprect(d2_device *handle,
d2_border xmin,
d2_border ymin,
d2_border xmax,
d2_border ymax)
Specify the clipping rectangle.
d2_s32 d2_closedevice(d2_device *handle)
Destroy a device handle.
Quickinfo about Dave2d Driver implementation
d2_s32 d2_commandspending(d2_device *handle)
Check if there are pending commands in the current displaylist.
Basic objects and principles
Modify material settings
API interface coordinates are limited to the range -2048 to 2047.
unsigned char
unsigned short
short
n:16 fixedpoint unsigned ceil (round towards +inf)
n:4 fixedpoint unsigned ceil (round towards +inf)
unsigned long
void
void
Smallest representable positive number (all fixedpoint formats)
integer to n:16 fixedpoint conversion
Integer to n:4 fixedpoint conversion
n:16 fixedpoint unsigned floor (round towards -inf)
n:4 fixedpoint unsigned floor (round towards -inf)
n:16 fixedpoint fractional part only
n:4 fixedpoint fractional part only
n:16 to integer conversion
n:4 to integer conversion
unsigned long
short (fixedpoint)
void
short (fixedpoint)
d2_s32 d2_deinithw(d2_device *handle)
Unlink hardware currently bound by specified device.
void d2_div6432(const d2_int64 *dividend,
d2_s32 divisor,
d2_int64 *res)
division of 64bit value by a 32bit.
Overview of D/AVE 2D driver V3.18
d2_s32 d2_dumprenderbuffer(d2_device *handle,
d2_renderbuffer *buffer,
void **rdata,
d2_s32 *rsize)
Copy the content of a renderbuffer into user memory.
d2_s32 d2_endframe(d2_device *handle)
Mark the end of a scene.
List of all dave driver errorcodes.
d2_s32 d2_executedlist(d2_device *handle,
const void *address,
d2_u32 flags)
Execute an already prepared display list.
d2_s32 d2_executerenderbuffer(d2_device *handle,
d2_renderbuffer *buffer,
d2_u32 flags)
Render the content of a renderbuffer.
d2_s32 d2_flushframe(d2_device *handle)
Wait for current rendering to end.
d2_s32 d2_framebuffer(d2_device *handle,
void *ptr,
d2_s32 pitch,
d2_u32 width,
d2_u32 height,
d2_s32 format)
Specify the rendering target.
The framebuffer size is limited to 2048x2048 pixels.
d2_s32 d2_freecontext(d2_device *handle,
d2_context *ctx)
Release Context.
d2_s32 d2_freedumpedbuffer(d2_device *handle,
void *data)
free a chunk of memory returned from d2_dumprenderbuffer.
d2_s32 d2_freerenderbuffer(d2_device *handle,
d2_renderbuffer *buffer)
Destroy and free a renderbuffer.
This module contains all the necessary function for 64bit operation in case the chosen compiler does not support long long.
Close