glium Questions
3
Solved
I'm struggling with how to import macros from an external crate. In my main.rs I'm importing the Glium crate:
#![macro_use]
extern crate glium;
pub use glium::*;
// where my actual main function...
1
Solved
I'm trying to interface glium with cgmath. Following this answer, I have implemented a ToArray trait to convert instances of cgmath::Matrix4 into a format usable by glium:
pub trait ToArray {
typ...
1
Solved
I'm trying to integrate the cgmath library into my first experiments with glium, but I can't figure out how to pass my Matrix4 object to the draw() call.
My uniforms object is defined thus:
let u...
1
© 2022 - 2024 — McMap. All rights reserved.