From da0f58cecf7a5280df7efa4e8d4443cb65b0fe1d Mon Sep 17 00:00:00 2001 From: scuri Date: Thu, 24 Jun 2010 19:16:35 +0000 Subject: *** empty log message *** --- html/en/download.html | 4 ++-- html/en/drv/gl.html | 63 +++++++++++++++++++++++++++++++++++++++++++++------ html/en/drv/pdf.html | 7 +++--- html/en/history.html | 4 +++- html/wb/wb_usr.lua | 4 ++++ html/wb_search.txt | 27 +++++++++++----------- html/wb_tree.html | 51 +++++++++++++++++++++-------------------- 7 files changed, 109 insertions(+), 51 deletions(-) (limited to 'html') 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/

Use this link for the latest version: - -http://sourceforge.net/projects/canvasdraw/files/5.3/

+ +http://sourceforge.net/projects/canvasdraw/files/5.4/

Before downloading any precompiled binaries, you should read before the Tecgraf Library Download Tips.

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; +} @@ -17,13 +20,38 @@

GL Driver

-

This driver represents a basic driver for all system-dependent drivers - implemented in the X-Windows system using the - OpenGL SDK. The implementation uses the OpenGL, GLU and GLX API functions. +

This driver represents a driver for drawing using + + OpenGL. The implementation uses the OpenGL functions only. For the font support, this driver uses the FTGL API functions, which it was written against the Free Type library.

+

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.

+ +

Use

+ +

The canvas is created by means of a call to the function + cdCreateCanvas(CD_GL, + Data), after which other functions in the CD library can be called as usual. The Data parameter string has the following format:

+ +
"widthxheight [resolution]"      in C "%dx%d %g"
+ +

It must include the initial canvas' dimensions. Width and height + are provided in pixels (note the lowercase "x" between them). The + resolution is optional, its default value is "3.78 pixels/mm" (96 DPI).

+ + + +

To use this driver, the application must be linked with the "cdgl", + the ftgl library + and the OpenGL library. The FTGL library is dependent also on the GLU + library.

+

In Lua, it is necessary to call function cdluagl_open() after a call + to function cdlua_open(), apart from linkediting with the "cdluagl" + library. This is not necessary if you do require"cdluagl". 

Behavior of Functions

Control 

@@ -79,9 +107,11 @@ NativeFont: also accepts the X-Windows font string format.
  • - Font: "Courier" is mapped to + Font: 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.
  • + "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.

    Colors

    Exclusive Attributes

    + + + + + + 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

    To use this driver, the application must be linked with the "cdpdf" and "pdflib" libraries.

    +

    In Lua, it is necessary to call function cdluapdf_open() after a call + to function cdlua_open(), apart from linkediting with the "cdluapdf" + library. This is not necessary if you do require"cdluapdf".

    +

    Paper Size - The default paper size is A4. It is possible to change it by using one of the predefined sizes - CD_A0, CD_A1, CD_A2, CD_A3, CD_A4, CD_A5, CD_LETTER and @@ -111,9 +115,6 @@ or in C default value is 300 DPI.

    Orientation - 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.

    -

    In Lua, it is necessary to call function cdluapdf_open() after a call - to function cdlua_open(), apart from linkediting with the "cdluapdf" - library. This is not necessary if you do require"cdluapdf".

    Behavior of Functions

    Control

    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 @@

    History of Changes

    -

    Version 5.4 (XX/June/2010)

    +

    Version 5.4 (24/June/2010)

    • New: context plus driver Cairo.
    • +
    • New: OpenGL driver + CD_GL.
    • New: "CMD", "OPACITY" and "HATCHBOXSIZE" attributes in the SVG driver.
    • New: CD_PATH cdCanvasBegin 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 @@

      Window Systems

      Devices

      Images

      File

      -

      PDF

      -

      PS

      -

      SVG

      -

      MF

      -

      DEBUG

      +

      PDF

      +

      PS

      +

      SVG

      +

      MF

      +

      DEBUG

      -

      CGM

      -

      DGN

      -

      DXF

      +

      CGM

      +

      DGN

      +

      DXF

      -

      EMF

      -

      WMF

      +

      EMF

      +

      WMF

      Base Drivers

      Context Plus

      -- cgit v1.2.3