<HTML><BODY>It is pointer there: (c-define-type SDL_Window* (pointer "SDL_Window")) in SchemeSphere.<BR><BR>Read <A href="http://docs.racket-lang.org/foreign/intro.html">http://docs.racket-lang.org/foreign/intro.html</A>&nbsp;<BR><BR><BR>Понедельник, 1 июля 2013, 21:53 -06:00 от Cosme Enmanuel Zamudio Salazar &lt;cosmez@gmail.com&gt;:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #0857a6 1px solid; PADDING-BOTTOM: 0px; MARGIN: 10px; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; PADDING-TOP: 0px" class=mailru-blockquote>
<DIV>
<DIV class="js-helper js-readmsg-msg">
<STYLE type=text/css></STYLE>

<DIV id=style_13727375010000001001 class=mr_read__body><BASE href="https://e.mail.ru/" target=_self>
<DIV id=style_13727375010000001001_BODY>
<DIV dir=ltr>Theres a libsdl struct i want to use from racket: &nbsp;SDL_Window 
<DIV>the problem is that there is nothing in the SDL include files about the struct fields, just this:</DIV>
<DIV><BR></DIV>
<DIV>typedef struct SDL_Window SDL_Window,</DIV>
<DIV><BR></DIV>
<DIV>the weird part is that i been looking at other language bindings to sdl2 and it looks like they have a way to define a pointer to an unknown structure type, for example:</DIV>
<DIV><BR></DIV>
<DIV>SchemeSphere:&nbsp;<A href="https://github.com/alvatar/sphere-sdl2/blob/master/src/sdl2.scm#L480" target=_blank>https://github.com/alvatar/sphere-sdl2/blob/master/src/sdl2.scm#L480</A></DIV>
<DIV>Python:&nbsp;<A href="https://bitbucket.org/marcusva/py-sdl2/src/a62aa0c6cf3c603d98dc0d4566db1d3fe22076dd/sdl2/video.py?at=default#cl-98" target=_blank>https://bitbucket.org/marcusva/py-sdl2/src/a62aa0c6cf3c603d98dc0d4566db1d3fe22076dd/sdl2/video.py?at=default#cl-98</A></DIV>
<DIV><BR></DIV>
<DIV>is there a way in Racket to do this? right now im just using a _pointer (define _SDL_Window _pointer)</DIV>
<DIV>, but this looks lacking</DIV>
<DIV><BR></DIV>
<DIV>Thanks!</DIV>
<DIV><BR></DIV>
<DIV>Cosme.</DIV></DIV></DIV>
<DIV>____________________<BR>&nbsp;&nbsp;Racket Users list:<BR>&nbsp;&nbsp;<A href="http://lists.racket-lang.org/users" target=_blank>http://lists.racket-lang.org/users</A><BR><BR></DIV><BASE href="https://e.mail.ru/" target=_self></DIV></DIV></DIV></BLOCKQUOTE><BR><BR>-- <BR>Roman Klochkov<BR></BODY></HTML>