Can I use Cubemaps with Rust and OpenGL?

I would like to use Rust for a computer graphics assignmet which involves cubemaps. As I understand glium does not support cubemaps yet: Add support for loading and binding cube map textures · Issue #644 · glium/glium · GitHub.

What are my options here? Can I use somethig more higher level then GitHub - brendanzab/gl-rs: An OpenGL function pointer loader for Rust for supporting cubemaps?

You may want to look at gfx-rs, which is basically safer and more sane OpenGL bindings (it's actually more general, but that's an other topic). It does have a Cube texture type, so I assume that it's supported, but I haven't tested. It's a quite nice library, anyway.

Turns out glium has a unsafe back door for executing arbitrary OpenGL calls.

Half a night's gone, and I'm done bunny/main.rs at 26e79775092bb3b066d3f2fef5259ad14313d3df · matklad/bunny · GitHub :smile:

1 Like