cl-raylib icon indicating copy to clipboard operation
cl-raylib copied to clipboard

cl-raylib support load-texture?

Open Oleg-Harput opened this issue 1 year ago • 2 comments

I can not load texture in cl-raylib, what must i do?

Oleg-Harput avatar Jul 28 '23 16:07 Oleg-Harput

@Oleg-Harput Could you please provide more details?

longlene avatar Aug 02 '23 20:08 longlene

Edit: The problem is resolved after upgrading raylib from version 4.5 to 5.0.

I'm not sure if I'm experiencing the same problem, but the load-texture function causes a fatal error in SBCL for me.

SBCL version: 2.4.1 Platform: macOS Sonoma 14.2.1 Architecture: arm64

~~Steps to reproduce:~~ (edit: the reproduction steps are incorrect because they are missing a call to init-window)

This is SBCL 2.4.1, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* (ql:quickload :cl-raylib)
To load "cl-raylib":
  Load 1 ASDF system:
    cl-raylib
; Loading "cl-raylib"
..................
(:CL-RAYLIB)
* (raylib:load-texture "non-existant.png")
WARNING: FILEIO: [non-existant.png] Failed to open file
#S(CL-RAYLIB::TEXTURE :ID 0 :WIDTH 0 :HEIGHT 0 :MIPMAPS 0 :FORMAT 0)
* (raylib:load-texture "assets/apple.png")
INFO: FILEIO: [assets/apple.png] File loaded successfully
INFO: IMAGE: Data loaded successfully (16x16 | R8G8B8A8 | 1 mipmaps)
fatal error encountered in SBCL pid 37116 pthread 0x1e431d000:
maximum interrupt nesting depth (8) exceeded

Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb> 

osspike avatar Feb 27 '24 18:02 osspike