Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenGL state tracking #67

Closed
borodust opened this issue Jan 10, 2017 · 1 comment
Closed

Add OpenGL state tracking #67

borodust opened this issue Jan 10, 2017 · 1 comment

Comments

@borodust
Copy link
Owner

Wrap poiu text rendering backend into this.
At the moment of writing:

    (gl:enable :scissor-test)
    (gl:blend-func-separate :src-alpha :one-minus-src-alpha :zero :one)
    (gl:scissor 0.0 0.0 (width-of poiu) (height-of poiu))
    (dolist (cmd (nreverse commands))
      (case (command-type cmd)
        (:scissor (apply-pretext-scissors cmd poiu))
        (:text (render-boxed-text cmd poiu))))
    (gl:blend-func :src-alpha :one-minus-src-alpha)
    (gl:disable :scissor-test)
@borodust
Copy link
Owner Author

Hackish, ad-hoc implementation, but probably would suffice for a trivial stuff.

borodust added a commit that referenced this issue Feb 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant