Commit Graph

30 Commits

Author SHA1 Message Date
rephorm c475e48ead put this in HEAD too
SVN revision: 6099
2002-04-01 04:59:39 +00:00
Carsten Haitzler 85ecd1a6fc forgot to ever do this.. mayaswell reload changed image objects off disk...
SVN revision: 5707
2001-11-17 02:44:23 +00:00
Carsten Haitzler fc982b9fa0 you can address objects by name now all image objects by default get a name
set as the basename of the file (ie "/tmp/blah/foo.png has the name of
"foo"). you can override the name if u want... or just not use it. should
really use hash table - patch for this from rusty russel :) i need to wokr
on this stuff before 1.0


SVN revision: 5652
2001-11-07 21:20:01 +00:00
Carsten Haitzler 0d7a6252be oooops.. i forgot one lump of logic for adding new object if currently the
object inthe evas are in layers above the new one.. fix fix oops.. that was
a silly bug... :)

and well.. while i was at it.. some actual code in the render extension
support in the render engine in evas.. it onyl does image objects right
now.. and it doesnt do it very optimally.. consider that engine a work in
progres.. i'm finding what does and doesnt work well in the render extension
and noticing some holes in it... this one wont be ready any time soon
though... and the gl engine is still about 10 times faster on the same
hardware... and in theory both are hardware accelerated...
anyway only time will tell. the render extension doesnt do image
transforms.. so this wont help speed it up at all that much :(


SVN revision: 5267
2001-08-24 04:37:44 +00:00
Carsten Haitzler 4790ba40f1 ewwwww.. i forgot to free the font string....
and forgot to cleanup clip lists on objects when the evas gets deleteded and
all objectsin it get nuked!

woop! fix fix fix :)


SVN revision: 5185
2001-08-17 00:05:12 +00:00
Carsten Haitzler 9528534f0b fix soem routines that i found incosistent whilst writitng the docs... :)
SVN revision: 4826
2001-06-18 01:59:51 +00:00
Carsten Haitzler 3e9ca9ebfa add call to allow program to query if image object has alpha...
SVN revision: 4664
2001-04-20 01:58:57 +00:00
Carsten Haitzler fa58fc4e94 and set handle to NULL when we're done freeing it....
SVN revision: 4637
2001-04-16 19:26:58 +00:00
Carsten Haitzler 47825eb89b and invalidate held data if u change image file or font (font/size)
SVN revision: 4636
2001-04-16 19:18:15 +00:00
Carsten Haitzler 411ec99a57 image cache for eva sis preciselyu that.. cache. image and font data are
kept resident as long as the obejct has been rendered at leats once AND it
is still within the viewport of the output of the evas and it is still
visible. if it does not meet these conditiosn it gets put into "Cache" and
only then does cache become an issue. the chancges were nice and small to do
this :)


SVN revision: 4634
2001-04-16 18:38:22 +00:00
Carsten Haitzler 2e7ba74abe get rid of those printfs.
SVN revision: 4243
2001-02-17 22:07:42 +00:00
Carsten Haitzler 33a9fe85dc and handle that other case...
SVN revision: 4241
2001-02-17 21:52:18 +00:00
Carsten Haitzler 70013f2719 oops - minor logic hiccup - fixed.. also imlib2 fix for its load error
checking. missed this when adding db style (key in file) loading.


SVN revision: 4239
2001-02-17 20:39:53 +00:00
Carsten Haitzler ed56013f72 load_error now stored and retrievable for image objects :)
SVN revision: 4238
2001-02-17 20:26:57 +00:00
Carsten Haitzler e14aa620c2 dont return null fi images doesnt exist.. obejct creation shoudl ALWAYs
succeed!


SVN revision: 3934
2000-11-29 04:49:22 +00:00
Joshua Deere f7a6c88618 Changed evas_add_image_from_file() to return NULL if the file could not be
loaded or did not exist


SVN revision: 3890
2000-11-15 21:31:14 +00:00
Carsten Haitzler c6e5ed3a1d some basic start on documentation....what's happening to me? all this
documentation? :)


SVN revision: 3554
2000-09-27 15:14:06 +00:00
Carsten Haitzler 289117a952 privatise data structs for evas... much cleaner. all structs are now internal
so you cant look into them. all defines now become enums too - cleaner. no
more bypassing the api is possible :)

also added better checks and --with- stuff for imlib2, gl and ttf


SVN revision: 3548
2000-09-26 19:16:48 +00:00
Carsten Haitzler 8923422a2e add code to double check object type before doing anything to objects
SVN revision: 3523
2000-09-18 02:22:04 +00:00
Carsten Haitzler e2ffcf313c dissalow resizing for line and text objects - doesnt make sense -
change the font or string to resize text, and chnage line coords.

add ability for color settings to apply to image objects too (image colors get
multiplid by color set on image - 255, 255, 255, 255 is "normal" so it's fast
path rendering - all other colors go thru color modifiers in the imlib engines
and gl handles it int he gl engine. if alpha is 0 the object draw is aborted
immediately for fast path.


SVN revision: 3468
2000-09-15 13:49:14 +00:00
Carsten Haitzler a751ec1b21 we have a new rendering target for evas - an imlib image buffer.
it will render to a virtual image buffer just like it would to a window.
the logic works the exact same way as a window - it wil lonly render the rects
that changed. if a rect chnaged it expects that rect to have been cleared and
will blend the canvas ontop of the image - so you can use it to augment the
current image contents (though they will be permenantly modified). This is
specifically designed for doing things like rendering a canvas to be saved
to an image file.

WHEEEEEEEE :)


SVN revision: 3460
2000-09-13 22:36:46 +00:00
Carsten Haitzler 85188b4c49 silly - move that free
SVN revision: 3323
2000-09-05 17:20:10 +00:00
Carsten Haitzler f59266a099 double free of callbakcs! no no no - don't do that!
SVN revision: 3315
2000-09-04 23:01:03 +00:00
Carsten Haitzler a677bd8076 handle events better on other property chnages
SVN revision: 3198
2000-08-20 22:25:08 +00:00
Carsten Haitzler 056e350668 api filled out much better now........ infact... i'm almost done :)
SVN revision: 3186
2000-08-20 07:13:31 +00:00
Carsten Haitzler c64671e765 text objects work! dude! like totally! :)
SVN revision: 3112
2000-08-14 03:23:46 +00:00
Carsten Haitzler fc068cdd82 eas now handles fill params for image. tile and offset of image to be filled
within an image object. just a conveneint tile & svcale and offset fill method
for programs.


SVN revision: 3109
2000-08-13 22:45:48 +00:00
Carsten Haitzler a5ba53be87 cleaner use func pointers for rendering backend funcs - too much copy & paste
SVN revision: 3096
2000-08-13 06:06:43 +00:00
Carsten Haitzler 73de169494 wooooo!
core bits of evas api actually do stuff now.. evas test it beginning to use them
if you want to have ann ide how easy it is to use evas as a rendeirng engine
just look at evas_test.. notice the evas setup is just a few calls (create,
set the output drawable, the output size of the window and the viewport into
the evas's virtual world - the its a mater of creating a few objects
and notice the main loo ONLy does 2 things - move the objects then call
render - evas will optimize to only render the bits that changed all for you.
there's a lot fo thank;less nasty state chekcing code just for this.
i'm going to have to write a lot fo it - image obejcts only done sofar.
you cant do anytign except move and resize them and add them and show and hide
them. freeing them wont work. layers dont work. no api to set performance cache
or to access it. fill modes for images dont work either nor is there an api
to set an images border scaling)


SVN revision: 3090
2000-08-11 07:47:52 +00:00
Carsten Haitzler 7c0f7a6f9a '
split that up.....


SVN revision: 2956
2000-07-31 18:06:21 +00:00