Changeset 813 for libcaca/trunk/cpp


Ignore:
Timestamp:
Apr 18, 2006, 5:54:33 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed main canvas-related functions so that they have "canvas" in their name, eg. cucul_create() -> cucul_create_canvas() etc.
  • Moved buffer-related functions to cucul/buffer.c.
File:
1 edited

Legend:

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

    r811 r813  
    2121Cucul::Cucul()
    2222{
    23     cv = cucul_create(0,0);
     23    cv = cucul_create_canvas(0,0);
    2424    if(!cv) throw -1;
    2525}
    2626Cucul::Cucul(int width, int height)
    2727{
    28     cv = cucul_create(width, height);
     28    cv = cucul_create_canvas(width, height);
    2929    if(!cv) throw -1;
    3030}
     
    3232{
    3333    if(cv) {
    34         cucul_free(cv);
     34        cucul_free_canvas(cv);
    3535    }
    3636}
     
    4545void Cucul::set_size(unsigned int width, unsigned int height)
    4646{
    47     cucul_set_size (cv, width, height);
     47    cucul_set_canvas_size (cv, width, height);
    4848}
    4949unsigned int Cucul::get_width(void)
    5050{
    51     return cucul_get_width (cv);
     51    return cucul_get_canvas_width (cv);
    5252}
    5353unsigned int Cucul::get_height(void)
    5454{
    55     return cucul_get_height (cv);
     55    return cucul_get_canvas_height (cv);
    5656}
    5757void Cucul::set_color(unsigned int f, unsigned int b)
Note: See TracChangeset for help on using the changeset viewer.