brendanzab / gl-rs

An OpenGL function pointer loader for Rust
Apache License 2.0
680 stars 115 forks source link

OpenGL extensions #404

Closed baransu closed 8 years ago

baransu commented 8 years ago

I'm wondering is it possible to check extensions capabilities? Especially I want to implement anisotropic filtering and don't know how to check if it is supported. I'm using glium for windows handling.

emberian commented 8 years ago

You're using glutin for window handling, glium is a GL wrapper. You need to use glGetString. For an example, see https://github.com/gfx-rs/gfx/blob/master/src/backend/gl/src/info.rs

For questions like this, ask in #rust-gamedev on IRC or google for generic GL information, there's nothing special specific to this library.

brendanzab commented 8 years ago

I think it is a reasonable question to ask @cmr. At least now we have a record to point people towards in the future. Thanks for answering though!

emberian commented 8 years ago

It's a reasonable question to ask for sure! Issues, though, are not ideal IMO.

brendanzab commented 8 years ago

Yeah - I guess it is an annoying limitation of Github. It's hard to communicate asynchronously outside of issues.

baransu commented 8 years ago

Thank you for the help :)