如何用关键动作替换ClutterTexture?

时间:2011-10-24 11:11:21

标签: c gtk gobject clutter

我希望在突出显示时更改Gobject杂波actor的背景纹理。有没有什么办法可以在运行时替换纹理?

1 个答案:

答案 0 :(得分:0)

您可以使用clutter_texture_set_*系列函数,例如:

clutter_texture_set_from_file
  clutter_texture_set_from_rgb_data
  clutter_texture_set_area_from_rgb_data

这里记录的所有内容:http://developer.gnome.org/clutter/stable/ClutterTexture.html