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

request: want CocoaWindow to return uintptr #259

Closed
hajimehoshi opened this issue Nov 25, 2019 · 2 comments
Closed

request: want CocoaWindow to return uintptr #259

hajimehoshi opened this issue Nov 25, 2019 · 2 comments

Comments

@hajimehoshi
Copy link
Member

func (w *Window) GetCocoaWindow() unsafe.Pointer {

In 3.2, CocoaWindow returned uintptr but in 3.3, this returns unsafe.Poitner. As unsafe.Pointer means a pointer that GC can collect, uintptr should be more natural.

@pchampio What do you think? Is there a strong reason to use unsafe.Pointer here?

@pchampio
Copy link
Contributor

#230
go-gl/gl#113 (comment)

@hajimehoshi
Copy link
Member Author

Ah, I forgot that completely :-) Thanks!

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

2 participants