# reportfmt

title: All Tickets
cols:
  #ffffff Key:
  #f2dcdc Active
  #e8e8e8 Review
  #cfe8bd Fixed
  #bde5d6 Tested
  #cacae5 Deferred
  #c8c8c8 Closed

sqlcode:
  SELECT
    CASE WHEN status IN ('Open','Verified') THEN '#f2dcdc'
         WHEN status='Review' THEN '#e8e8e8'
         WHEN status='Fixed' THEN '#cfe8bd'
         WHEN status='Tested' THEN '#bde5d6'
         WHEN status='Deferred' THEN '#cacae5'
         ELSE '#c8c8c8' END AS 'bgcolor',
    substr(tkt_uuid,1,10) AS '#',
    datetime(tkt_mtime) AS 'mtime',
    type,
    status,
    subsystem,
    title
  FROM ticket


# event

type: ci
user: andreask
comment:
  Added missing SHARED_BUILD definition. This prevented installation of pkgIndex.tcl in a regular shared build.


type: ci
user: aku
comment:
  Two more system libraries needed on Win32, and added platform specific str(n)casecmp -> str(n)icmp mapping.


type: g
user: drh
comment:
  Tag changes on [/timeline?dp=1d08a4c91e680c2d&n=4 | 1d08a4c91e680c2d]: Add propagating symbolic tag "trunk".


type: g
user: drh
comment:
  Tag changes on [/timeline?dp=1d08a4c91e680c2d&n=4 | 1d08a4c91e680c2d]: Add propagating branch=trunk.


type: ci
bgcolor: khaki
user: stwo
comment:
  Cleaned up demos. New demo runner.
  Demos now have common prologue and can be easily run individually.
  Used method from Tk for locating demo dir.
  New Makefile target 'demo' will run the demo runner using the newly-built 3dcanvas.
  Demos now installed.
  Improved procesing of demos for dist.
  Improved install message consistency.
  Sync with latest TEA.


type: ci
bgcolor: khaki
user: stwo
comment:
  Move tests to tcltest 2.2. Rename layers.test to layers.itest because it is an interactive test. Cleanup. Zap trailing whitespace.


type: ci
bgcolor: #95b28e
user: Administrator
comment:
  Broke the c3main.c file into platform specific chunks.
  The appropriate chunk is now called up from an "include" directive
  within generic/c3dMain.c n


type: g
user: hypnotoad
comment:
  Tag changes on [/timeline?dp=ddfa105205a62bab&n=4 | ddfa105205a62bab]: Add propagating bgcolor=#95b28e.


type: ci
bgcolor: #95b28e
user: hypnotoad
comment:
  Cargo culted a Cocoa implementation for Canvas3d from a combination
  of patches to Togl and the Apple Developer references.

  Updated the configure scripts to load all of the Frameworks needed
  to kick of a Cocoa version of Canvas3d. 

  The code compiles and links, but I'm having a problem with
  Garbage collection that keeps the dll from loading into a wish shell.

  But that should be easy to solve.

  Each platform now provides it's own implementation of WidgetExpose.


type: ci
bgcolor: #95b28e
user: hypnotoad
comment:
  More alchemy. 

  Renamed createWindow() to C3d_Native_CreateCanvas. Altered variable
  names to better reflect the conventions in the TkCanvas.c file.

  Approaching completion on the Cocao native version of the 3d Canvas.
  I can get the demo up, albeit briefly before it crashes.


type: ci
bgcolor: #95b28e
user: hypnotoad
comment:
  Added a "photo" command to take a snapshot of a canvas and save to at 
  tk photo. (Shamelessly stolen from the Togl folks.)

  Moved the camera back on the cube demo

  Re-enabled overlays.

  Fixed a typo.


type: ci
user: hypnotoad
comment:
  Merged in changes from the Hypnotoad branch.

  Added a "photo" command to the widget. This saves the display as a tk photo.

  The implementation for modern incarnations of OSX under Tcl 8.6 is finally working.


type: ci
bgcolor: #95b28e
user: hypnotoad
comment:
  GOOD NEWS EVERYONE... The canvas now works under Cocoa.

  Moved several structures that have the potential to be used elsewhere
  in the module out of c3dmain.c and into c3d.h:

  * AddTagContext
  * ItemCgetContext
  * ItemConfigureContext
  * BboxContext
  * FindSearchContext

  Pre-compiler tests for WIN32 have been redirected to CAN3D_WGL
  Pre-compiler tests for MAC_OSX_TK have been redirected to CAN3D_AGL
  Pre-compiler tests that looked for the lack of WIN32, MAC_OSX_TK, and CAN3D_NSOPENGL
   have been redirected to CAN3D_X11

  The View stored in the structure under Cocoa is now of type NSOpenGLView. This 
  object is generated as late in the lifecycle of the canvas as possible, and is
  mapped to a Tk drawable object via the addSubview method. (Copied this behavior
  from buttons.)

  Added a check for garbage collection that mimics the same one used by Tk. Where
  possible, I rip the macros for garbage collection from the private headers of Tk.

  Renamed functions:
  C3d_Canvas_X -> Functions that manipulate the canvas structure.
  C3d_Native_X -> Functions that operate in a platform dependent manner.


type: ci
bgcolor: #95b28e
user: Administrator
comment:
  Removed redundent definition of C3d_Canvas_WorldChanged() from
  Windows, Carbon, and X11 implementations.


type: ci
bgcolor: #95b28e
user: hypnotoad
comment:
  As 8.5 also uses the same Cocoa calls, I've told the canvas to compile
  for NSOpenGL in that environment too.


type: ci
bgcolor: #95b28e
user: hypnotoad
comment:
  Fixed a double-free on widget destruction.

  The system for saving and restoring tag configuration information
  was not portable to 64 bit systems, so it has been disabled for
  them.


type: ci
user: hypnotoad
comment:
  Final round of bug fixes for the 1.2 release. Corrected an issue
  with configure -tags that was causing crashes on 64 bit platforms.

  Also cleaned up a double-free that was going on during widget destruction.


type: ci
user: hypnotoad
comment:
  Renamed the variable we use for garbage collection. We were getting a 
  collision when tk and canvas3d were being statically compiled into
  the same binary.


type: ci
user: seandeelywoods
comment:
  Build fixes. Un-renamed canvas3dMacOSXCGEnabled back to tkMacOSXGCEnabled.
  tkMacOSXGCEnabled is no longer a static variable, as it's needed by some
  Tk internal macros.


# ticket

tkt_uuid: b718f2d27dda7f8f34ea84e56c66cd03c7dc967f
type: Code_Defect
status: Open
priority: Immediate
severity: Critical
foundin: CVS
private_contact: cb450e0e7a132d47024fbcd2b3f6f3744264a35a
resolution: Open
title: Event handler cleanup crash
comment:
  There is a rather nasty crash in canvas3d due to
  deletion event handlers not being cleaned-up.
  Following is a patch.  Regards Peter


  --- c3dmain.c.orig      Fri Nov 21 21:13:58 2008
  +++ c3dmain.c   Fri Nov 21 21:14:24 2008
  @@ -13,6 +13,11 @@
   #include <math.h>
   #include <stdlib.h>
   
  +static void 
  +widgetExpose(ClientData clientData, XEvent *eventPtr);
  +static void drawWhenIdleCb( ClientData clientData);
  +
  +
   /* The events mask for canvas3d X-windows. */
   #define ALL_EVENTS_MASK         \
      (KeyPressMask |              \
  @@ -495,6 +500,9 @@
           Tcl_HashEntry *pEntry;
           Tcl_HashSearch search;
           char *pOptions = (char *)&pCanvas->options;
  +        Tk_DeleteEventHandler(
  +            pCanvas->win, ExposureMask|StructureNotifyMask, widgetExpose, pCanvas);
  +        Tcl_CancelIdleCall(drawWhenIdleCb, (ClientData) pCanvas);
   
           Tk_FreeConfigOptions(pOptions, pCanvas->optionTable, pCanvas->win);
   
  @@ -3317,4 +3325,3 @@
   {
       return Canvas3d_Init(interp);
   }
  -


tkt_uuid: 8827bdc73476210df4758abe647aee009a9bf477
type: Code_Defect
status: Open
severity: Important
foundin: CVS
private_contact: abe4a29288bc5fe75f1bafacd461df7ece26a399
title: Option -teximage not working?
comment:
  Can't seem to get canvas3d to support polygon -teximage.
  Everything I try does nothing.
  Is there an example that shows it works?


tkt_uuid: 2a450b6958caca2d0b23c07a50a07fa0aa1be414
type: Code_Defect
status: Open
severity: Critical
foundin: last
private_contact: 60a835e5af61072ebfa9ca5606b7508e806d16b8
title: Unable to load library from directory with spaces in names.
comment:
  Unable to load library from directory with spaces in names because of invalid quoting in pkgIndex.tcl file. This bug important especially for starkit deployed applications on Windows platform where path to user desktop directory contains spaces in name.

  Patch:
  <verbatim>
  @@ -293,12 +293,12 @@
   
   
   IFNEEDEDARGS = $(PACKAGE_NAME) $(PACKAGE_VERSION)
   pkgIndex.tcl-hand: $(PKG_TCL_SOURCES) $(BINARIES)
   	echo package ifneeded $(IFNEEDEDARGS) [subst {         >  pkgIndex.tcl
  -	echo   load [file join '$$dir' $(PKG_LIB_FILE)] Canvas3d >> pkgIndex.tcl
  -	echo   source [file join '$$dir' c3dshapes.tcl]          >> pkgIndex.tcl
  +	echo   load [list [file join '$$dir' $(PKG_LIB_FILE)]] Canvas3d >> pkgIndex.tcl
  +	echo   source [list [file join '$$dir' c3dshapes.tcl]]          >> pkgIndex.tcl
   	echo }]                                                >> pkgIndex.tcl
   	for tcl in $(PKG_TCL_SOURCES) ; do cp $(srcdir)/$$tcl . ; done
   
   #========================================================================
   # Distribution creation
  </verbatim>


tkt_uuid: c1695e0e9b70827b69195e9e235b554eeb75576a
type: Code_Defect
status: Open
severity: Severe
foundin: b6654b9190720e2b
private_contact: f6b536f9c1ed4b589e96e38fb613afc3d8991783
title: Key events missing on OSX
comment:
  Built on OSX against ActiveTcl (8.5.2; I should upgrade sometime). Ran the triangles demo (as recommended on main wiki page. Impressed. Pressed key. Not so impressed; keys not doing anything at all. Mouse clicks work fine.


tkt_uuid: 7a45eb155681093294a503f7ea24443064c79268
type: Code_Defect
status: Open
severity: Critical
foundin: 2012-06-01
private_contact: af9c70d5700d5af288b87a3a9ed94e1300911d18
title: Missing Textures
comment:
  Cannot see textures.
  All demo work, but texture2.tcl
  No error is raised but I cannot see textures.
  Tried with others images on a simple square polygon. No result.

  Tested on Win-7. Built with msys compiler. OK
  Tested on Win-XP. Rebuilt with msys compiler. Everything works but textures.

  May you provide some diagnostic tool for OpenGL ?


