Skip to content

How to get GL api from other library who create gl context? #1136

Answered by aquagoose
CeSun asked this question in Q&A
Discussion options

You must be logged in to vote

All that is needed is that you are able to get the GL proc address. If you can, you can pass that into the GL.GetApi() function, there's an overload that contains a Func<string, nint> that you link to the available proc address function. As long as the returned value can be cast to nint then it should work.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@CeSun
Comment options

@CeSun
Comment options

Answer selected by CeSun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1134 on November 05, 2022 22:29.