aboutsummaryrefslogtreecommitdiff
path: root/generic/Image.c
AgeCommit message (Collapse)Author
2007-06-18Backup to images not filtered. The linear filter causedlecoanet
more annoying artifacts than it corrected.
2007-04-26Fix a missing cursor in an empty text itemlecoanet
2007-03-01Retrofitted the anti aliased font patch under Windows. It seems to be buggylecoanet
with ATI cards. It has to do with the X11 porting layer, XGetImage more precisely.
2007-01-23Exported To2Powerlecoanet
2006-10-18Lower the pixmap size limit used by SuckGlyphsFromServerlecoanet
to accomodate XFree86. Now the limit is 4096.
2006-10-17Added windows to the list of platforms able to exploit anti aliased glyphs inlecoanet
SuckGlyphsFromServer.
2006-10-17Make use of the ZPixmap format instead of XYPixmap when dealinglecoanet
with X Images. Ported to Mac Os (without X11).
2005-10-18Changed the text texture filtering to linear. This should provide betterlecoanet
looking text when scaled/rotated.
2005-05-25Fix a bug preventing the display of characters above 127 in openGL.lecoanet
2005-05-10Merge of the newly developped postscript code (still not fully functional).lecoanet
2005-04-27Modified the copyright to BSD style.lecoanet
2005-04-13Expanded the tabs into spaces to make the indenting independant oflecoanet
the editing environment (emacs vs vi for example).
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
2004-07-28Fixed the font loading code when compiling for perl 800.lecoanet
The error prevented the correct encoding of codes > 127.
2004-05-14Suppressed the uneeded inclusion of tkFont.hlecoanet
2004-05-10Reworked once more the font loading code to fix a buglecoanet
occuring under windows. This time GL fonts loading is deferred to just before drawing. This fix the drawing problem that occured the first time a window was mapped (and may be other problems has well).
2004-05-07Suppressed traceslecoanet
2004-04-30Rewritting of the font texture code.lecoanet
Adaptation of the code needing GL context activation.
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-04 * Adaptation for perl/Tk 804.lecoanet
* Changed the image texture handling code now that only one context is kept for each display. * A reference count is kept for images with multiple clients with same proc/procdata. This will prevent early deallocation in this case. * Fixed a bug in the image update procedure when re-creating an existing image. The transient deleted state was not properly handled and the type of image can change in the process as well as the pointer to the photo structure. * Font texture is cached once per display instead of once per widget.
2004-02-20Some further tweaking to make the utf stuff notlecoanet
disturb Perl/Tk.
2004-02-13Fix a bug in processing of font charset namelecoanet
2004-02-13Protected UTF8 patch for correct compilation under Perl/Tk 800lecoanet
2004-02-13 * (ZnGetTexFont): The font encoding is considered when loadinglecoanet
a font. This plus a patch in the text item should lead to a correct behavior when drawing UTF8 strings (regardless of the input versus output encoding).
2003-11-28 * (ZnGetTexFont): Patch to enable all 256 glyphs of a fontslecoanet
minus the 32 first.
2003-10-13*** empty log message ***lecoanet
2003-10-03Added code to propagate updates on tk images.lecoanet
Added code to construct the valid region of an image (shaped) even if TkPhotoGetValidRegion is not available (perl or not a photo). Added a fun telling if a point is on the active area of the image. Changed the internal api for using images to match the changes above. A tkfont reference is kept for each txf using the font so that the font can be freed if no longer used. Use of the max texture size is now reliable and texture allocation for fonts start with the largest tex and increase the tex height from 64 to the max tex limit. This seems to work ok for large fonts.
2003-05-16 * Fixed a bug on MAX_CHAR preventing display of accentedlecoanet
letters (the most useful ones. * (ZnImageTex): Alpha can be safely (?) loaded both for perl/tk and tk. This is valid only under GL. * (SuckGlyphsFromServer): Trapped a potential problem with some fonts reporting zero width. Improved error report. The maximum width was computed on M and W. If those characters were missing, a zero pixmap allocation occured. Now the max width is computed on the real characters.
2003-05-09 * (ZnImageTex): in perl/Tk, alpha need to be set to 255 everywhere inlecoanet
the image due to limitation in Tk 8.0.
2003-04-24Test the allocation of textures both for images andlecoanet
for fonts. Suppressed the glGetIntegerv on GL_MAX_TEXTURE_SIZE which can be erroneous before window mapping. Disabled the test on max_tex_size until the value can reliably be read as soon as the widget creation. The texture for font is increased on the width and the height in alternance. The limit on texture expansion will be found at texture creation time and reported through glGetError. The structure holding the font parameters used for openGL is not allocated is an error occur during font loading. The structure is also properly freed (this was partially leaking).
2003-04-16Update from the Windows port and general cleanup/restructurelecoanet
2003-03-17 * (ZnFreeTexFont): Correction de l'ordre de desallocationlecoanet
du txf qui conduisait � un core dump. * Correction de la liste des caract�res sacceptables dans une fonte en GL, il y avait deux fois ~
2003-01-20 * Correction d'une erreur d'attribution des images sous X.lecoanet
Il faut les sp�cialiser par Screen et non par Display.
2003-01-14 * Correction d'un bug lors de la d�sallocation des textures:lecoanet
le contexte graphique GL n'�tait pas n�cessairement correctement positionn�, ce qui provoquait la lib�ration dans le mauvais contexte donc le mauvais widget. Visible au travers d'un bug de dessin de textes sous forme de carr�s noirs mais vrai aussi pour les images.
2002-12-09 * Corretion pour une compilation propre en Tcllecoanet
2002-10-10 * (SuckGlyphsFromServer): Correction de warnings sans objet.lecoanet
2002-09-26 * (ZnGetBitmap, ZnGetImage): Passage syst�matique par Tk_GetUidlecoanet
avant d'utiliser les noms de bitmap/image. * Corrections assurant une compilation correcte sans GLX.
2002-09-18 * (ZnGetBitmap): Correction de l'allocation d'une pixmaplecoanet
specifique au display lors de la creation d'une bitmap (Corrige le bug d'A.Marion). * (ZnTexFontTex): Ajout du symbole euro.
2002-09-09 * (ZnTexFontTex): Mise � jour de la liste des caract�res utilis�slecoanet
dans un fonte (conforme aux fontes de JLV).
2002-06-24 * (ZnImageTex): On ne peut pas utiliser de filtrage lin�airelecoanet
sur les images. Si elles sont utilis�es comme tuiles l'alpha � l'ext�rieur de l'image se trouve inject� dans le bord de l'image et provoque des lignages.
2002-05-31Filtrage lin�aire pour les images sans transparence. Ca ne marchelecoanet
pas bien pour les autres. Correction d'un bug potentiel dans From5r6g5b, bpixels pouvait �tre NULL et provoquer un core dump.
2002-05-29Ajout d'un include pour corriger des warnings en Tcl.lecoanet
2002-05-27 * (ZnFreeTexFont): La d�sallocation de ressources d'une fontelecoanet
conduisait � un core dump en GL dans le cas o� plusieurs fen�tres avaient �t� cr�es. * Lors de la cr�ation de plus d'une fen�tre en GL le processus d'allocation des ressources de fontes se mettait � boucler.
2002-05-16Re�criture compl�te de la gestion du chargement/lib�ration des images,lecoanet
des bitmaps et des fontes. On n'utilise plus Tk que pour initialiser l'image, le compte de r�f�rence est gard� en local. Les images et bitmap sont sp�cialis�es par display pour X, par fen�tre pour GL. Les fontes sont sp�cialis�es par fen�tres en GL. Le code de modification dynamique des images propos� par Tk n'est plus pris en compte. Les textures et la m�moire utilis�es par les images/bitmap/fontes sont lib�r�es d�s que possible, r�sultant en une bien meilleure utilisation des ressources (surtout en ce qui concerne les textures). Ces modifs corrigent le bug de dessin des images/fontes observ� sous GL avec deux ou plusieurs Zinc cr��s simultan�ment ou cons�cutivement dans la M�ME application.
2002-03-29Rajout de plusieur caract�res oubli�s � la liste des caract�reslecoanet
trait�s par openGL.
2002-03-15ajout de ValidateImage qui permet de centraliser la validatelecoanet
d'une image Tk et sont affectation � un attribut.
2002-01-22Modification de la liste des caract�res reconnus par le rendu textelecoanet
en GL.
2001-11-12Optimisation de la taille de la texture utilis�e pour stockerlecoanet
une fonte.
2001-10-12Suppression du code LIBART.lecoanet
Ajout de routines pour g�rer le texte en m�moire de texture. Ajout de routines pour g�rer les images/bitmap en m�moire de texture.