cogl

Filling a custom-shaped Clutter Actor with a Cairo-drawn canvas

扶醉桌前 提交于 2019-12-08 02:15:39
问题 Clutter 1.12 Cogl 1.10 Vala or C or Python. I might have a fundamental misunderstanding here — I think of "Actors" as 3D polygon things. I think of their colours as either vertex colors or as texture-mapping. In this light, I have been trying to draw a custom Actor and fill it with stuff drawn via Cairo. I'm not getting anywhere. Code is included below (in Vala). Can anyone set me right about Clutter's basics (the docs just don't cut it) or, if I'm close, help me get that code working. I

programming using pyclutter

情到浓时终转凉″ 提交于 2019-12-04 17:16:15
I am new to clutter (and pyclutter). I have been trying to use pyclutter. I haven't found any good tutorial for it so far. I mean nothin that really explains properly. I saw a couple of example programs but when I tried to use pyclutter I dint get any good results. The commands are anailable but their proper use is what is causing a problem. I tried to render a line using pyclutter but haven't even been able to do that. My code: import clutter from clutter import cogl stage = clutter.Stage() stage.set_size(400, 400) label = clutter.Text() label.set_text("line") stage.add(label) clutter.cogl