Skip to content

How to draw a circle? #24

@Ramblurr

Description

@Ramblurr

This isn't a bug. I'm trying to wrap my mind around webgl and play-cljc.

After rendering a few rectangles and triangles I'd thought I'd try to make a circle.

Reading up on how to do this most guides (example) recommend using the TRIANGLE_FAN primitive.

But it seems c/render is hard coded to use the TRIANGLES primitive

(gl game drawElements (gl game TRIANGLES) draw-count type 0)
(if instance-count
(gl game drawArraysInstanced (gl game TRIANGLES) 0 draw-count instance-count)
(gl game drawArrays (gl game TRIANGLES) 0 draw-count)))))

Any tips would be appreciated.

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