I have solved the problem but there is still a problem.

The value returned by txt.get_cogl_texture() can be passed to Cogl without problem but it can not be used in any way in Python, it can not be printed or tested for zero for instance. It even crashes the Python debugger if you try to inspect the variable holding the value.

Regards,
Peter Lundén

On 11/16/11 19:12, Peter Lunden wrote:
Trying to run the following code, crashes at the print line, it prints 'txt' then it dies. Seams to be a problem with the value returned by the get_cogl_texture code. I have tried to use gtxt i different ways in Cogl with the same result.

Is this a bug or do I misunderstand something?


    def main():

        ICON_DIR='/home/plu/workspace/sss/data/images'

        Clutter.init(debugArgs)
        stage = Clutter.Stage()

        txt= Clutter.Texture()

        txt.set_from_file(ICON_DIR+'/'+'human.svg')
        txt.set_size(128,128)
        stage.add_actor(txt)
        stage.show_all()

        gtxt=txt.get_cogl_texture()
        print 'txt', gtxt

        Clutter.main()

    sys.exit(main())

Thank in advance.

Regards,
Peter Lundén



--
Peter Lundén
Interactive Institute, Sonic Studio
Box 1197, SE-164 26 Kista, Sweden
Phone: +46 70 778 17 22
www.tii.se/sonic

_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to