You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I don't know if this is a duplicate or how best to describe it but I'll do my best:
I generated and am using gl bindings from the gl_generator crate as described here:
at the top of the file in my use declaration I can put use gl:: and it suggests everything as expected (types, enums, etc) and I can pick them there:
However when I only have use gl at the top of my file and go and start coding and want to use any values from it later if I type gl::, I get no intellisense suggestions from the gl crate:
BUT I do get good gl function intellisense when I call gl. on my gl pointer:
I used gl_generator to generate myself the library and then copied the bindings into the file so they are visible. It's also clear they are visible because in the use declaration all of the crate is visible as suggestions.
EDIT1: Added pictures and was more clear
EDIT2: Found a work around:
instead of use gl; just have use gl::*; and skip the gl:: invocation on the types. Works perfectly.
Thank you all for the work you do to make Programming in Rust comfy!
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Hello, I don't know if this is a duplicate or how best to describe it but I'll do my best:
I generated and am using gl bindings from the gl_generator crate as described here:
at the top of the file in my use declaration I can put

use gl::
and it suggests everything as expected (types, enums, etc) and I can pick them there:However when I only have

use gl
at the top of my file and go and start coding and want to use any values from it later if I typegl::
, I get no intellisense suggestions from the gl crate:BUT I do get good gl function intellisense when I call gl. on my gl pointer:

I used gl_generator to generate myself the library and then copied the bindings into the file so they are visible. It's also clear they are visible because in the use declaration all of the crate is visible as suggestions.
EDIT1: Added pictures and was more clear
EDIT2: Found a work around:
instead of
use gl;
just haveuse gl::*;
and skip the gl:: invocation on the types. Works perfectly.Thank you all for the work you do to make Programming in Rust comfy!
The text was updated successfully, but these errors were encountered: