Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (3)
Merge upstream demo files
· c1864fe6
Raymond Toy
authored
Jan 27, 2018
[skip-ci]
c1864fe6
Merge branch 'rtoy-update-clx' into rtoy-update-clx-with-cmucl-fixes
· f09962e2
Raymond Toy
authored
Jan 27, 2018
f09962e2
Update comments to reflect what we've done.
· 87bd6d9d
Raymond Toy
authored
Jan 27, 2018
87bd6d9d
Expand all
Hide whitespace changes
Inline
Side-by-side
src/clx/README-CMUCL
View file @
87bd6d9d
$Id: README-CMUCL,v 1.2 2009/06/11 16:03:56 rtoy Rel $
This is an import of Telent-CLX from the fork
https://github.com/sharplispers/clx, version
6e39a0df2a0a1d083166f405d4b8bbc463d54d85.
This is an import of Telent-CLX as of 0.7.3.
All (almost?) files are included. A few changes to fix bugs related
to CMUCL have been added, as well as the CVS id. I've tried to make
few changes so it will be easy to merge again when desired.
All files are included. A few changes to fix bugs related to CMUCL
have been added, as well as the CVS id. I've tried to make few
changes so it will be easy to merge again when desired.
The following files from this directory are compiled and loaded by
CMUCL when it builds utilities:
clx-library.lisp
package.lisp
depdefs.lisp
clx.lisp
dependent.lisp
macros.lisp
bufmac.lisp
buffer.lisp
display.lisp
gcontext.lisp
input.lisp
requests.lisp
fonts.lisp
graphics.lisp
text.lisp
attributes.lisp
translate.lisp
keysyms.lisp
manager.lisp
image.lisp
resource.lisp
shape.lisp
big-requests.lisp
xvidmode.lisp
xrender.lisp
glx.lisp
gl.lisp
dpms.lisp
provide.lisp
See src/tools/clxcom.lisp to see what files are compiled.
src/clx/demo/bezier.lisp
View file @
87bd6d9d
...
...
@@ -18,9 +18,6 @@
;;; express or implied warranty.
;;;
#+
cmu
(
ext:file-comment
"$Id: bezier.lisp,v 1.3 2009/06/17 18:22:46 rtoy Rel $"
)
(
in-package
:xlib
)
(
export
'draw-curves
)
...
...
src/clx/demo/beziertest.lisp
View file @
87bd6d9d
...
...
@@ -18,9 +18,6 @@
;;; express or implied warranty.
;;;
#+
cmu
(
ext:file-comment
"$Id: beziertest.lisp,v 1.3 2009/06/17 18:22:46 rtoy Rel $"
)
(
in-package
:xlib
)
(
defun
bezier-test
(
host
&optional
(
pathname
"/usr/X.V11R1/extensions/test/datafile"
))
...
...
src/clx/demo/clclock.lisp
View file @
87bd6d9d
#+
cmu
(
ext:file-comment
"$Id: clclock.lisp,v 1.2 2009/06/17 18:22:46 rtoy Rel $"
)
(
defpackage
"XCLCLOCK"
(
defpackage
#:xlib-demo/clclock
(
:use
"CL"
)
(
:export
"CLOCK"
))
(
in-package
"XCLCLOCK"
)
(
in-package
#:xlib-demo/clclock
)
(
defvar
*display*
(
xlib:open-default-display
))
(
defvar
*screen*
(
xlib:display-default-screen
*display*
))
...
...
src/clx/demo/clipboard.lisp
View file @
87bd6d9d
...
...
@@ -59,14 +59,11 @@
;;; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
;;; DEALINGS IN THE SOFTWARE.
#+
cmu
(
ext:file-comment
"$Id: clipboard.lisp,v 1.2 2009/06/17 18:22:46 rtoy Rel $"
)
(
defpackage
"CLIPBOARD"
(
defpackage
#:xlib-demo/clipboard
(
:use
"CL"
"XLIB"
)
(
:export
"MAIN"
))
(
in-package
"CLIPBOARD"
)
(
in-package
#:xlib-demo/clipboard
)
;;; This is "traditional" XLIB style; I don't really know if it's the
;;; best way -- in developing this program, style of XLIB programming
...
...
src/clx/demo/clx-demos.lisp
View file @
87bd6d9d
...
...
@@ -6,13 +6,10 @@
;;; This file should be portable to any valid Common Lisp with CLX -- DEC 88.
;;;
#+
cmu
(
ext:file-comment
"$Id: clx-demos.lisp,v 1.2 2009/06/17 18:22:46 rtoy Rel $"
)
(
defpackage
:demos
(
:use
:common-lisp
)
(
defpackage
#:xlib-demo/demos
(
:use
:common-lisp
)
(
:export
do-all-demos
demo
))
(
in-package
:demos
)
(
in-package
:
xlib-demo/
demos
)
;;;; Graphic demos wrapper macro.
...
...
@@ -39,11 +36,11 @@
(
unless
*display*
#+
:cmu
(
multiple-value-setq
(
*display*
*screen*
)
(
ext:open-clx-display
))
#+
(
or
sbcl
allegro
clisp
)
#+
(
or
sbcl
allegro
clisp
lispworks
)
(
progn
(
setf
*display*
(
xlib::open-default-display
))
(
setf
*screen*
(
xlib:display-default-screen
*display*
)))
#-
(
or
cmu
sbcl
allegro
clisp
)
#-
(
or
cmu
sbcl
allegro
clisp
lispworks
)
(
progn
;; Portable method
(
setf
*display*
(
xlib:open-display
(
machine-instance
)))
...
...
src/clx/demo/gl-test.lisp
View file @
87bd6d9d
This diff is collapsed.
Click to expand it.
src/clx/demo/hello.lisp
View file @
87bd6d9d
;;; -*- Mode:Lisp; Syntax: Common-lisp; Package:XLIB; Base:10; Lowercase: Yes -*-
#+
cmu
(
ext:file-comment
"$Id: hello.lisp,v 1.3 2009/06/17 18:22:46 rtoy Rel $"
)
(
in-package
:xlib
)
(
defun
hello-world
(
host
&rest
args
&key
(
string
"Hello World"
)
(
font
"fixed"
))
...
...
src/clx/demo/mandel.lisp
View file @
87bd6d9d
#+
cmu
(
ext:file-comment
"$Id: mandel.lisp,v 1.2 2009/06/17 18:22:46 rtoy Rel $"
)
(
defpackage
"XMANDEL"
(
defpackage
#:xlib-demo/mandel
(
:use
"CL"
)
(
:export
"NEW-WINDOW"
"EVENT-LOOP"
))
(
in-package
"XMANDEL"
)
(
in-package
#:xlib-demo/mandel
)
(
defvar
*display*
(
xlib:open-default-display
))
(
defvar
*screen*
(
xlib:display-default-screen
*display*
))
...
...