[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guile-sdl2: What do you use instead of rectangles

From: sirgazil
Subject: Re: guile-sdl2: What do you use instead of rectangles
Date: Fri, 9 Nov 2018 11:54:08 -0500
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

On 9/11/18 10:40 a. m., Thompson, David wrote:
Hey sirgazil!

On Fri, Nov 9, 2018 at 10:10 AM sirgazil <address@hidden> wrote:


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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]