Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to let bind an array? #236

Open
mfiano opened this issue Jan 10, 2020 · 1 comment
Open

How to let bind an array? #236

mfiano opened this issue Jan 10, 2020 · 1 comment

Comments

@mfiano
Copy link

mfiano commented Jan 10, 2020

I'm trying to let bind an array of vec4's, and I can't for the life of me figure this out :)

I'm trying to generate something like this:

vec4 verts[4] = vec4[4](vec4(...), vec4(...), vec4(...), vec4(...));

I've tried:

(let (((verts (:vec4 4))) (setf (aref verts 0) ...) ...)

as well as various incantations of make-array. Nothing I try is working and I'm seeking any help I can get here. Thanks!

@azimut
Copy link

azimut commented Aug 15, 2021

I use (vector) as in

(i (vector j 2 3)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants