Ignore:
Timestamp:
Apr 26, 2006, 1:57:30 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Updated libcaca c++ bindings
File:
1 edited

Legend:

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

    r892 r897  
    3737}
    3838
     39Cucul::Cucul(void const *data, unsigned int size, char const *format)
     40{
     41    cv = cucul_import_canvas(data, size, format);
     42    if(!cv) throw -1;
     43}
     44
    3945Cucul::~Cucul()
    4046{
     
    288294{
    289295    font = cucul_load_font(s, v);
     296    if(!font) throw -1;
    290297}
    291298
     
    318325{
    319326    buffer = cucul_export_canvas(cv->get_cucul_canvas_t(), buf);
     327    if(!buffer) throw -1;
    320328}
    321329
Note: See TracChangeset for help on using the changeset viewer.