Skip to content

Example how to call draw-triangle-strip would be nice. #62

@ruffianeo

Description

@ruffianeo

For the heck of it - I cannot figure out, how the arguments to that function should look like.
Maybe there is also something wrong with the translate-to-foreign functions.

(defcfun "DrawTriangleStrip" :void
 "Draw a triangle strip defined by points"
 (points (:pointer (:struct %vector2)))
 (point-count :int)
 (color (:struct %color)))

I tried both a list of 3d-vectors:vec2 and an array with element-type '3d-vectors:vec2 and both failed.
So, I am on my wits end, what it expects me to provide.

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