diff options
Diffstat (limited to '')
-rw-r--r-- | glow/src/triangle.rs | 2 | ||||
-rw-r--r-- | glow/src/triangle/solid.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/glow/src/triangle.rs b/glow/src/triangle.rs index 5e58f4e4..f26d1cea 100644 --- a/glow/src/triangle.rs +++ b/glow/src/triangle.rs @@ -1,4 +1,4 @@ -//! Draw meshes of triangle. +//! Draw meshes of triangles. mod gradient; mod solid; diff --git a/glow/src/triangle/solid.rs b/glow/src/triangle/solid.rs index d5b73eb9..3d4d1968 100644 --- a/glow/src/triangle/solid.rs +++ b/glow/src/triangle/solid.rs @@ -11,7 +11,7 @@ pub struct SolidProgram { } #[derive(Debug)] -pub(crate) struct SolidUniformData { +struct SolidUniformData { pub color: Color, pub color_location: <Context as HasContext>::UniformLocation, pub transform: Transformation, @@ -74,10 +74,10 @@ impl SolidProgram { } } - pub fn use_program(&mut self, gl: &glow::Context, color: &Color, transform: &Transformation) { + pub fn use_program(&mut self, gl: &Context, color: &Color, transform: &Transformation) { unsafe { gl.use_program(Some(self.program)) } self.write_uniforms(gl, color, transform) } -}
\ No newline at end of file +} |