bug-guile-sdl
[Top][All Lists]
Advanced

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

Re: (Guile-SDL) Feature request - Access pixels of a surface


From: Thien-Thi Nguyen
Subject: Re: (Guile-SDL) Feature request - Access pixels of a surface
Date: Sat, 01 Jun 2013 01:09:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

() David Thompson <address@hidden>
() Thu, 30 May 2013 21:29:17 -0400

   Currently there is no way to access the pixels member of the
   SDL_Surface struct. It would be useful to have this data available as
   a bytevector. I considered hacking this myself, but there are no
   pre-existing macros that I could find to deal with bytevectors, and
   I'm not comfortable enough with the codebase to add my own macros.

   What is the best way to implement this feature?

That depends on what "access" means precisely.  Some considerations:

- read-only vs read-write vs write-only
- direct read or copy-out
- locking
- liveness of surface SMOB

What do you think about SRFI 4 u8vector?  I like them because they are
available also for older Guile versions (pre 2.x).

-- 
Thien-Thi Nguyen
GPG key: 4C807502

Attachment: pgpe95XoFVBVI.pgp
Description: PGP signature


reply via email to

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