Re: [Chicken-users] I'm trying to use the cairo egg with the sdl2 egg but not making much progress. An
Matt Welland wrote: > Assuming it is possible, I'd like to use cairo to draw on sdl2 > surfaces. I've read the demos and other available code but I'm not yet > seeing how to bolt them together. Does anyone have some example code > they can share to help me get going? It is absolutly possible! I’ve done it countless times, with surfaces as well as textures (in the renderers API). Here is the code I’ve wrote to use cairo on surfaces: It’s old code and I’ve not tested it in a whire though. (define (sdl-colorspace->cairo bytes-per-pixel) (case (* 8 bytes-per-pixel) ((8) CAIRO_FORMAT_A8) ((24) CAIRO_FORMAT_RGB24) ((32) CAIRO_FORMAT_ARGB32) (else CAIRO_FORMAT_ARGB32))) (define (create-sdl2-cairo-context window) (let-values (((width height) (window-size window)) ((window-surface) (window-surface window)) ((cairo-surface) (cairo-image-surface-create-for-data (surface-pixels-raw window-surface) (sdl-colorspace->cairo (pixel-format-bytes-per-pixel (surface-format window-surface))) width height (surface-pitch window-surface (cairo-create cairo-surface))) ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] HMAC for CHICKEN 5
Hi Thomas, On 2019-01-27 17:54, Thomas Hintz wrote: > I've updated the HMAC egg for CHICKEN 5. If it seems done right it'd be > cool to see it living in the coop. I forget what URL is needed but it > lives here: https://code.thintz.com/chicken-scheme-hmac/ If possible > could I also get the CHICKEN 4 coop location updated to the same? That's all done, and the updates should be available once the egg mirrors pick them up. Cheers, Evan ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] I'm trying to use the cairo egg with the sdl2 egg but not making much progress. Any example code out there?
Assuming it is possible, I'd like to use cairo to draw on sdl2 surfaces. I've read the demos and other available code but I'm not yet seeing how to bolt them together. Does anyone have some example code they can share to help me get going? ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] HMAC for CHICKEN 5
Hey all, I've updated the HMAC egg for CHICKEN 5. If it seems done right it'd be cool to see it living in the coop. I forget what URL is needed but it lives here: https://code.thintz.com/chicken-scheme-hmac/ If possible could I also get the CHICKEN 4 coop location updated to the same? Thanks! And thanks to Andy Bennet for doing the work to get it ported. All the best, Thomas Hintz ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Page-align allocation
Hello, Does CHICKEN align a block of memory to the page boundary when I declare a vector of 4096 elements? If not, how to make it aligned to the page boundary? Thanks. Flynn ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users