Re: Euphoria and Xwindows

new topic     » goto parent     » topic index » view thread      » older message » newer message

Irv:

I took a look at your GRAPHAPP.E file, and noticed you are wrapping the
calls as:

   global procedure fill_arc (sequence coords, integer start, integer fini)
      atom fa
      fa =
      c_proc(fa, {coords[1], coords[2], coords[3], coords[4], start, fini})
   end procedure --void fillarc(rect r, int start_angle, int end_angle);

You only need to declare the C proc once, like this:

   constant fill_arc_ =
   global procedure fill_arc (sequence coords, integer start, integer fini)
      c_proc(fill_arc_, {coords[1], coords[2], coords[3], coords[4], start,
fini})
   end procedure

That should speed up your calls a bit.

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu