diff options
author | scuri <scuri> | 2010-06-24 19:16:35 +0000 |
---|---|---|
committer | scuri <scuri> | 2010-06-24 19:16:35 +0000 |
commit | da0f58cecf7a5280df7efa4e8d4443cb65b0fe1d (patch) | |
tree | d218429e378e665654db9a41e103e50f727e3e5e /html | |
parent | 57d27736fe65aa25f8c03c790c11475cc06d1296 (diff) |
*** empty log message ***
Diffstat (limited to 'html')
-rw-r--r-- | html/en/download.html | 4 | ||||
-rw-r--r-- | html/en/drv/gl.html | 63 | ||||
-rw-r--r-- | html/en/drv/pdf.html | 7 | ||||
-rw-r--r-- | html/en/history.html | 4 | ||||
-rw-r--r-- | html/wb/wb_usr.lua | 4 | ||||
-rw-r--r-- | html/wb_search.txt | 27 | ||||
-rw-r--r-- | html/wb_tree.html | 51 |
7 files changed, 109 insertions, 51 deletions
diff --git a/html/en/download.html b/html/en/download.html index d24fb87..eef64cb 100644 --- a/html/en/download.html +++ b/html/en/download.html @@ -19,8 +19,8 @@ http://sourceforge.net/projects/canvasdraw/files/</a> </p> <p class="info"> Use this link for the latest version: -<a href="http://sourceforge.net/projects/canvasdraw/files/5.3/"> -http://sourceforge.net/projects/canvasdraw/files/5.3/</a> </p> +<a href="http://sourceforge.net/projects/canvasdraw/files/5.4/"> +http://sourceforge.net/projects/canvasdraw/files/5.4/</a> </p> <p>Before downloading any precompiled binaries, you should read before the <a href="download_tips.html">Tecgraf Library Download Tips</a>.</p> diff --git a/html/en/drv/gl.html b/html/en/drv/gl.html index 2b94b10..cff89db 100644 --- a/html/en/drv/gl.html +++ b/html/en/drv/gl.html @@ -10,6 +10,9 @@ .style1 { margin-top: 0px; } +.style2 { + font-family: Courier; +} </style> </head> @@ -17,13 +20,38 @@ <h2>GL Driver</h2> - <p>This driver represents a basic driver for all system-dependent drivers - implemented in the X-Windows system using the <a href="http://www.opengl.org/"> - OpenGL</a> SDK. The implementation uses the OpenGL, GLU and GLX API functions. + <p>This driver represents a driver for drawing using + <a href="http://www.opengl.org/"> + OpenGL</a>. The implementation uses the OpenGL functions only. For the font support, this driver uses the <a href="http://homepages.paradise.net.nz/henryj/code/index.html#FTGL">FTGL</a> API functions, which it was written against the <a href="http://www.freetype.org/">Free Type</a> library.</p> +<p>The driver is not dependent of system functions. It uses only the OpenGL +portable funtions. So if the window canvas changes its size the attribute "SIZE" +must be set with the new size or cdCanvasGetSize will return an incorrect value.</p> + +<h3>Use</h3> + + <p>The canvas is created by means of a call to the function <font face="Courier"> + <a href="../func/init.html#cdCreateCanvas"><strong>cdCreateCanvas</strong></a>(CD_GL, + Data)</font>, after which other functions in the CD library can be called as usual. The <font face="Courier">Data</font> parameter string has the following format:</p> + + <pre><em>"width<strong>x</strong>height [resolution]"</em> in C "<em><strong><tt>%dx%d %g"</tt></strong></em></pre> + + <p>It must include the initial canvas' dimensions.<font face="Courier"> Width</font> and <font face="Courier">height</font> + are provided in pixels (note the lowercase "x" between them). The + resolution is optional, its default value is "3.78 pixels/mm" (96 DPI).</p> + + + + <p>To use this driver, the application must be linked with the "<strong>cdgl</strong>", + the ftgl library + and the OpenGL library. The FTGL library is dependent also on the GLU + library.</p> + <p>In Lua, it is necessary to call function <font face="Courier"> <strong>cdluagl_open() </strong> </font>after a call + to function <strong><font face="Courier">cdlua_open()</font></strong>, apart from linkediting with the "<strong><font face="Courier">cdluagl</font></strong>" + library. This is not necessary if you do require"cdluagl". </p> <h3>Behavior of Functions</h3> <h4>Control </h4> @@ -79,9 +107,11 @@ <font face="Courier"><strong>NativeFont</strong></font></a>: also accepts the X-Windows font string format.</li> <li><a href="../func/text.html#cdFont"> - <font face="Courier"><strong>Font</strong></font></a>: "Courier" is mapped to + <font face="Courier"><strong>Font</strong></font></a>: In Windows, "Courier" is mapped to "Courier New", "Helvetica" is mapped to "Arial", and "Times" is mapped to - "Times New Roman". Underline and Strikeout are NOT supported.</li> + "Times New Roman". In UNIX, "Courier" is mapped to + "freemono", "Helvetica" is mapped to "freesans", and "Times" is mapped to + "freeserif". Underline and Strikeout are NOT supported.</li> </ul> <h4>Colors </h4> <ul> @@ -92,6 +122,23 @@ <h4>Exclusive Attributes</h4> <ul> + <li>"<b><font face="Courier">ALPHA</font></b>": allows the usage of an alpha + channel for the drawing shapes. Assumes values "1" (active) and "0" + (inactive). Default value: "1".</li> +</ul> + +<ul> + <li>"<b><font face="Courier">ANTIALIAS</font></b>": allows the use of + anti-aliasing for the drawing shapes. Assumes values "1" (active) and "0" + (inactive). Default value: "1".</li> +</ul> + +<ul> + <li><b><font face="Courier">"GLVERSION": </font></b>returns a string with + the OpenGL version or release number. It is empty if the OpenGL is not available.</li> +</ul> + +<ul> <li>"<b><font face="Courier">ROTATE</font></b>": allows the usage of 1 angle and 1 coordinate (x, y), that define a global rotation transformation centered in the specified coordinate. Use 1 real and 2 integer values inside a @@ -99,8 +146,10 @@ </ul> <ul> - <li><b><font face="Courier">"GLVERSION": </font></b>returns a string with - the OpenGL version or release number. It is empty if the OpenGL is not available.</li> + <li>"<strong><span class="style2">SIZE</span></strong>": sets the canvas size. + Must be used after the window is resized. The format is the same of the data + parameter in cdCreateCanvas, <em>"width<strong>x</strong>height [resolution]"</em> + or in C "<em><strong><tt>%dx%d %g".</tt></strong></em></li> </ul> </body> diff --git a/html/en/drv/pdf.html b/html/en/drv/pdf.html index d111a90..c161eeb 100644 --- a/html/en/drv/pdf.html +++ b/html/en/drv/pdf.html @@ -46,6 +46,10 @@ or in C<em> <p>To use this driver, the application must be linked with the "<strong>cdpdf</strong>" and "<strong>pdflib</strong>" libraries. </p> + <p>In Lua, it is necessary to call function <font face="Courier"> <strong>cdluapdf_open() </strong> </font>after a call + to function <strong><font face="Courier">cdlua_open()</font></strong>, apart from linkediting with the "<strong><font face="Courier">cdluapdf</font></strong>" + library. This is not necessary if you do require"cdluapdf".</p> + <p><b>Paper Size - </b>The default paper size is A4. It is possible to change it by using one of the predefined sizes - <strong><tt>CD_A0</tt></strong>, <strong><tt>CD_A1</tt></strong>, <strong><tt>CD_A2</tt></strong>, <strong><tt>CD_A3</tt></strong>, <strong><tt>CD_A4</tt></strong>, <strong><tt>CD_A5</tt></strong>, <strong><tt>CD_LETTER</tt></strong> and <strong><tt> @@ -111,9 +115,6 @@ or in C<em> default value is 300 DPI.</p> <p><b>Orientation -</b> The page can be oriented as portrait or landscape. The default value is portrait, but when the parameter "-o" is used, the horizontal and vertical values are switched.</p> - <p>In Lua, it is necessary to call function <strong><font face="Courier">cdluapdf_open() </strong> </font>after a call - to function <strong><font face="Courier">cdlua_open()</font></strong>, apart from linkediting with the "<strong><font face="Courier">cdluapdf</font></strong>" - library. This is not necessary if you do require"cdluapdf".</p> <h3>Behavior of Functions</h3> <h4>Control</h4> diff --git a/html/en/history.html b/html/en/history.html index 0acfaad..b24d1c3 100644 --- a/html/en/history.html +++ b/html/en/history.html @@ -27,10 +27,12 @@ <body> <h2>History of Changes</h2> -<h3><a href="http://sourceforge.net/projects/canvasdraw/files/5.4/">Version 5.4</a> (XX/June/2010)</h3> +<h3><a href="http://sourceforge.net/projects/canvasdraw/files/5.4/">Version 5.4</a> (24/June/2010)</h3> <ul> <li><span class="hist_new">New:</span> context plus driver <a href="drv/cairo.html">Cairo</a>.</li> + <li><span class="hist_new">New:</span> OpenGL driver <a href="drv/gl.html"> + CD_GL</a>.</li> <li><span class="hist_new">New:</span> "CMD", "OPACITY" and "HATCHBOXSIZE" attributes in the SVG driver.</li> <li><span class="hist_new">New:</span> <a href="func/polygon.html#cdBegin">CD_PATH</a> <strong>cdCanvasBegin</strong> diff --git a/html/wb/wb_usr.lua b/html/wb/wb_usr.lua index 24d9c5b..2fa3518 100644 --- a/html/wb/wb_usr.lua +++ b/html/wb/wb_usr.lua @@ -960,6 +960,10 @@ wb_usr.tree = { name= {nl= "Native Window"}, link= "drv/native.html" + }, + { + name= {nl= "OpenGL"}, + link= "drv/gl.html" } } }, diff --git a/html/wb_search.txt b/html/wb_search.txt index 1d0aa7c..751c0bd 100644 --- a/html/wb_search.txt +++ b/html/wb_search.txt @@ -1,47 +1,48 @@ en/download.html en/drv/xrender.html en/drv/gdiplus.html +en/drv/cairo.html en/drv/debug.html en/func/server.html en/func/wd.html en/func/client.html en/func/region.html -en/drv/cairo.html -en/drv/sim.html en/drv/xwin.html +en/drv/sim.html +en/drv/win32.html en/drv/native.html en/func/control.html en/screenshots_src_lua.html -en/drv/win32.html en/drv/gdk.html +en/func/lines.html en/func/vectortext.html en/cvs.html en/func/init.html -en/drv/pdf.html +en/drv/emf.html en/drv/picture.html en/func/attributes.html -en/drv/emf.html +en/drv/iup.html en/func/text.html en/func/filled.html en/prod.html en/screenshots.html en/samples.html -en/drv/dbufrgb.html -en/func/clipping.html -en/to_do.html +en/drv/gl.html en/drv/cgm.html -en/drv.html +en/to_do.html en/drv/mf.html -en/drv/irgb.html +en/drv.html +en/drv/printer.html en/drv/ps.html +en/drv/pdf.html en/drv/wmf.html -en/func/lines.html +en/drv/dbufrgb.html en/drv/dxf.html en/copyright.html -en/drv/iup.html +en/drv/irgb.html en/drv/svg.html en/screenshots_src_c.html -en/drv/printer.html +en/func/clipping.html en/cdluaim.html en/guide.html en/drv/dgn.html diff --git a/html/wb_tree.html b/html/wb_tree.html index 5bdccbd..35561e2 100644 --- a/html/wb_tree.html +++ b/html/wb_tree.html @@ -511,49 +511,50 @@ <p><img src="wb_img/blank.png"><img name="imgfolder.6.1" src="wb_img/plusnode.png" onclick="toggleFolder('folder.6.1')"> Window Systems</p> <div id="folder.6.1"> <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link189folder.6.1" href="en/drv/iup.html">IUP</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/nodelast.png"><a class="el" name="link190folder.6.1" href="en/drv/native.html">Native Window</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link190folder.6.1" href="en/drv/native.html">Native Window</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/nodelast.png"><a class="el" name="link191folder.6.1" href="en/drv/gl.html">OpenGL</a></p> </div> <p><img src="wb_img/blank.png"><img name="imgfolder.6.2" src="wb_img/plusnode.png" onclick="toggleFolder('folder.6.2')"> Devices</p> <div id="folder.6.2"> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link191folder.6.2" href="en/drv/clipbd.html">Clipboard</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link192folder.6.2" href="en/drv/printer.html">Printer</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/nodelast.png"><a class="el" name="link193folder.6.2" href="en/drv/picture.html">Picture</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link192folder.6.2" href="en/drv/clipbd.html">Clipboard</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link193folder.6.2" href="en/drv/printer.html">Printer</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/nodelast.png"><a class="el" name="link194folder.6.2" href="en/drv/picture.html">Picture</a></p> </div> <p><img src="wb_img/blank.png"><img name="imgfolder.6.3" src="wb_img/plusnode.png" onclick="toggleFolder('folder.6.3')"> Images</p> <div id="folder.6.3"> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link194folder.6.3" href="en/drv/irgb.html">Client Image</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link195folder.6.3" href="en/drv/image.html">Server Image</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link196folder.6.3" href="en/drv/dbufrgb.html">Client Double Buffer</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/nodelast.png"><a class="el" name="link197folder.6.3" href="en/drv/dbuf.html">Server Double Buffer</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link195folder.6.3" href="en/drv/irgb.html">Client Image</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link196folder.6.3" href="en/drv/image.html">Server Image</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link197folder.6.3" href="en/drv/dbufrgb.html">Client Double Buffer</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/nodelast.png"><a class="el" name="link198folder.6.3" href="en/drv/dbuf.html">Server Double Buffer</a></p> </div> <p><img src="wb_img/blank.png"><img name="imgfolder.6.4" src="wb_img/plusnode.png" onclick="toggleFolder('folder.6.4')"> File</p> <div id="folder.6.4"> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link198folder.6.4" href="en/drv/pdf.html">PDF</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link199folder.6.4" href="en/drv/ps.html">PS</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link200folder.6.4" href="en/drv/svg.html">SVG</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link201folder.6.4" href="en/drv/mf.html">MF</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link202folder.6.4" href="en/drv/debug.html">DEBUG</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link199folder.6.4" href="en/drv/pdf.html">PDF</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link200folder.6.4" href="en/drv/ps.html">PS</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link201folder.6.4" href="en/drv/svg.html">SVG</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link202folder.6.4" href="en/drv/mf.html">MF</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link203folder.6.4" href="en/drv/debug.html">DEBUG</a></p> <p class="sep"><img src="wb_img/sepblank.png"><img src="wb_img/sepvertline.png"><img src="wb_img/sepnode.png"></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link203folder.6.4" href="en/drv/cgm.html">CGM</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link204folder.6.4" href="en/drv/dgn.html">DGN</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link205folder.6.4" href="en/drv/dxf.html">DXF</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link204folder.6.4" href="en/drv/cgm.html">CGM</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link205folder.6.4" href="en/drv/dgn.html">DGN</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link206folder.6.4" href="en/drv/dxf.html">DXF</a></p> <p class="sep"><img src="wb_img/sepblank.png"><img src="wb_img/sepvertline.png"><img src="wb_img/sepnode.png"></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link206folder.6.4" href="en/drv/emf.html">EMF</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/nodelast.png"><a class="el" name="link207folder.6.4" href="en/drv/wmf.html">WMF</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link207folder.6.4" href="en/drv/emf.html">EMF</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/nodelast.png"><a class="el" name="link208folder.6.4" href="en/drv/wmf.html">WMF</a></p> </div> <p><img src="wb_img/blank.png"><img name="imgfolder.6.5" src="wb_img/plusnode.png" onclick="toggleFolder('folder.6.5')"> Base Drivers</p> <div id="folder.6.5"> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link208folder.6.5" href="en/drv/gdk.html">GDK</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link209folder.6.5" href="en/drv/win32.html">Win32</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link210folder.6.5" href="en/drv/xwin.html">X-Win</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link209folder.6.5" href="en/drv/gdk.html">GDK</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link210folder.6.5" href="en/drv/win32.html">Win32</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/node.png"><a class="el" name="link211folder.6.5" href="en/drv/xwin.html">X-Win</a></p> <p class="sep"><img src="wb_img/sepblank.png"><img src="wb_img/sepvertline.png"><img src="wb_img/sepnode.png"></p> - <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/nodelast.png"><a class="el" name="link211folder.6.5" href="en/drv/sim.html">Simulation</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/vertline.png"><img src="wb_img/nodelast.png"><a class="el" name="link212folder.6.5" href="en/drv/sim.html">Simulation</a></p> </div> <p><img src="wb_img/blank.png"><img name="imgfolder.6.6" src="wb_img/plusnodelast.png" onclick="toggleFolder('folder.6.6')"> Context Plus</p> <div id="folder.6.6"> - <p><img src="wb_img/blank.png"><img src="wb_img/blank.png"><img src="wb_img/node.png"><a class="el" name="link212folder.6.6" href="en/drv/cairo.html">Cairo</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/blank.png"><img src="wb_img/node.png"><a class="el" name="link213folder.6.6" href="en/drv/gdiplus.html">GDI+</a></p> - <p><img src="wb_img/blank.png"><img src="wb_img/blank.png"><img src="wb_img/nodelast.png"><a class="el" name="link214folder.6.6" href="en/drv/xrender.html">XRender</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/blank.png"><img src="wb_img/node.png"><a class="el" name="link213folder.6.6" href="en/drv/cairo.html">Cairo</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/blank.png"><img src="wb_img/node.png"><a class="el" name="link214folder.6.6" href="en/drv/gdiplus.html">GDI+</a></p> + <p><img src="wb_img/blank.png"><img src="wb_img/blank.png"><img src="wb_img/nodelast.png"><a class="el" name="link215folder.6.6" href="en/drv/xrender.html">XRender</a></p> </div> </div> </div> |