netgen/ng/Togl2.1
2019-09-03 17:06:26 +02:00
..
doc Typos 2018-01-14 12:18:54 -05:00
gl Use gl headers on windows 2017-11-13 02:38:13 -08:00
tclconfig Misc. typo fixes 2017-07-25 23:29:41 -04:00
Xmu Misc. typo fixes 2017-07-25 23:29:41 -04:00
aclocal.m4 Typos 2018-01-14 12:18:54 -05:00
ben.rgb
CMakeLists.txt Cleanup CMake build system 2017-05-29 21:41:27 +02:00
configure Misc. typo fixes 2017-07-25 23:29:41 -04:00
configure.in
double.c
double.tcl
gears.c
gears.tcl
image.c
image.h
index.c
index.tcl
LICENSE
Makefile.in
multisample.tcl
overlay.c
overlay.tcl
pbuffer.c
pbuffer.tcl
pkgIndex.tcl.in
README.bin Misc. typo fixes 2017-07-25 23:29:41 -04:00
README.stubs
stereo.c
stereo.tcl
texture.c
texture.tcl
togl_ws.h.in
togl.c extern pixelscale in togl 2018-05-23 21:32:17 +02:00
togl.decls
togl.h disable opengl warnings 2019-09-03 17:06:26 +02:00
Togl.py
toglAGL.c Misc. typo fixes 2017-07-25 23:29:41 -04:00
toglDecls.h extern pixelscale in togl 2018-05-23 21:32:17 +02:00
toglFont.c
toglGLX.c
toglNSOpenGL.c fixes for nsopengl 2016-02-22 09:21:47 +01:00
toglProcAddr.c
toglpy.h Misc. typo fixes 2017-07-25 23:29:41 -04:00
toglStubInit.c
toglStubLib.c
toglWGL.c
tree2.rgba

This version of Togl is entirely free from
dependencies on Tcl/Tk's internal functions. It uses the public stubs
interface, witch means that the same binary works with any stubs-aware
wish (i.e. version >= 8.1)

It has been tested on Windows NT/2000 and Linux for several Tcl/Tk versions up
to 8.4a3. I haven't been able to test the Mac port, it propably needs mending 
but I can't see why it shouldn't work in principle.

Implementation wise, what differs from Togl 1.5 is that Togl_MakeWindowExist()
is replaced by Togl_CreateWindow(), a function that gets registered in Tk as a callback for window creation. In Tk/Tk 8.4a3, there is a new public API call 
Tk_SetClassProcs() to register this callback, but for earlier versions of Tk 
one needs to do this using some pointer magic.
There is a run-time check to determine which method to use, hence the 
same binary runs on all versions of Wish from 8.1 and up. For this to 
work you need to compile against the headers from Tcl/Tk 8.4a3 or later, or
the binary will only work for Tcl/Tk 8.1-8.4a2.
The tk8.4a3 public headers (tk8.4a3.h + tkDecls.h) are included for
conveniance, and they are used if the flag -DUSE_LOCAL_TK_H is specified.

Jonas Beskow, December 2001