Skip to content

Use cl-cairo2 for drawing menus, panels etc #29

@naryl

Description

@naryl

I've managed to pass pixel buffer from cairo directly to texture without copying it into a lisp array but cairo uses reversed argb format which OpenGL is supposed to support but I think either cl-opengl doesn't or there's no way to make cepl use it. If I'm not mistaken it's both and needs to be fixed in both libraries.
There are two workarounds:

  1. Write a c library with a single function to switch blue and red components.
  2. Pass bgr colors to cl-cairo2:set-source-rgb.

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