Thread: g2_poly_line

  1. #1
    Registered User Tiago's Avatar
    Join Date
    Oct 2009
    Location
    Lisbon, Portugal
    Posts
    28

    g2_poly_line

    can anybody help me with this function from g2 library?

    further information at this link:
    http://www.ib.cnea.gov.ar/~oop/g2/group__graphic.html#gdafb426bd26b996c0ef4bb6cb74e3 b7f

    i want to use is but i don't know if i'm doing it right...

    i've declared...
    float * vector = (float*) calloc(1000, sizeof(float));

    how can i input values in this vector soo that i can use them inside g2_poly_line?

    now i've something like this...

    Code:
    while(blablabla){
    vector[i] = x;
    i++;
    vector[i] = y;
    i++;
    }
    and i call g2_poly_line like this:
    g2_poly_line(id_imag, i, vector);

    is it right or not?

    TY
    regards

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Looks fine, except you're apparently compiling as C++ and not C.


    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed