From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: sirgazil Newsgroups: gmane.lisp.guile.user Subject: Re: guile-sdl2: What do you use instead of rectangles Date: Fri, 9 Nov 2018 11:54:08 -0500 Message-ID: <431275f0-b69e-e92e-5956-4b490c95d8ce@zoho.com> References: <0b165575-51e1-d0f1-8c2a-fceb5e3e7579@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1541782386 6706 195.159.176.226 (9 Nov 2018 16:53:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2018 16:53:06 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 Cc: Guile User To: "Thompson, David" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Nov 09 17:53:02 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLA1m-0001d7-Gj for guile-user@m.gmane.org; Fri, 09 Nov 2018 17:53:02 +0100 Original-Received: from localhost ([::1]:35055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLA3t-0003AF-1N for guile-user@m.gmane.org; Fri, 09 Nov 2018 11:55:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLA3V-00039v-Mv for guile-user@gnu.org; Fri, 09 Nov 2018 11:54:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLA3S-0001wb-CB for guile-user@gnu.org; Fri, 09 Nov 2018 11:54:49 -0500 Original-Received: from sender-pp-092.zoho.com ([135.84.80.237]:25494) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gLA3R-0001Uu-VK for guile-user@gnu.org; Fri, 09 Nov 2018 11:54:46 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1541782452; cv=none; d=zoho.com; s=zohoarc; b=By5ycAO8XYwJkuwNKS9SRHt7+tbT/o0Q3ULGKSDbiaECY3GJ0pVagjSyAJWAIR/RuAxTRmLL+zQiLc93axGnBctxTthHUWUbcolgKNszfqXpqPov9dQU4nD+C6vwuDeDV4FowdOiHUXlmmn3sR+TE76joilB9fgJavU7MK3U4NU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1541782452; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=DkgWysVfLHCfwc996IMVo6YHSZg+CRVzdmg1lL4+WEg=; b=VBPaxO16m+dzzVhH5FaEgOgIWwbwNObw0O6HjpJcbe2YmUjSsim8bX8kCugApn4PcfqVCMoGg+S77ImLWVDlFZI3kuKkjSH2mictXBkGoERI7+1eVLldBqmS9u+hF2Pk8jMYdKuQoluiQKOw1WOPwrrMw3y/YyJklXMsWPSPOQY= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=sirgazil@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=subject:to:cc:references:from:message-id:date:user-agent:mime-version:in-reply-to:content-type; b=Ou7Y2mv9w4WTLYEdcWlmyZaQ1xR+p2Uf9VQA4JJqC8gRaoSKow3h0uQvTc23bOKUxapFiypU4R0r 3Yeut0wYEqcqKaJqFXscUymTeHPw082N7NTLe6AD7vd0zlSdVpvw DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1541782452; s=default; d=zoho.com; i=sirgazil@zoho.com; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; l=944; bh=DkgWysVfLHCfwc996IMVo6YHSZg+CRVzdmg1lL4+WEg=; b=n8eFZOt1Cu8OWWXTVWMtQ23AlV3b1xpuDFSuM2NZbaGQOEPEo2EPGxnJSJCcRdPv xw9Eyz7Sl4M6J/kJ6djAEhqpkKbaywm01P+9uYBIRxorcn366IQWgofgekw+kPNfWv2 P8RKTa6986w/cVZQmA1YfrFLQBf4sqvmmSOL1Gms= Original-Received: from [192.168.1.52] (181.142.74.215 [181.142.74.215]) by mx.zohomail.com with SMTPS id 1541782450216203.00017423826648; Fri, 9 Nov 2018 08:54:10 -0800 (PST) In-Reply-To: Content-Language: en-US X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 135.84.80.237 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14980 Archived-At: On 9/11/18 10:40 a. m., Thompson, David wrote: > Hey sirgazil! > > On Fri, Nov 9, 2018 at 10:10 AM sirgazil 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.