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 ++---
include/cd.h | 2 +-
include/cdluagl.h | 27 +++
mak.vc9/cd.sln | 17 ++
mak.vc9/cdluagl3.vcproj | 106 ++++++++++
mak.vc9/cdluagl51.vcproj | 106 ++++++++++
mak.vc9/cdluagl52.vcproj | 106 ++++++++++
mak.vc9/cdsimple.vcproj | 4 +-
src/cdluagl3.mak | 15 ++
src/cdluagl5.mak | 23 +++
src/drv/cdgl.c | 242 +++++++++++++++-------
src/lua3/cdluagl.c | 43 ++++
src/lua3/cdluagl.def | 2 +
src/lua5/cdluagl5.c | 53 +++++
src/lua5/cdluagl5.def | 3 +
src/sim/sim_primitives.c | 2 +-
test/simple/iupmain.c | 23 ++-
test/simple/simple.c | 515 +++++++++++++++++++++++------------------------
test/simple/simple.h | 12 +-
test/simple/simple.led | 8 +-
test/simple/simple_led.c | 8 +-
27 files changed, 1066 insertions(+), 411 deletions(-)
create mode 100644 include/cdluagl.h
create mode 100644 mak.vc9/cdluagl3.vcproj
create mode 100644 mak.vc9/cdluagl51.vcproj
create mode 100644 mak.vc9/cdluagl52.vcproj
create mode 100644 src/cdluagl3.mak
create mode 100644 src/cdluagl5.mak
create mode 100644 src/lua3/cdluagl.c
create mode 100644 src/lua3/cdluagl.def
create mode 100644 src/lua5/cdluagl5.c
create mode 100644 src/lua5/cdluagl5.def
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
+
+ - "ALPHA": allows the usage of an alpha
+ channel for the drawing shapes. Assumes values "1" (active) and "0"
+ (inactive). Default value: "1".
+
+
+
+ - "ANTIALIAS": allows the use of
+ anti-aliasing for the drawing shapes. Assumes values "1" (active) and "0"
+ (inactive). Default value: "1".
+
+
+
+ - "GLVERSION": returns a string with
+ the OpenGL version or release number. It is empty if the OpenGL is not available.
+
+
- "ROTATE": allows the usage of 1
angle and 1 coordinate (x, y), that define a global rotation transformation
@@ -99,8 +146,10 @@
- - "GLVERSION": returns a string with
- the OpenGL version or release number. It is empty if the OpenGL is not available.
+ - "SIZE": sets the canvas size.
+ Must be used after the window is resized. The format is the same of the data
+ parameter in cdCreateCanvas, "widthxheight [resolution]"
+ or in C "%dx%d %g".