Ignore:
Timestamp:
Apr 26, 2006, 2:11:55 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Updated C++ bindings and renamed directory to more comprehensive cxx
Location:
libcaca/trunk/cxx
Files:
2 copied

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cxx/cucul++.cpp

    r897 r899  
    3737}
    3838
    39 Cucul::Cucul(void const *data, unsigned int size, char const *format)
    40 {
    41     cv = cucul_import_canvas(data, size, format);
     39Cucul::Cucul(Buffer *b, char const *format)
     40{
     41    cv = cucul_import_canvas(b->get_buffer(), format);
    4242    if(!cv) throw -1;
    4343}
     
    332332    return cucul_get_export_list();
    333333}
     334
     335cucul_buffer *Buffer::get_buffer(void)
     336{
     337    return buffer;
     338}
Note: See TracChangeset for help on using the changeset viewer.