Re: [clutter] Text Font issue with Clutter 1.0.10

2010-07-06 Thread varun shrivastava
Hi
   i downloaded clutter 1.2.10 and compiled it with following args.

./configure --with-flavour=eglx --with-gles=2.0

finding the same issue there.
Does any one have an idea.


Thanks

On Fri, Jun 4, 2010 at 5:45 AM, Nirmalya Barat barat.nirma...@yahoo.comwrote:

 Neil,

 I tried the clutter I got from git. It solves the font issue. However
 performance is pretty slow compared to 1.0.10. Do u guys have ani existing
 issue like this?

 thx

 Nirmalya

  --
 *From:* Neil Roberts n...@linux.intel.com
 *To:* Nirmalya Barat barat.nirma...@yahoo.com; clutter@o-hand.com
 *Sent:* Thu, June 3, 2010 2:32:46 AM

 *Subject:* Re: [clutter] Text Font issue with Clutter 1.0.10

 Nirmalya Barat barat.nirma...@yahoo.com wrote:

  I want to apply the related fixes on top of our clutter version off
  1.2.8. Which are the ones I should pick up among these to fix the font
  issue?

 I would strongly recommend just using the branch directly because there
 are only minor bugfixes on that branch, but if you are sure you just
 want to apply the patches instead I would recommend these patches at a
 minimum:

 080187e update backend to use lazy context/stage creation
 23de53f clutter-backend-egl: Create a dummy X window and EGL surface
 e9d24b3 fix case when EGL driver doesn't support EGL_NATIVE_VISUAL_ID
 040c240 clutter-stage-egl.c: Don't call eglWait*()
 5abb2fe clutter-backend-egl: Chain up in dispose before destroying the
 context

 Regards,
 - Neil
 --
 To unsubscribe send a mail to clutter+unsubscr...@o-hand.com





Re: [clutter] Clutter Cairo Texture

2008-12-30 Thread varun shrivastava
thanks
it worked.

Thanks and Regards
Varun Shrivastava

2008/12/30 Zhang, Wei Z wei.z.zh...@intel.com

  I think the following cairo-operation can help you J



  * /* Clear */*

 *  cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);*

 *  cairo_paint(cr);*

 *  cairo_set_operator (cr, CAIRO_OPERATOR_OVER);*

 ……..



 Best Regards,

 Zhang Wei


  --

 *From:* varun shrivastava [mailto:iluvubu...@gmail.com]
 *Sent:* 2008年12月30日 13:40
 *To:* clutter
 *Subject:* [clutter] Clutter Cairo Texture



 hi

  i tried using clutter cairo texture. What i experienced is, the very first
 time i created a cairo texture using cairo apis
 in between clutter_cairo_texture_create and cairo_destroy, i got a perfect
 texture.

 Now if i want to redraw something else on the same texture. i am not able
 to clean the texture or the cairo context.
 That is i can see both the drawings, the previous one and the new one
 overlapping.

 Is there a way to clear the previous texture or how can i reuse the same
 cairo-texture rather than destroying the old one and
 creating a new one again.

 I tried using cairo_set_source_rgba to clear cairo context, it works for
 full alpha (1.0), but if alpha is 0.0, the problem arises.

 By alpha = 0.0 i mean to say, the clutter texture is transparent (i think
 by default clutter-cairo-texture is transparent) of some width and height.
 but the cairo drawings are with full opacity.

 Thanks and Regards
 Varun Shrivastava



[clutter] Clutter Cairo Texture

2008-12-29 Thread varun shrivastava
hi
 i tried using clutter cairo texture. What i experienced is, the very first
time i created a cairo texture using cairo apis
in between clutter_cairo_texture_create and cairo_destroy, i got a perfect
texture.

Now if i want to redraw something else on the same texture. i am not able to
clean the texture or the cairo context.
That is i can see both the drawings, the previous one and the new one
overlapping.

Is there a way to clear the previous texture or how can i reuse the same
cairo-texture rather than destroying the old one and
creating a new one again.

I tried using cairo_set_source_rgba to clear cairo context, it works for
full alpha (1.0), but if alpha is 0.0, the problem arises.

By alpha = 0.0 i mean to say, the clutter texture is transparent (i think by
default clutter-cairo-texture is transparent) of some width and height.
but the cairo drawings are with full opacity.

Thanks and Regards
Varun Shrivastava


[clutter] Regarding ClutterFixed

2008-12-24 Thread varun shrivastava
hi
I was trying to use tidy adjustment which has ClutterFixed as
members.
So if try to modify the adjustment value  32767, it overflows.
When i checked ClutterFixed implementation its a 16.16.

So is there a design issue for making ClutterFixed as a gint32 (16.16)?
Can 't it be made gint64(32.32)?
Will it give a performance hit?

Thanks and Regards
Varun


[clutter] Clutter Events

2008-06-11 Thread varun shrivastava
hi
 I want to ask about following events that what are these events and how
they are useful

ClutterScrollEvent
http://clutter-project.org/docs/clutter/0.6/clutter-Events.html#ClutterScrollEvent;
ClutterStageStateEvent
http://clutter-project.org/docs/clutter/0.6/clutter-Events.html#ClutterStageStateEvent;
ClutterCrossingEvent
http://clutter-project.org/docs/clutter/0.6/clutter-Events.html#ClutterCrossingEvent;

The document doesn't explain any thing about them.

Whats the difference between Pointer Motion event and Pointer Scroll Event

thanks and regards
varun


[clutter] Clutter configure error

2008-06-11 Thread varun shrivastava
hi
i am trying to configure clutter as

./configure --with-flavour=eglx

but get following error

checking GLES/egl.h usability... no
checking GLES/egl.h presence... yes
configure: WARNING: GLES/egl.h: present but cannot be compiled
configure: WARNING: GLES/egl.h: check for missing prerequisite
headers?
configure: WARNING: GLES/egl.h: see the Autoconf documentation
configure: WARNING: GLES/egl.h: section Present But Cannot Be
Compiled
configure: WARNING: GLES/egl.h: proceeding with the preprocessor's
result
configure: WARNING: GLES/egl.h: in the future, the compiler will take
precedence
configure: WARNING: ##
---
##
configure: WARNING: ## Report this to
http://bugzilla.o-hand.com/enter_bug.cgi?product=Clutter ##
configure: WARNING: ##
---
##
checking for GLES/egl.h... yes
checking GLES/gl.h usability... yes
checking GLES/gl.h presence... yes
checking for GLES/gl.h... yes
checking for eglInitialize in -lGLES_CM... no
checking for eglInitialize in -lgles_cm... no
configure: error: GLES library not found and egl backend requested.



the library exist at the location

kindly help
varun


[clutter] Clutter Script Asserts

2008-05-28 Thread varun shrivastava
hi

When i try to un-merge a merge_id returned from
clutter_script_load_from_file
i get following asserts

(./a.out:22293): Clutter-CRITICAL **: clutter_actor_destroy: assertion
`CLUTTER_IS_ACTOR (self)' failed

(./a.out:22293): Clutter-CRITICAL **: clutter_actor_destroy: assertion
`CLUTTER_IS_ACTOR (self)' failed


I am just trying to unmerge an id as soon as i get it.


attached test case produces the result

file : test.c and a json file temp.json



thanks and regards
varun shrivastava


temp.json
Description: Binary data
#include stdio.h
#include clutter/clutter.h
#include glib.h


int main(int argc, char **argv)
{
	clutter_init(argc, argv);
	ClutterScript *script = clutter_script_new();
	guint merge_id = 0;
	GError *error = NULL;
	if((merge_id = clutter_script_load_from_file(script, temp.json, error)) != 0)
		clutter_script_unmerge_objects(script, merge_id);
	return 0;
}
	


Re: [clutter] query regarding clutter_actor_hide_all

2008-04-10 Thread varun shrivastava
test code is working fine as expected, i think i have done some mistake in
the application
will revert back if i found the problem

On Thu, Apr 10, 2008 at 2:53 PM, Matthew Allum [EMAIL PROTECTED]
wrote:

 Hi;

 Could you write a simple test case showing this and attach to bugzilla.
 Code should be easier to understand what you are doing here :). Also
 note what version of Clutter you are using - the show machinery is
 changed is trunk as to be mostly 'automatic'.

  == Matthew

 On Thu, 2008-04-10 at 14:31 +0530, varun shrivastava wrote:
  hi
  I am facing a problem while writing an application
  Here is the explanation
 
  I have  groups as ::
 
  Header_Group
  I have added this group to stage
 
  Now i have following groups
  CG_Group1--IG_Group1
   `- IG_Group2
`-- IG_Group3
 
  IG_Group [1 2 3] are child of CG_Group1
 
 
 
  CG_Group2---IG_Group4
   `IG_Group5
   `IG_Group6
 
  that is to say i have many CG_Groups and IG_Groups are child of
  corresponding CG_Groups
 
  so when i want to show CG_Group1
  i do a container add of  CG_Group1 to Header_Group
  and show_all on Header_group
 
  Now when i want to display CG_Group2
  a hide_all on Header_Group
  than i do a container_remove_actor on CG_Group1
  than a container_add of CG_Group2 to Header_Group
  and a show_all again on Header_Group
 
 
 
 
  The problem is even though i removed CG_Group1 from Header_Group
  it still shows actors corresponding to IG_Groups of CG_Group1 + the
  IG_Groups of CG_Group2
  ideally it should not show CG_Group1 altogether as i have removed it.
 
 
  thanks
  varun
 




[clutter] CLutter Script question

2008-02-25 Thread varun shrivastava
hi
   i have a doubt regarding retrieving  objects  from ClutterScript
The docs for clutter_script_get_object says This function does not
increment the reference count of the returned object.

Does that mean the object is in floating state and  we have to do
g_object_ref and g_object_sink to own the ownership
or ClutterScript owns a reference to the object and when we do
g_object_unref(script), the objects will be unreferenced automatically if we
haven't done a g_object_ref on object retrieved.

bye


Re: [clutter] Can i use opengl apis in clutter program

2008-01-31 Thread varun shrivastava
thanks
but where i can find some tutorial about that?


On Jan 31, 2008 3:07 PM, Tomas Frydrych [EMAIL PROTECTED] wrote:

 Hi,

 varun shrivastava wrote:
  is there a way to use opengl or glut APIs in a clutter program

 In principle yes; it really depends on what you are trying to do.

 Tomas


 --
 To unsubscribe send a mail to [EMAIL PROTECTED]




Re: [clutter] Can i use opengl apis in clutter program

2008-01-31 Thread varun shrivastava
CLutter uses OpenGL commands or it uses mesa library for implementing
existing clutter actors

bye

On Jan 31, 2008 3:27 PM, Tomas Frydrych [EMAIL PROTECTED] wrote:

 varun shrivastava wrote:
  thanks
  but where i can find some tutorial about that?

 There isn't one; if you want to use OpenGL to design a custom actor,
 then the best thing to do is to have a look at how the existing clutter
 actors are implemented. If you want to use OpenGL directly outside of a
 custom actor, then you will need to know enough about OpenGL not to need
 a tutorial.

 Tomas

 
 
  On Jan 31, 2008 3:07 PM, Tomas Frydrych [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  Hi,
 
  varun shrivastava wrote:
   is there a way to use opengl or glut APIs in a clutter program
 
  In principle yes; it really depends on what you are trying to do.
 
  Tomas
 
 
  --
  To unsubscribe send a mail to [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
 
 

 --
 To unsubscribe send a mail to [EMAIL PROTECTED]