aboutsummaryrefslogtreecommitdiff
path: root/generic/tkZinc.c
AgeCommit message (Collapse)Author
2005-11-25Improved the error reporting of the transform methods.lecoanet
2005-10-19Added some code to do high precision timing in the main drawing functionlecoanet
Repair(). Tkzinc now test whether the tagOrIdOrTransform given to translate is not the empty string (cf zinc-anim and D Etienne).
2005-09-13The fix for the damage problem on i865 doesn't really work reliably. It is offlecoanet
now. The real fix is not using damage at all on these plateforms. On Nvidia it is quite safe to use damage though.
2005-09-13Enabled all full refresh on window motion, expose, etclecoanet
Fixed Destroy prototype.
2005-09-12Changed all TK_CONFIG_NULL_OK by TK_OPTION_NULL_OK in theLecoanet
option table Fixed a missing font_tfi initialisation when ATC code conditionally removed Rearranged the code for destroying a window. The Damage optimization under GL should now work on all video cards whether the buffer swapping occurs by copying or by actually swapping.
2005-05-25Fix a core dump when typing text and the pointer is outside the focusedlecoanet
item.
2005-05-10Merge of the newly developped postscript code (still not fully functional).lecoanet
2005-04-27Declared ZincObjCmd public in the zinc dll for windows. This will enablelecoanet
the C++ wrapper compilation on windows. Modified the copyright to BSD style.
2005-04-13Expanded the tabs into spaces to make the indenting independant oflecoanet
the editing environment (emacs vs vi for example).
2005-04-12Switched to the native GLU tesselator instead of the buitlin.lecoanet
2005-03-22Suppressed __unused attribute, this will be dealed withlecoanet
by the gcc directive -Wno-unused-parameter and VC++ does not care about these anyway.
2005-02-12Fixed the __unused macro to avoid a clash with dummy variables used in 64 ↵lecoanet
bits headers
2005-01-24Fixes for the conditional compilation of the atc code.lecoanet
2005-01-24Suppressed the conditional compilation of the anti-overlappinglecoanet
code. Added the conditional compilation of all the atc code.
2005-01-18Fixed a big memory leak in Geo.c related to polys and tristrips.lecoanet
Fixed a typo in the find closest command related to atomic groups.
2004-10-18Added a missing ifdef to compile without GL.lecoanet
2004-09-21One more attempt towards a truly working GL initializationlecoanet
code.
2004-09-17Added a test on the bounds of the field index in command bbox.lecoanet
2004-09-09Fixed a bug in the parsing of find enclosed/overlapping arguments.lecoanet
The recursive flag was mixed with the inGroup argument. Added a test to the bbox method argument parsing to trap permutation of options (-label -field) and tagOrId specifications.
2004-07-30Fixed a problem in GL init code which prevented zinc fromlecoanet
working with Mesa. A (hopefully) more useful warning is emitted when openGL rendering is not good enough (most often 24 bits buffer or stencil not available). Tweaking and bending in the openGL init code to make it work better.
2004-05-19Changed the extent of some GL ifdef so that the file compilelecoanet
without GL defined.
2004-05-19ZnGLMakeCurrent: Added code to select a valid context from the widget listlecoanet
for the display when no widget is passed in. This is the case when freeing image or font texture. Enabled the context freeing for the last widget on a given display. Both patches together should fix the crash on MacOS.
2004-05-14Suppressed the fieldbbox command. It has been merged with bbox andlecoanet
can be called by the -field and -label options.
2004-05-10Suppressed all OutputDebugString traces.lecoanet
Fixed the GL redrawing problem occuring under Windows after a window move and under Linux when the window was clipped by the screen border. The graphic context is freed when no longer needed, (no more zinc windows on a given display). This code is suspended on Linux because of a problem (perhaps in nvidia driver) causing a random) crash of the server. Fixed under Windows the problem of activating a GL context for freeing resources after the destruction of a widget. Now a list of active widgets is kept and the code activate a remaining widget in the same context. Fixed default GL font loading.
2004-05-07Slightly rearranged the init sequence for openGL. This willlecoanet
ensure that render will be reset has soon has possible if GL is not there. It will _stay_ set if we discover later that GL is not available. This will fix a rather bewildering situation when using images: The image is created for GL, then all of a sudden accessed in an X11 context. Fixed the event emitting code so that enter/leaves are not emitted (or omitted) out of sequence.
2004-05-03Fix a very nasty memory bug under Perl/Tk windows.lecoanet
2004-04-30Adaptation for compilation on Windows and Perl.lecoanet
Creation of new global variables including the tesselator and the temporary lists. The tesselator common code is now in this module. Introduction of the new option configuration code for Perl/Tk 804 and Tcl. The Perl/Tk 800 code still use the old API. Reworking of the initialisation and switching of the drawable, backbuffer and openGL contexts. The initialisation is now done when receiving the map event. This still is not perfect on Windows. Fixed the scrollbar protocol. It should now work like the canvas in all configurations. Fixed the Coords command. It now correctly returns a point as a flat list when requested a single point or when the item has only one coordinate. Some cast to smooth out the compile on Windows. Changes in the signature of ZnAttributesInfo. The scissors used when redrawing in openGL are desactivated during resize and expose. It doesn't work when under those conditions. In Windows a full redraw is forced when entering the window to compensate for the same bug after a window move.
2004-03-26Added a new fieldbbox method and restored the old behavior of the bbox method.lecoanet
2004-03-24Added a boolean abs to the translate method. Added the tget method.lecoanet
2004-03-23Changes related to OpenGL context handling (only one context per display) ↵lecoanet
and patches to avoid using widget structure in image cache */
2004-03-23Fix a problem with the scrollbar protocol (Y scrollbar bug).lecoanet
2004-03-10*** empty log message ***lecoanet
2004-03-04The coords command will return a flat point instead of a listlecoanet
of one point for all items with a -position.
2004-03-04 * OpenGL contexts are allocated by display instead of by widget.lecoanet
* Colormaps are not allocated for each widget window but are cached by display (should be perhaps by screen) * Freed the visual info returned by each call to glXChooseVisual. This used to generate a memory leak for each widget instance. * Adapted for perl/Tk 804. * Some better init code to prevent valgrind from reporting use of unitialized memory (can be useful anyway). * Commented an OpenGL bug workaround dealing with bad partial redraw after moving the window. It seems to have disappeared (tested with NVIDIA 53.3). * Free the drawing GC as part of destroy cleanup.
2004-02-16Forced override_atomic to False when Picking forlecoanet
enter/leave management in PickCurrentItem.
2004-02-13Suppressed trace infoslecoanet
2004-02-13Changed the behavior of options/attributes for managing and displaying track ↵lecoanet
histories
2004-02-13Fixed an error in DoEvent related to which part shouldlecoanet
be considered for focusable items. Introduce the postscript command (not functional yet!)
2004-01-26 * (WidgetObjCmd): Added a flag for providing angles inlecoanet
degrees to the rotate method. * (WidgetObjCmd): Added an optional center for the scale method. * (FindItems): Modified the recursive flag of sub-methods closest, enclosed, overlapping so that the find can be asked to investigate into atomic groups. Simply say 'override' instead of true/false. * (WidgetObjCmd): Method bbox no longer works on multiple tagOrIds but handles label and field bboxes on items with fields. * bind now handles virtual events. * bind accept an alternative syntax for specifying fields. * Added conditional inclusion of overlap manager include
2003-12-11 * Added a tcompose method for composing two transform fromlecoanet
items or named transforms. * Added a tset method to set a transform from given matrix values. * Reformat of the code to suppress braces inconsistencies due to ifdefs. * Added a skew method to skew a transform both along x and y axes. * The transform command now accept the special tag device as source and destination. It accept also a named transform as source and destination. * Added a reserved tag identity as possible source transform for command tsave. * tsave can now take a named transform as source.
2003-11-28 * The smooth method incorrectly reported bezier curvelecoanet
segments instead of straight line segments. * Added a configuration option -followpointer to try some optimizations of motion event processing under application control. The motion events are still emitted but the enter leave processing is suspended when this option is set to zero.
2003-10-05Changed scrollbar support code so that it can worklecoanet
with tcl and perl-tk.
2003-10-02Added the -tracksymbol option to be used as a default forlecoanet
the -symbol attribute for tracks. Updated the option code to follow the new image behavior. The scrollbar protocol in perl has been slightly debugged but still won't work, more on this later. Update the font code to load fonts infos (GL) only when receiving the realize event.
2003-06-16 * Use of the new ZnGetGradientPixel when possiblelecoanet
* (ZincObjCmd): Fixed a core dump when destroying zinc after an error occured during the first Configure. The tesselator got inited a bit late.
2003-05-09 * (PickCurrentItem, DoEvent): Fixed a couple of problems inlecoanet
Enter/Leave generation during grabs. * Fix a segfault occuring when asking for the ancestors of an unknown item. * In Contour, the contour reverting was done on the shared point array given by GetClipVertices/GetContours, not on the new unshared array. * It is now possible to add a polygonal (non simple) contour from an item that export only the GetClipVertices method. In the past it was only possible to add bounding boxes via this method. This is important for rotated rectangles for example.
2003-04-25Correct a misalignment between the option array andlecoanet
the option offsets causing core dumps and a wrong behavior of scrollbars under Windows.
2003-04-24Corrected glu.h include.lecoanet
wi->flags was not properly inited (too late). Added max_tex_size with a default value of 64. Shut up some warnings (some not so harmless). Moved the ZnGetTexFont after the window mapping is in effect. The same for glGetIntegerv.
2003-04-16Update from the Windows port and general cleanup/restructurelecoanet
2003-04-02 * Modifs afin que le gradient de relief utilis� pour dessinerlecoanet
la bordure de fen�tre ne soit allou� que si le relief est effectivement utilis�.
2003-03-17 * Utilisation de l'ent�te glu.h de libtess au lieu de GLU.lecoanet
* (WidgetObjCmd): Emp�che de placer un groupe ancetre dans un de ses fils par la commande chggroup. * (Contour): Correction d'une erreur de type sur winding_flag. * Incorporation du test de la variable d'environnement ZINC_GLX_INFO permettant de desactiver les msgs d'info GL. * (Repair): Suppression de la d�pendance � GLU (gluOrtho2D). * (Tkzinc_Init): Compilation pour utiliser tcl et tk avec les stubs, l'init est plus conforme � la norme Tcl actuelle. * (Destroy): Correction d'un core dump du � la tentative de lib�ration d'un context GL en X.