Skip to content

How to let bind an array? #236

@mfiano

Description

@mfiano

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions