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
IGlHandleStruct #1552
Comments
Without generic implementations of those functions public void ObjectLabel<THandle>(identifier, THandle name, int length, string label) where THandle : IGLHandle This would also have to work with the fact that by default typed handles are turned off. |
Not sure what you mean about this. But i didn't necessarily mean we should provide the overload for ObjectLabel. But in user code it would be possible to do stuff of that nature or similar. For example in my project using OpenTK 5, i have a base class for all GLObjects. |
Ah I see! Yeah we can add a common interface to the different handles sure.
In the next prerelease typed handles is going to be turned off. See #1545 |
|
They are not enums atm? They are structs. |
I stand corrected, had to go back and verify. |
Description
Add interface for all GlHandles
Makes it possible to take a generic GlHandle for methods like GL.ObjectLabel.
The text was updated successfully, but these errors were encountered: