Re: [gtk-list] gdk_imlib questions
- From: raster redhat com
- To: gtk-list redhat com
- cc: tml iki fi
- Subject: Re: [gtk-list] gdk_imlib questions
- Date: Mon, 16 Nov 1998 09:28:44 -0500 (EST)
On 16 Nov, Tor Lillqvist scribbled:
-> I hope this list isn't inappropriate for questions about gdk_imlib.
->
-> While looking through gdk_imlib while attempting to port it to Win32,
-> a few questions have come to my mind:
->
-> - In general, is it a good idea to try to isolate gdk_imlib from X11
-> as much as possible? There are lots of stuff in it that's currently
-> done with straight Xlib calls, even if GDK contains equivalent
-> functionality. (Presumably this is because imlib is mostly older
-> code, written before gdk had this functionality?)
remember Imlib isnt gdk_imlib - imlib is 2 libraries with 2 api's
almost the samethat allow both gdk level and Xlib level apps to share
the same functionality.
-> - Is there a reason why gdk_imlib shouldn't use g_malloc and friends?
same as below - parallelism for maintinence. I don't see why it should
either. malloc is portable - standard ansi-c. it's a moot point.
-> - Isn't there duplicated functionality in gdk_imlib and gdkrgb? (NIH?)
yup - Imlib was written long before gdkrgb. I twas given a gdk API
before gdkrgb existed. Maintinence wise I keep them both at Xlib level
sicne Imlib has Xlib and gdk front-ends. having either significantly
different will mean nightmares for maintinence. Beleive it or not the
Xlib API to Imlib is being used by many apps and is attractive to other
people like the KDE people.
remeber also that gdkrgb and imlbi perfomr rgb->drawable conversion
slightly differently - imlib does it "on the fly" whilst doing a
scaling operation - both at once. this saves extra memory copies but
makes the code a little more complex or verbose. gdkrgb just does
RGB->drawable without and transforms.
-> --tml
->
--
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
raster@rasterman.com /\___ /\ ___/||\___ ____/|/\___ raster@redhat.com
Carsten Haitzler | _ //__\\ __||_ __\\ ___|| _ / Red Hat Advanced
218/21 Conner Drive || // __ \\_ \ | | \ _/_|| / Development Labs
Chapel Hill NC 27514 USA ||\\\/ \//__/ |_| /___/||\\ 919 547 0012 ext 282
+1 (919) 929 9443, 801 4392 For pure Enlightenment http://www.rasterman.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]