<div dir="ltr">I have used Cairo with C many years ago...I will take a look at those bindings today then, thanks for that pointer (no pun intended).<div>I've been reading the code for glfw and opengl bindings too. I am sure I will "get there".</div><div>Thanks all,</div><div>Sean.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 14 Jul 2019 at 08:10, Julien Fischer <<a href="mailto:jfischer@opturion.com">jfischer@opturion.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On Sat, 13 Jul 2019, emacstheviking wrote:<br>
<br>
> In my sdl2.m module I have this code<br>
> % SDL_Rect<br>
> :- type sdl_rect.<br>
> :- pragma foreign_type("C", sdl_rect, "SDL_Rect", [can_pass_as_mercury_type]).<br>
> The SDL_Rect structure is perfect enough and I don't want to define something like:<br>
> <br>
> :- type sdl_rect ---> sdl_rect(x::int, y::int, w::int, h::int).<br>
<br>
That's pretty much exactly what we did for rectangles in the Cairo<br>
binding and it seems to work fine there.<br>
<br>
Julien.</blockquote></div>