unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* guile-sdl2: What do you use instead of rectangles
@ 2018-11-09 15:07 sirgazil
  2018-11-09 15:40 ` Thompson, David
  0 siblings, 1 reply; 3+ messages in thread
From: sirgazil @ 2018-11-09 15:07 UTC (permalink / raw)
  To: Guile User

Hi,

I'm reading a book about game development with SDL, and they use source 
and destination rectangles for many things (using sprite sheets, tile 
maps, etc.). It seems that there is no equivalent module to "SDL_rect.h" 
in guile-sdl2. What do you use instead of rectangles?

:)

-- 
https://sirgazil.bitbucket.io/




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: guile-sdl2: What do you use instead of rectangles
  2018-11-09 15:07 guile-sdl2: What do you use instead of rectangles sirgazil
@ 2018-11-09 15:40 ` Thompson, David
  2018-11-09 16:54   ` sirgazil
  0 siblings, 1 reply; 3+ messages in thread
From: Thompson, David @ 2018-11-09 15:40 UTC (permalink / raw)
  To: Luis Felipe López Acevedo; +Cc: Guile User

Hey sirgazil!

On Fri, Nov 9, 2018 at 10:10 AM sirgazil <sirgazil@zoho.com> wrote:
>
> Hi,
>
> I'm reading a book about game development with SDL, and they use source
> and destination rectangles for many things (using sprite sheets, tile
> maps, etc.). It seems that there is no equivalent module to "SDL_rect.h"
> in guile-sdl2. What do you use instead of rectangles?

Ah, yes. The reason why the functions declared in SDL_rect.h haven't
been wrapped in guile-sdl2 is because I use OpenGL for all rendering
and haven't needed them.  I only use SDL2 for input device and window
management. Saves me a lot of work in that regard!

I would gladly accept a patch that wrapped the SDL_rect API. :)

Hope this helps,

- Dave



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: guile-sdl2: What do you use instead of rectangles
  2018-11-09 15:40 ` Thompson, David
@ 2018-11-09 16:54   ` sirgazil
  0 siblings, 0 replies; 3+ messages in thread
From: sirgazil @ 2018-11-09 16:54 UTC (permalink / raw)
  To: Thompson, David; +Cc: Guile User

On 9/11/18 10:40 a. m., Thompson, David wrote:
> Hey sirgazil!
> 
> On Fri, Nov 9, 2018 at 10:10 AM sirgazil <sirgazil@zoho.com> wrote:
>>
>> Hi,
>>
>> I'm reading a book about game development with SDL, and they use source
>> and destination rectangles for many things (using sprite sheets, tile
>> maps, etc.). It seems that there is no equivalent module to "SDL_rect.h"
>> in guile-sdl2. What do you use instead of rectangles?
> 
> Ah, yes. The reason why the functions declared in SDL_rect.h haven't
> been wrapped in guile-sdl2 is because I use OpenGL for all rendering
> and haven't needed them.  I only use SDL2 for input device and window
> management. Saves me a lot of work in that regard!


Unfortunately, OpenGL is broken for me :(


> I would gladly accept a patch that wrapped the SDL_rect API. :)


I'll wait for that patch, because I don't know how to do that :)


> Hope this helps,


Thanks, Dave.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-09 16:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-09 15:07 guile-sdl2: What do you use instead of rectangles sirgazil
2018-11-09 15:40 ` Thompson, David
2018-11-09 16:54   ` sirgazil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).