Skip to content

Rewrite rshapes.c in Go. #4

@BrownNPC

Description

@BrownNPC

Since there isn't a way to pass pointers into web assembly. we need to first copy our struct into wasm. and then allocate a slice of bytes, copy the struct from web assembly memory into Go memory. and then convert that to a struct.

I could implement the use of sync.Pool but that's a bandaid fix. It should be simple to convert the whole raylib shapes module into Go. In fact, the desktop bindings already do this for the camera module.

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