Am 05.01.2011 um 08:31 schrieb Carsten Haitzler (The Rasterman): > On Sat, 1 Jan 2011 14:16:47 +0100 Michael Taubert <mich...@arachnodroid.de> > said: > >> Hi all! >> >> I'm trying to draw an evas text object within an ecore_evas_gl_x11_new(). >> >> As stated in the Evas/Ecore docs, there should be no need to update it >> manually, except for updating the content within an animator. My assumption >> was this: >> >> - Init of ecore, evas, ecore_evas, ecore_x >> - Create an gl_x11 Evas_Object >> - Add a text object >> - configure the text object (color,text,...) >> - Show the object >> - Show the gl_x11 Canvas/Window (depends on wether a parent window has been >> supplied) >> - Register an animator for content updates >> - Start the ecore mainloop >> >> But it is not working. I saw that some people are using the elementary >> mainloop, but I don't need any widgets here. What should be the correct way >> to setup a canvas or window and have it updated within ecore's mainloop? > > you have it right. maybe try a rectangle as a bg (a big white or blue or grey > rect) and then move a different colored rect obj around instead of text > your text obj may not appear due to font not being available that u set up? > u'll know if font works by getting text obj geometry after setting up > font+text > -it will be 0x0. > > i assume the window appears - it's just empty?
Yes, it was just empty. Well, filled with memory noise. I've added a background rectangle, set layers, and it is working now. But I've problems using transparency. I can set the window shaped, but no alpha and transparency. I've tried it with the gl_x11 and software_x11 engine, but both fail to draw a half-transparent background. I even tried a .png with a gradient from red to transparent, but no luck. Using gl_x11 fails at all and logs messages about a missing or wrong input handler/method/whatsoever. As soon as I set alpha or transparency. But a glxinfo says that direct rendering is enabled. Did I miss something setting up OpenGL? Is there any X module that needs to be setup to get transparency? Another thing is that, if I use gl_x11 without transparency at all, the actual cpu load is at ~40%. software_x11 will use just ~8%. I thought that it should be the opposite. This happens on two different computers. Just to mention that. > >> Thanks in advance, >> Michael >> >> >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, >> and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> enlightenment-devel mailing list >> enlightenment-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > > > -- > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > The Rasterman (Carsten Haitzler) ras...@rasterman.com > ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel