diff options
Diffstat (limited to 'html/en/drv/dbufrgb.html')
-rw-r--r-- | html/en/drv/dbufrgb.html | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/html/en/drv/dbufrgb.html b/html/en/drv/dbufrgb.html new file mode 100644 index 0000000..a9fa4c8 --- /dev/null +++ b/html/en/drv/dbufrgb.html @@ -0,0 +1,60 @@ +<!doctype HTML PUBLIC "-//IETF//DTD HTML//EN"> +<html> + +<head> +<meta http-equiv="Content-Language" content="en-us"> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> +<title>CD_DBUFFER</title> +<link rel="stylesheet" type="text/css" href="../../style.css"> +</head> + +<body> + +<h2>CD_DBUFFERRGB - Double Buffer Driver using a RGB image (cdirgb.h)</h2> + + <p>Implements the concept of offscreen drawing. It is based on a Image + RGB (the back buffer) and any other canvas (the front buffer).</p> + +<h3>Use</h3> + + <p>The canvas is created by means of a call to function + <a href="../func/init.html#cdCreateCanvas"> + <font face="Courier"><strong>cdCreateCanvas</strong></font></a><font face="Courier">(CD_DBUFFERRGB, + Data)</font>, after which other functions in the CD library can be called as + usual. This function creates a CD canvas to use with any existing canvas. The parameter <font face="Courier">Data</font> is a + pointer to the already created canvas.</p> + <p>Any amount of such canvases may exist simultaneously. It is important to + note that a call to function + <a href="../func/init.html#cdKillCanvas"> + <font face="Courier"><strong>cdKillCanvas</strong></font></a> is required to + properly <b>end</b> the driver. Call function + <a href="../func/init.html#cdKillCanvas"> + <font face="Courier"><strong>cdKillCanvas</strong></font></a> for this driver + before calling <font face="Courier"><strong>cdKillCanvas</strong></font> for + the client canvas driver.</p> + <p>The drawing functions will work normally as if they were drawn on + the image RGB driver. When function <font face="Courier"><b> + <a href="../func/control.html#cdFlush"> + cdCanvasFlush</a></b></font> is executed, the image is drawn in the canvas + passed as parameter in the canvas creation.</p> + <p>When the window's size changes, the RGB image is automatically recreated + using the same size as the canvas. This is done in the function + <font face="Courier"><b> + <a href="../func/init.html#cdActivate"> + cdCanvasActivate</a></b></font>.</p> + +<h3>Behavior of Functions</h3> + + <p>This driver depends on the <a href="irgb.html">RGB Client Image Driver</a>.</p> +<h4>Control</h4> +<ul> + <li><a href="../func/control.html#cdFlush"><font face="Courier"><strong>Flush</strong></font></a>: + draws the contents of the image into the window. It is affected by <strong> + Origin</strong> and <strong>Clipping</strong>, but not by <strong>WriteMode</strong>.</li> +</ul> +<p> </p> + + +</body> + +</html> |