Hi,

As I wrote recently I found out that  cogl_texture_set_region is a little 
performance bottleneck for updating a texture from system memory.
After Evgeny Zajcev gave me some hints  I found a better way. 

I use cogl_pixel_buffer_new_with_size , cogl_buffer_set_data and 
cogl_texture_new_from_buffer to create and initialize a new texture.
Then for updating I use cogl_buffer_set_data, _cogl_bitmap_new_from_buffer and 
_cogl_texture_set_region_from_bitmap.

The problem is that  _cogl_bitmap_new_from_buffer and 
_cogl_texture_set_region_from_bitmap are not exported from the cogl library.
So I quickly patched the library and added cogl_texture_set_region_from  and 
cogl_bitmap_new_from_buffer to the exported function list.

So please do me a favour and add these two functions in the master branch to 
the (experimental)  API.


Thx 
Roland










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

Reply via email to