From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Thompson, David" Newsgroups: gmane.lisp.guile.user Subject: Re: guile-sdl2: What do you use instead of rectangles Date: Fri, 9 Nov 2018 10:40:41 -0500 Message-ID: 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" X-Trace: blaine.gmane.org 1541777961 9191 195.159.176.226 (9 Nov 2018 15:39:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2018 15:39:21 +0000 (UTC) Cc: Guile User To: =?UTF-8?Q?Luis_Felipe_L=C3=B3pez_Acevedo?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Nov 09 16:39:17 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 1gL8sP-0002G0-6H for guile-user@m.gmane.org; Fri, 09 Nov 2018 16:39:17 +0100 Original-Received: from localhost ([::1]:34799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL8uV-0002yA-Bp for guile-user@m.gmane.org; Fri, 09 Nov 2018 10:41:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL8ty-0002x9-Vz for guile-user@gnu.org; Fri, 09 Nov 2018 10:40:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gL8ty-0006BT-74 for guile-user@gnu.org; Fri, 09 Nov 2018 10:40:54 -0500 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:36607) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gL8tx-0006AQ-VD for guile-user@gnu.org; Fri, 09 Nov 2018 10:40:54 -0500 Original-Received: by mail-wr1-x434.google.com with SMTP id z13-v6so2367507wrs.3 for ; Fri, 09 Nov 2018 07:40:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=worcester-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=T/hMlULpxCI18neMhGujlruSME05dBu3/bwjXt2xSvc=; b=dk4M0MOr01xT/LJG4z3OiIcjEvY1PExxXqsR0t1WfA3uvTeWLK3E6DWg8QhML6P7C9 3gFSLQJeAPzmaVLcHHA8PqqIFP2FL2Aw0qNqw6mQiWg4KXsZavwRMCWdyMmOH+QCb5lI yuEAM9OdsRx5uZq5maXIxAhirHuJmMnvi+/ApxYJ05/I/fBqIQeyni+ldqJG0+H4qLfM j/W4bCIG7Fu9cczZzQLqivf38kpMV6BGsOMivmffoIdvV551q2T7DkAq/f3f/4dO0lBy tYxYqcf8qeszH7W1e/M/QuPb5NVgL+AipUUSe8biXvPhHjQ6Ub736MMDaa1zczeL9Ybz hkpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=T/hMlULpxCI18neMhGujlruSME05dBu3/bwjXt2xSvc=; b=Q+sIkbekwxV3QtpEIsEpJeqWXNob8cc30dVTLGBr2VoQ8+kjPsuzLbckgnRazE369u uFEwnvkxm4Rb26aLydTBQAePYtKVZaGP9xL49BYdshgagTNjvzzXPuBsUFxHX+tSYjlP 803VAGQwzP4532t4DIYZLRyaLDETszLLIuf9h9DL1molTL1qDl6m2EOccwi3W0gC0X5U POJl/r83z3g8XEuu4veqaAId9yr9el+vgvbdrjWrPyS9iI+nPyo1dYWkcMiu1knvSEmN VJReyfpMjweNpAvN/htbAdeHxtmXm9YM0d9/LDQkE/472wVFOL4YRkAQjbFU2Uuqe0o7 li7A== X-Gm-Message-State: AGRZ1gK4mq8gwWr8sj3QC44y8zzM0H2ZCss10NUyCljNrcik3yfzKxbM HqQcE7gsepTojuCFvmWzxwlAX+Vil+GOlQDrnyg0Mg== X-Google-Smtp-Source: AJdET5dfggt1KVfM/vqt9yOSKip+VOIo9BS4ru26IPEPF7klLpw4Vw0D9hcLFoAL84hHYZdL0bpuqROT4BVI7SD3bhE= X-Received: by 2002:adf:bd0f:: with SMTP id j15-v6mr8163991wrh.267.1541778052300; Fri, 09 Nov 2018 07:40:52 -0800 (PST) In-Reply-To: <0b165575-51e1-d0f1-8c2a-fceb5e3e7579@zoho.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::434 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:14975 Archived-At: 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! I would gladly accept a patch that wrapped the SDL_rect API. :) Hope this helps, - Dave